| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368 |
- export default {
- "list": [
- {
- "type": "inline",
- "icon": "icon-inlineview",
- "options": {
- "customClass": "",
- "hidden": false,
- "spaceSize": 20,
- "remoteFunc": "func_d46e1lrz",
- "remoteOption": "option_d46e1lrz",
- "tableColumn": false,
- "subform": false
- },
- "list": [
- {
- "type": "input",
- "icon": "icon-input",
- "options": {
- "width": "",
- "defaultValue": "",
- "required": false,
- "requiredMessage": "",
- "dataType": "",
- "dataTypeCheck": false,
- "dataTypeMessage": "",
- "pattern": "",
- "patternCheck": false,
- "patternMessage": "",
- "validatorCheck": false,
- "validator": "",
- "placeholder": "",
- "customClass": "",
- "disabled": false,
- "labelWidth": 50,
- "isLabelWidth": true,
- "hidden": false,
- "dataBind": true,
- "showPassword": false,
- "clearable": false,
- "maxlength": "",
- "showWordLimit": false,
- "customProps": {},
- "tip": "",
- "extendProps": {},
- "remoteFunc": "func_kw3qbkyk",
- "remoteOption": "option_kw3qbkyk",
- "subform": false,
- "tableColumn": false
- },
- "events": {
- "onMounted": "",
- "onChange": "",
- "onFocus": "",
- "onBlur": ""
- },
- "name": "Name",
- "key": "kw3qbkyk",
- "model": "name",
- "rules": []
- },
- {
- "type": "input",
- "icon": "icon-input",
- "options": {
- "width": "",
- "defaultValue": "",
- "required": false,
- "requiredMessage": "",
- "dataType": "",
- "dataTypeCheck": false,
- "dataTypeMessage": "",
- "pattern": "",
- "patternCheck": false,
- "patternMessage": "",
- "validatorCheck": false,
- "validator": "",
- "placeholder": "",
- "customClass": "",
- "disabled": false,
- "labelWidth": 60,
- "isLabelWidth": true,
- "hidden": false,
- "dataBind": true,
- "showPassword": false,
- "clearable": false,
- "maxlength": "",
- "showWordLimit": false,
- "customProps": {},
- "tip": "",
- "extendProps": {},
- "remoteFunc": "func_kw3qbkyk",
- "remoteOption": "option_kw3qbkyk",
- "subform": false,
- "tableColumn": false
- },
- "events": {
- "onMounted": "",
- "onChange": "",
- "onFocus": "",
- "onBlur": ""
- },
- "name": "Address",
- "key": "28pqd4qt",
- "model": "address",
- "rules": []
- },
- {
- "type": "button",
- "icon": "icon-button",
- "options": {
- "customClass": "",
- "disabled": false,
- "labelWidth": 100,
- "isLabelWidth": false,
- "hideLabel": true,
- "hidden": false,
- "buttonSize": "default",
- "buttonType": "primary",
- "buttonPlain": false,
- "buttonRound": false,
- "buttonCircle": false,
- "buttonName": "查询",
- "width": "",
- "customProps": {},
- "tip": "",
- "extendProps": {},
- "remoteFunc": "func_zphsmx5c",
- "remoteOption": "option_zphsmx5c",
- "subform": false,
- "tableColumn": false
- },
- "events": {
- "onMounted": "",
- "onClick": "x2x2osab"
- },
- "name": "按钮",
- "key": "zphsmx5c",
- "model": "button_zphsmx5c",
- "rules": []
- }
- ],
- "name": "行内布局",
- "key": "d46e1lrz",
- "model": "inline_d46e1lrz",
- "rules": []
- },
- {
- "type": "list",
- "icon": "icon-shujubiaoge",
- "options": {
- "defaultValue": [],
- "width": "",
- "maxHeight": "",
- "stripe": false,
- "border": false,
- "customClass": "",
- "labelWidth": 100,
- "isLabelWidth": false,
- "hideLabel": true,
- "hidden": false,
- "dataBind": true,
- "columns": [
- {
- "label": "ID",
- "prop": "id",
- "width": 100,
- "sortable": false,
- "fixed": true,
- "align": "left",
- "headderAlign": "left",
- "fixedOption": "left",
- "defaultSlot": false,
- "defaultSlotTemplate": "",
- "headerSlot": false,
- "headerSlotTemplate": "",
- "key": "69vku4oh"
- },
- {
- "label": "Name",
- "prop": "name",
- "width": 200,
- "sortable": false,
- "fixed": false,
- "align": "left",
- "headderAlign": "left",
- "fixedOption": "left",
- "defaultSlot": false,
- "defaultSlotTemplate": "",
- "headerSlot": false,
- "headerSlotTemplate": "",
- "key": "8zm66bqm"
- },
- {
- "label": "State",
- "prop": "state",
- "width": 200,
- "sortable": false,
- "fixed": false,
- "align": "left",
- "headderAlign": "left",
- "fixedOption": "left",
- "defaultSlot": false,
- "defaultSlotTemplate": "",
- "headerSlot": false,
- "headerSlotTemplate": "",
- "key": "ariv7pud"
- },
- {
- "label": "City",
- "prop": "city",
- "width": 300,
- "sortable": false,
- "fixed": false,
- "align": "left",
- "headderAlign": "left",
- "fixedOption": "left",
- "defaultSlot": false,
- "defaultSlotTemplate": "",
- "headerSlot": false,
- "headerSlotTemplate": "",
- "key": "90qegs0f"
- },
- {
- "label": "Address",
- "prop": "address",
- "width": 400,
- "sortable": false,
- "fixed": false,
- "align": "left",
- "headderAlign": "left",
- "fixedOption": "left",
- "defaultSlot": false,
- "defaultSlotTemplate": "",
- "headerSlot": false,
- "headerSlotTemplate": "",
- "key": "8epbpp6e"
- },
- {
- "label": "Zip",
- "prop": "zip",
- "width": 200,
- "sortable": false,
- "fixed": false,
- "align": "left",
- "headderAlign": "left",
- "fixedOption": "left",
- "defaultSlot": false,
- "defaultSlotTemplate": "",
- "headerSlot": false,
- "headerSlotTemplate": "",
- "key": "y4o4zjv9"
- }
- ],
- "highlight": false,
- "selection": false,
- "showOperation": true,
- "operations": {
- "width": 200,
- "buttons": [
- {
- "name": "Edit",
- "type": "primary",
- "event": "yuz4gwgj",
- "key": "o82slu88"
- },
- {
- "name": "Delete",
- "type": "default",
- "event": "k5rlenw8",
- "key": "htzrpf8v"
- }
- ]
- },
- "pagination": {
- "paging": true,
- "pageSize": 10,
- "currentPage": 1,
- "pagerCount": 7,
- "pageSizes": "10",
- "background": true,
- "small": false,
- "props": {
- "list": "records",
- "total": "total",
- "size": "pageSize",
- "current": "currentPage"
- }
- },
- "tip": "",
- "remoteFunc": "func_6cllc2ne",
- "remoteOption": "option_6cllc2ne",
- "tableColumn": false,
- "subform": false
- },
- "events": {
- "onMounted": "",
- "onChange": "",
- "onPageChange": "zfhzth9n",
- "onCurrentRow": "",
- "onSelectionChange": ""
- },
- "name": "数据表格",
- "key": "6cllc2ne",
- "model": "list",
- "rules": []
- }
- ],
- "config": {
- "labelWidth": 100,
- "labelPosition": "left",
- "size": "default",
- "customClass": "",
- "ui": "antd",
- "layout": "horizontal",
- "width": "100%",
- "hideLabel": false,
- "hideErrorMessage": false,
- "eventScript": [
- {
- "key": "onFormChange",
- "name": "onFormChange",
- "type": "rule"
- },
- {
- "key": "mounted",
- "name": "mounted",
- "func": ""
- },
- {
- "key": "refresh",
- "name": "refresh",
- "func": ""
- },
- {
- "key": "aembtsf1",
- "name": "loadDataList",
- "func": "// 模拟数据\nconst {currentPage} = arguments[0]\n\nlet listdata = Array.from({length: 10}).map((_, index) => {\n let row = (currentPage - 1) * 10 + index + 1\n \n return {\n id: row,\n name: 'Tom' + row,\n state: 'California' + row,\n city: 'Los Angeles',\n address: 'No. 189, Grove St, Los Angeles',\n zip: 'CA 90036'\n }\n})\n\n// 给列表赋值\nthis.setData({\n list: {\n records: listdata,\n total: 100,\n pageSize: 10,\n currentPage\n }\n}) ",
- "type": "js"
- },
- {
- "key": "x2x2osab",
- "name": "onClick_x2x2osab",
- "func": "this.triggerEvent('loadDataList', {\n currentPage: 1\n})",
- "type": "js"
- },
- {
- "key": "yuz4gwgj",
- "name": "operate_0_yuz4gwgj",
- "func": "const {row} = arguments[0]\n\nthis.$message(`您点击了编辑操作:ID=${row.id}`)",
- "type": "js"
- },
- {
- "key": "k5rlenw8",
- "name": "operate_1_k5rlenw8",
- "func": "const {row} = arguments[0]\n\nthis.$message.error(`您点击了删除操作:ID=${row.id}`)",
- "type": "js"
- },
- {
- "key": "zfhzth9n",
- "name": "onPageChange_zfhzth9n",
- "func": "const {currentPage} = arguments[0]\n\nthis.triggerEvent('loadDataList', {\n currentPage\n})",
- "type": "js",
- "rules": []
- }
- ]
- }
- }
|