入门
组件使用
进阶
数据结构
{
"id": "u_ce_shi_ye_mian",
"type": "PAGE",
"component": "Page",
"attributes": {
"backgroundColor": "#FFFFFF",
"backgroundColorBottom": "#FFFFFF",
"backgroundColorTop": "#FFFFFF",
"backgroundTextStyle": "dark",
"enablePullDownRefresh": false,
"namespace": "u_ce_shi_ye_mian",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "测试页面",
"navigationStyle": "default",
"pageOrientation": "portrait",
"reachBottomDistance": 50,
"src": "",
"title": "测试页面"
},
"items": [
{
"id": "layout_zavzxozq",
"label": "layout_zavzxozq",
"module": "$template",
"component": "layout_zavzxozq",
"items": [
{
"id": "default",
"attributes": {
},
"items": [
{
"id": "table1",
"component": "WdTable",
"attributes": {
"bindConnectMetadata": {
"datasource": {
}
},
"bindMetadata": {
"t": 1728455496368,
"enabledFieldNames": [
"_id",
"createdAt",
"updatedAt",
"owner",
"createBy",
"updateBy",
"_departmentList",
"kcmc",
"ls",
"tb",
"kksj",
"_openid"
],
"datasource": {
"id": "data-4afAuaA15",
"title": "quickstart-课程",
"name": "quickstart_nebm93w"
},
"disabledFieldNames": [
],
"selectedViewIds": [
],
"isNewData": true
},
"columnSets": [
{
"slotKey": "kcmc",
"key": "kcmc",
"header": "课程名称",
"genre": "default",
"widthType": "auto",
"width": 100,
"align": "left",
"isSort": false,
"isExport": true,
"schema": {
"x-required": false,
"x-keyPath": "",
"x-id": "84ca3b8",
"format": "",
"name": "kcmc",
"description": "",
"isEnum": false,
"type": "string",
"x-index": 9,
"title": "课程名称",
"x-unique": false
},
"exception": null,
"format": "",
"__sortid__": "8be4Dfle_6IgD-6rHfVJt"
},
{
"slotKey": "ls",
"key": "ls",
"header": "老师",
"genre": "default",
"widthType": "auto",
"width": 100,
"align": "left",
"isSort": false,
"isExport": true,
"schema": {
"x-keyPath": "",
"x-id": "b0e6bff",
"fatherAction": "prompt-not-delete",
"format": "father-son",
"description": "",
"isEnum": false,
"parentViewId": "view-3oix17wsq8",
"type": "string",
"x-index": 11,
"title": "老师",
"parentDataSourceName": "quickstartpo_lkcb6fm",
"x-unique": false,
"x-parent": {
"fatherAction": "prompt-not-delete",
"parentViewId": "view-3ofzo1y4w0",
"type": "father-son",
"parentDataSourceName": "quickstart_j4f3pyt"
},
"x-required": false,
"name": "ls"
},
"exception": null,
"format": "father-son",
"__sortid__": "5VWexDNIpl0XYZDxuoTIH"
},
{
"slotKey": "tb",
"key": "tb",
"header": "图标",
"genre": "default",
"widthType": "auto",
"width": 100,
"align": "left",
"isSort": false,
"isExport": true,
"schema": {
"x-image-size": 5242880,
"x-required": false,
"x-keyPath": "",
"x-id": "6752983",
"format": "x-image",
"description": "",
"x-image-support": [
"image/jpeg",
"image/png"
],
"type": "string",
"x-index": 13,
"title": "图标",
"x-unique": false,
"name": "tb"
},
"exception": null,
"format": "x-image",
"__sortid__": "yZvt1HHsm0V6zo2esKHCL"
},
{
"slotKey": "kksj",
"key": "kksj",
"header": "开课时间",
"genre": "default",
"widthType": "auto",
"width": 100,
"align": "left",
"isSort": false,
"isExport": true,
"schema": {
"x-required": false,
"x-keyPath": "",
"x-id": "a9e17c4",
"format": "datetime",
"description": "",
"type": "number",
"x-index": 15,
"title": "开课时间",
"x-unique": false,
"name": "kksj"
},
"exception": null,
"format": "datetime",
"__sortid__": "E3XiBzViV7UB98y-barE7"
}
],
"connectorMethod": {
"outParams": {
}
},
"dataSourceData": [
{
}
],
"dataSourceType": "data-model",
"enableCellCustomOption": true,
"enableGlobalButton": true,
"enableTotal": false,
"filterConfigVersion": "v1",
"filterFields": {
"selected": [
],
"fields": [
],
"dataSourceId": "data-4afAuaA15",
"dataSourceName": "quickstart_nebm93w",
"customTitles": [
]
},
"fixedEnd": "",
"fixedFront": "",
"isOrderBy": true,
"isSupportApis": false,
"isSupportMultipleSort": true,
"recordKey": "_id",
"sorter": [
{
"orderBy": "updatedAt",
"orderType": "desc",
"label": "更新时间",
"__sortid__": "oEa2toevR9GlR1XCah28D"
}
],
"supportManyRelated": true
},
"items": [
{
"id": "globalButton",
"attributes": {
},
"items": [
{
"id": "button1",
"component": "WdButton",
"attributes": {
"text": "删除",
"theme": "error",
"variant": "outline"
},
"listeners": [
{
"id": "wvb07ndza",
"eventName": "tap",
"type": "platform",
"handler": {
"name": "invoke",
"module": "platform",
"params": {
"component": "table1",
"method": "deleteSelected",
"params": {
}
}
},
"noPropagation": false
}
],
"extra": {
"commonStyle": {
"margin": {
"right": "8"
},
"self": {
"marginRight": 8
}
},
"attributeExtraData": {
}
}
},
{
"id": "button2",
"component": "WdButton",
"attributes": {
"text": "导出",
"theme": "secondary",
"variant": "outline"
},
"listeners": [
{
"id": "wqfhfrot9",
"eventName": "tap",
"type": "platform",
"handler": {
"name": "invoke",
"module": "platform",
"params": {
"component": "table1",
"method": "exportOptionalMode",
"params": {
}
}
},
"noPropagation": false
}
],
"directives": {
":if": "$w.table1?.dataSourceType===\"data-model\"&&$w.wedaContext.platforms.includes(\"PCWEB\")"
},
"extra": {
"commonStyle": {
"margin": {
"right": "8"
},
"self": {
"marginRight": 8
}
},
"attributeExtraData": {
}
}
},
{
"id": "button3",
"component": "WdButton",
"attributes": {
"text": "导入",
"theme": "secondary",
"variant": "outline"
},
"listeners": [
{
"id": "wuvh6gm4n",
"eventName": "tap",
"type": "platform",
"handler": {
"name": "invoke",
"module": "platform",
"params": {
"component": "table1",
"method": "import",
"params": {
}
}
},
"noPropagation": false
}
],
"directives": {
":if": "$w.table1?.dataSourceType===\"data-model\"&&$w.wedaContext.platforms.includes(\"PCWEB\")"
},
"extra": {
"commonStyle": {
"margin": {
"right": "8"
},
"self": {
"marginRight": 8
}
},
"attributeExtraData": {
}
}
}
],
"listeners": [
]
},
{
"id": "cell__custom__option",
"attributes": {
},
"items": [
{
"id": "button5",
"component": "WdButton",
"attributes": {
"icon": "success",
"size": "sm",
"text": "弹窗",
"variant": "text"
},
"listeners": [
{
"id": "wy8vkcug16v",
"eventName": "tap",
"type": "platform",
"handler": {
"name": "invoke",
"module": "platform",
"params": {
"component": "modal1",
"method": "open",
"params": {
}
}
},
"noPropagation": false
}
],
"extra": {
"attributeExtraData": {
}
}
},
{
"id": "button4",
"component": "WdButton",
"attributes": {
"text": "删除",
"theme": "error",
"variant": "link"
},
"listeners": [
{
"id": "wfv4wekll",
"eventName": "tap",
"type": "platform",
"handler": {
"name": "invoke",
"module": "platform",
"params": {
"component": "table1",
"method": "deleteOne",
"params": {
":id": "$w.table1.cell__custom__option.record._id"
}
}
},
"noPropagation": false
}
],
"extra": {
"commonStyle": {
"margin": {
"right": "8"
},
"self": {
"marginRight": 8
}
},
"attributeExtraData": {
}
}
}
],
"listeners": [
]
}
],
"listeners": [
],
"extra": {
"attributeExtraData": {
}
}
},
{
"id": "button7",
"label": "确认按钮",
"component": "WdButton",
"attributes": {
"icon": "success",
"text": "确认"
},
"listeners": [
{
"id": "wdModal4514",
"eventName": "tap",
"type": "platform",
"handler": {
"name": "invoke",
"module": "platform",
"params": {
"component": "modal1",
"method": "close",
"params": {
"info": "confirm"
}
}
},
"noPropagation": false
}
],
"extra": {
"attributeExtraData": {
}
}
},
{
"id": "modal1",
"component": "WdModal",
"attributes": {
"closeType": [
"mask"
],
"defaultMaskShow": true,
"defaultShow": false,
"position": "center",
"template": "default"
},
"items": [
{
"id": "headerSlot",
"attributes": {
},
"items": [
{
"id": "text1",
"label": "弹窗标题",
"component": "WdText",
"attributes": {
"level": "title-7",
"maxLines": "1",
"text": "弹窗标题",
"style": {
"fontWeight": "bolder"
}
},
"listeners": [
],
"extra": {
"attributeExtraData": {
}
}
},
{
"id": "icon1",
"label": "关闭按钮",
"component": "WdIcon",
"attributes": {
"name": "td:close",
"style": {
"color": "rgba(0, 0, 0, 0.6)"
}
},
"listeners": [
{
"id": "wdModal5428",
"eventName": "tap",
"type": "platform",
"handler": {
"name": "invoke",
"module": "platform",
"params": {
"component": "modal1",
"method": "close",
"params": {
"info": "icon"
}
}
},
"noPropagation": false
}
],
"extra": {
"attributeExtraData": {
}
}
}
],
"listeners": [
]
},
{
"id": "contentSlot",
"attributes": {
},
"items": [
{
"id": "table2",
"component": "WdTable",
"attributes": {
"bindConnectMetadata": {
"datasource": {
}
},
"bindMetadata": {
"t": 1728455786263,
"enabledFieldNames": [
"_id",
"createdAt",
"updatedAt",
"owner",
"createBy",
"updateBy",
"_departmentList",
"kcmc",
"ls",
"tb",
"kksj",
"_openid"
],
"datasource": {
"id": "data-4afAuaA15",
"title": "quickstart-课程",
"name": "quickstart_nebm93w"
},
"disabledFieldNames": [
],
"selectedViewIds": [
],
"isNewData": true
},
"columnSets": [
{
"slotKey": "kcmc",
"key": "kcmc",
"header": "课程名称",
"genre": "default",
"widthType": "auto",
"width": 100,
"align": "left",
"isSort": false,
"isExport": true,
"schema": {
"x-required": false,
"x-keyPath": "",
"x-id": "84ca3b8",
"format": "",
"name": "kcmc",
"description": "",
"isEnum": false,
"type": "string",
"x-index": 9,
"title": "课程名称",
"x-unique": false
},
"exception": null,
"format": "",
"__sortid__": "AfUI_fIQpLQHtZDDdUyta"
},
{
"slotKey": "ls",
"key": "ls",
"header": "老师",
"genre": "default",
"widthType": "auto",
"width": 100,
"align": "left",
"isSort": false,
"isExport": true,
"schema": {
"x-keyPath": "",
"x-id": "b0e6bff",
"fatherAction": "prompt-not-delete",
"format": "father-son",
"description": "",
"isEnum": false,
"parentViewId": "view-3oix17wsq8",
"type": "string",
"x-index": 11,
"title": "老师",
"parentDataSourceName": "quickstartpo_lkcb6fm",
"x-unique": false,
"x-parent": {
"fatherAction": "prompt-not-delete",
"parentViewId": "view-3ofzo1y4w0",
"type": "father-son",
"parentDataSourceName": "quickstart_j4f3pyt"
},
"x-required": false,
"name": "ls"
},
"exception": null,
"format": "father-son",
"__sortid__": "IUaPAXGUSZJU-Wh_-AhtL"
},
{
"slotKey": "tb",
"key": "tb",
"header": "图标",
"genre": "default",
"widthType": "auto",
"width": 100,
"align": "left",
"isSort": false,
"isExport": true,
"schema": {
"x-image-size": 5242880,
"x-required": false,
"x-keyPath": "",
"x-id": "6752983",
"format": "x-image",
"description": "",
"x-image-support": [
"image/jpeg",
"image/png"
],
"type": "string",
"x-index": 13,
"title": "图标",
"x-unique": false,
"name": "tb"
},
"exception": null,
"format": "x-image",
"__sortid__": "mUbjrdyjFFXwvN8vLGjoq"
},
{
"slotKey": "kksj",
"key": "kksj",
"header": "开课时间",
"genre": "default",
"widthType": "auto",
"width": 100,
"align": "left",
"isSort": false,
"isExport": true,
"schema": {
"x-required": false,
"x-keyPath": "",
"x-id": "a9e17c4",
"format": "datetime",
"description": "",
"type": "number",
"x-index": 15,
"title": "开课时间",
"x-unique": false,
"name": "kksj"
},
"exception": null,
"format": "datetime",
"__sortid__": "eP_rvgv5B5Tkf9IVVr55O"
}
],
"connectorMethod": {
"outParams": {
}
},
"dataSourceData": [
{
}
],
"dataSourceType": "data-model",
"enableCellCustomOption": true,
"enableGlobalButton": true,
"enableTotal": false,
"filterConfigVersion": "v1",
"filterFields": {
"selected": [
],
"fields": [
],
"dataSourceId": "data-4afAuaA15",
"dataSourceName": "quickstart_nebm93w",
"customTitles": [
]
},
"fixedEnd": "",
"fixedFront": "",
"isOrderBy": true,
"isSupportApis": false,
"isSupportMultipleSort": true,
"recordKey": "_id",
"sorter": [
{
"orderBy": "updatedAt",
"orderType": "desc",
"label": "更新时间",
"__sortid__": "cYBSBc19HqBj-AVNOT-nc"
}
],
"supportManyRelated": true
},
"items": [
{
"id": "globalButton",
"attributes": {
},
"items": [
{
"id": "button8",
"component": "WdButton",
"attributes": {
"text": "删除",
"theme": "error",
"variant": "outline"
},
"listeners": [
{
"id": "wekh0103b",
"eventName": "tap",
"type": "platform",
"handler": {
"name": "invoke",
"module": "platform",
"params": {
"component": "table2",
"method": "deleteSelected",
"params": {
}
}
},
"noPropagation": false
}
],
"extra": {
"commonStyle": {
"margin": {
"right": "8"
},
"self": {
"marginRight": 8
}
},
"attributeExtraData": {
}
}
},
{
"id": "button9",
"component": "WdButton",
"attributes": {
"text": "导出",
"theme": "secondary",
"variant": "outline"
},
"listeners": [
{
"id": "w1a6tj78a",
"eventName": "tap",
"type": "platform",
"handler": {
"name": "invoke",
"module": "platform",
"params": {
"component": "table2",
"method": "exportOptionalMode",
"params": {
}
}
},
"noPropagation": false
}
],
"directives": {
":if": "$w.table2?.dataSourceType===\"data-model\"&&$w.wedaContext.platforms.includes(\"PCWEB\")"
},
"extra": {
"commonStyle": {
"margin": {
"right": "8"
},
"self": {
"marginRight": 8
}
},
"attributeExtraData": {
}
}
},
{
"id": "button10",
"component": "WdButton",
"attributes": {
"text": "导入",
"theme": "secondary",
"variant": "outline"
},
"listeners": [
{
"id": "wopmajxwy",
"eventName": "tap",
"type": "platform",
"handler": {
"name": "invoke",
"module": "platform",
"params": {
"component": "table2",
"method": "import",
"params": {
}
}
},
"noPropagation": false
}
],
"directives": {
":if": "$w.table2?.dataSourceType===\"data-model\"&&$w.wedaContext.platforms.includes(\"PCWEB\")"
},
"extra": {
"commonStyle": {
"margin": {
"right": "8"
},
"self": {
"marginRight": 8
}
},
"attributeExtraData": {
}
}
}
],
"listeners": [
]
},
{
"id": "cell__custom__option",
"attributes": {
},
"items": [
{
"id": "button11",
"component": "WdButton",
"attributes": {
"text": "删除",
"theme": "error",
"variant": "link"
},
"listeners": [
{
"id": "wfns3gm58",
"eventName": "tap",
"type": "platform",
"handler": {
"name": "invoke",
"module": "platform",
"params": {
"component": "table2",
"method": "deleteOne",
"params": {
":id": "$w.table2.cell__custom__option.record._id"
}
}
},
"noPropagation": false
}
],
"extra": {
"commonStyle": {
"margin": {
"right": "8"
},
"self": {
"marginRight": 8
}
},
"attributeExtraData": {
}
}
}
],
"listeners": [
]
}
],
"listeners": [
],
"extra": {
"attributeExtraData": {
}
}
}
],
"listeners": [
]
},
{
"id": "footerSlot",
"attributes": {
},
"items": [
{
"id": "button6",
"label": "取消按钮",
"component": "WdButton",
"attributes": {
"icon": "success",
"text": "取消",
"theme": "secondary",
"variant": "outline"
},
"listeners": [
{
"id": "wdModal933",
"eventName": "tap",
"type": "platform",
"handler": {
"name": "invoke",
"module": "platform",
"params": {
"component": "modal1",
"method": "close",
"params": {
"info": "cancel"
}
}
},
"noPropagation": false
}
],
"extra": {
"attributeExtraData": {
}
}
}
],
"listeners": [
]
}
],
"listeners": [
],
"extra": {
"attributeExtraData": {
}
}
},
{
"id": "form1",
"component": "WdForm",
"attributes": {
"_id": "",
"dataSourceName": "",
"fields": [
{
}
],
"formType_bind": false,
"initialValues": {
},
"lgWidth": "md",
"methodCreate": "",
"methodGetItem": "",
"methodUpdate": "",
"paramGetItem": {
},
"style": {
"display": "block"
}
},
"items": [
{
"id": "contentSlot",
"attributes": {
},
"listeners": [
]
}
],
"listeners": [
],
"extra": {
"attributeExtraData": {
}
}
}
],
"listeners": [
]
}
],
"listeners": [
]
}
],
"resources": [
],
"dataset": {
"state": {
}
},
"listeners": [
]
}