@kp-ui/lowcode 1.0.52 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_virtual/virtual_svg-icons-register.js +2 -2
- package/_virtual/virtual_svg-icons-register.js.map +1 -1
- package/package.json +1 -1
- package/render.js +4 -1
- package/render.js.map +1 -1
- package/src/components/CustomRender/components/RenderBodyCell.js +1 -1
- package/src/components/CustomRender/components/RenderBodyCell.js.map +1 -1
- package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue.js +6 -4
- package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue.js.map +1 -1
- package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue2.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +15 -15
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/line-height-editor.vue.js +32 -0
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/line-height-editor.vue.js.map +1 -0
- package/src/components/form-designer/setting-panel/property-editor/index.js +2 -1
- package/src/components/form-designer/setting-panel/property-editor/index.js.map +1 -1
- package/src/components/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/form-designer/setting-panel/propertyRegister.js.map +1 -1
- package/src/components/form-designer/widget-panel/containers/data-table.js +1 -0
- package/src/components/form-designer/widget-panel/containers/data-table.js.map +1 -1
- package/src/components/form-render/SubmitButtonRender.vue.js +2 -2
- package/src/components/form-render/SubmitButtonRender.vue.js.map +1 -1
- package/src/components/form-render/container-item/data-table-item.vue.js +5 -6
- package/src/components/form-render/container-item/data-table-item.vue.js.map +1 -1
- package/src/components/form-render/dynamic-dialog.vue.js +10 -2
- package/src/components/form-render/dynamic-dialog.vue.js.map +1 -1
- package/src/components/public/ActionButtonListDialog.vue.js +1 -1
- package/src/components/public/ActionButtonListDialog.vue.js.map +1 -1
- package/src/components/public/ActionButtonListDialog.vue2.js +1 -1
- package/src/components/public/ActionButtonListDialog.vue2.js.map +1 -1
- package/src/components/public/ActionButtonListRender.vue.js +1 -1
- package/src/components/public/ActionButtonListRender.vue.js.map +1 -1
- package/src/components/public/ActionButtonListRender.vue2.js.map +1 -1
- package/src/mixins/useDataTableMixin.js +16 -9
- package/src/mixins/useDataTableMixin.js.map +1 -1
- package/styles/style.css +1 -1
- package/types/src/components/form-designer/setting-panel/index.d.ts +1 -0
- package/types/src/components/form-designer/widget-panel/containers/data-table.d.ts.map +1 -1
- package/types/src/components/form-render/SubmitButtonRender.d.ts +3 -3
- package/types/src/components/form-render/SubmitButtonRender.d.ts.map +1 -1
- package/types/src/components/form-render/dynamic-dialog.d.ts.map +1 -1
- package/types/src/components/form-render/index.d.ts +1 -0
- package/types/src/components/form-render/index.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-tableColumns-editor.vue.js","sources":["../../../../../../../src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue"],"sourcesContent":["<template>\n <a-form-item :label=\"i18nt('designer.setting.tableColEdit')\">\n <a-button type=\"primary\" shape=\"round\" @click=\"openSetting\">\n {{ i18nt('designer.setting.editAction') }}\n </a-button>\n </a-form-item>\n <a-modal\n :title=\"i18nt('designer.setting.tableColEdit')\"\n v-model:visible=\"dialogVisible\"\n :show-close=\"true\"\n :close-on-click-modal=\"false\"\n :close-on-press-escape=\"false\"\n :destroy-on-close=\"true\"\n width=\"1200px\"\n aria-hidden=\"false\"\n wrapClassName=\"table-columns-modal\"\n >\n <div class=\"table-wrap\">\n <s-table\n aria-hidden=\"false\"\n :dataSource=\"optionModel.tableColumns\"\n style=\"width: 100%\"\n class=\"tpf-surely-table\"\n deepWatchDataSource\n :cell-style=\"{ padding: '0' }\"\n height=\"600\"\n id=\"singleTable\"\n :scroll=\"{ y: 300, x: 300 }\"\n :pagination=\"false\"\n resizable\n :row-key=\"record => record.columnId\"\n :columns=\"columns\"\n >\n <template #bodyCell=\"{ column, record, recordIndexs }\">\n <template v-if=\"column.dataIndex === 'dataIndex'\">\n <a-input\n v-model:value=\"optionModel.tableColumns[recordIndexs[0]].dataIndex\"\n />\n </template>\n <template v-if=\"column.dataIndex === 'title'\">\n <a-input v-model:value=\"optionModel.tableColumns[recordIndexs[0]].title\" />\n </template>\n <template v-if=\"column.dataIndex === 'width'\">\n <a-input v-model:value=\"optionModel.tableColumns[recordIndexs[0]].width\" />\n </template>\n <template v-if=\"column.dataIndex === 'show'\">\n <a-switch\n v-model:checked=\"optionModel.tableColumns[recordIndexs[0]].show\"\n />\n </template>\n <template v-if=\"column.dataIndex === 'sorter'\">\n <a-switch\n v-model:checked=\"optionModel.tableColumns[recordIndexs[0]].sorter\"\n />\n </template>\n <template v-if=\"column.dataIndex === 'resizable'\">\n <a-switch\n v-model:checked=\"optionModel.tableColumns[recordIndexs[0]].resizable\"\n />\n </template>\n <template v-if=\"column.dataIndex === 'ellipsis'\">\n <a-switch\n v-model:checked=\"optionModel.tableColumns[recordIndexs[0]].ellipsis\"\n />\n </template>\n <template v-if=\"column.dataIndex === 'fixed'\">\n <a-select\n v-model:value=\"optionModel.tableColumns[recordIndexs[0]].fixed\"\n allowClear\n style=\"100%\"\n >\n <a-select-option value=\"left\">左固定</a-select-option>\n <a-select-option value=\"right\">右固定</a-select-option>\n </a-select>\n </template>\n <template v-if=\"column.dataIndex === 'align'\">\n <a-select\n style=\"100%\"\n v-model:value=\"optionModel.tableColumns[recordIndexs[0]].align\"\n :options=\"alignOptions\"\n />\n </template>\n <template v-if=\"column.dataIndex === 'customRender'\">\n <a-button\n @click=\"showRenderDialog(recordIndexs[0], record, dataIndex)\"\n size=\"small\"\n shape=\"round\"\n >\n edit\n </a-button>\n </template>\n <template v-if=\"column.dataIndex === 'action'\">\n <a-space>\n <a-button\n v-if=\"optionModel.tableColumns.length !== 1\"\n :title=\"i18nt('designer.setting.deleteTableColumn')\"\n size=\"small\"\n @click=\"handleDelete(scope.$index, scope.row)\"\n type=\"text\"\n >\n 删除\n </a-button>\n </a-space>\n </template>\n </template>\n </s-table>\n <div class=\"add-btn\">\n <a-button\n :title=\"i18nt('designer.setting.addTableColumn')\"\n type=\"primary\"\n size=\"medium\"\n @click=\"addCol()\"\n >\n {{ i18nt('designer.setting.addTableColumn') }}\n </a-button>\n </div>\n </div>\n <template #footer>\n <div class=\"dialog-footer\">\n <a-button size=\"default\" @click=\"dialogVisible = false\">\n {{ i18nt('designer.hint.cancel') }}\n </a-button>\n <a-button size=\"default\" type=\"primary\" @click=\"colSubmit\">\n {{ i18nt('designer.hint.confirm') }}\n </a-button>\n </div>\n </template>\n </a-modal>\n\n <CodeModalEditor\n @save=\"saveColumnRender\"\n ref=\"CodeModalEditorRef\"\n :title=\"i18nt('designer.setting.renderFunction')\"\n :event-header=\"`async function customRender(scope) {`\"\n />\n</template>\n\n<script>\n import i18n from '@/utils/i18n';\n import CodeModalEditor from '@/components/code-editor/code-modal-editor.vue';\n export default {\n name: 'tableColumns-editor',\n mixins: [i18n],\n components: { CodeModalEditor },\n props: {\n designer: Object,\n selectedWidget: Object,\n optionModel: Object\n },\n data() {\n return {\n columns: [\n {\n title: '序号',\n dataIndex: 'index',\n width: 60,\n fixed: 'left',\n rowDrag: true,\n resizable: true,\n customRender: ({ index }) => index + 1\n },\n {\n title: this.i18nt('designer.setting.columnName'),\n dataIndex: 'dataIndex',\n resizable: true,\n width: 100\n },\n {\n title: this.i18nt('designer.setting.columnLabel'),\n dataIndex: 'title',\n resizable: true,\n width: 100\n },\n {\n title: this.i18nt('designer.setting.columnWidth'),\n dataIndex: 'width',\n resizable: true,\n width: 100\n },\n {\n title: this.i18nt('designer.setting.visibleColumn'),\n dataIndex: 'show',\n resizable: true,\n width: 90\n },\n {\n title: this.i18nt('designer.setting.sortableColumn'),\n dataIndex: 'sorter',\n resizable: true,\n width: 90\n },\n {\n title: '可拖动调整宽度',\n dataIndex: 'resizable',\n width: 150\n },\n {\n title: '超过宽度将自动省略',\n dataIndex: 'ellipsis',\n resizable: true,\n width: 150\n },\n {\n title: this.i18nt('designer.setting.fixedColumn'),\n dataIndex: 'fixed',\n resizable: true,\n width: 100\n },\n {\n title: this.i18nt('designer.setting.alignTypeOfColumn'),\n dataIndex: 'align',\n resizable: true,\n width: 100\n },\n {\n title: '自定义渲染函数',\n dataIndex: 'customRender',\n width: 120,\n resizable: true,\n fixed: 'right'\n },\n {\n title: this.i18nt('designer.setting.actionColumn'),\n dataIndex: 'action',\n width: 80,\n fixed: 'right'\n }\n ],\n dialogVisible: false,\n currentRecordIndexs: null,\n alignOptions: [\n { value: 'left', label: 'left' },\n { value: 'center', label: 'center' },\n { value: 'right', label: 'right' }\n ]\n };\n },\n methods: {\n showRenderDialog(recordIndexs, record) {\n this.currentRecordIndexs = recordIndexs;\n this.$refs.CodeModalEditorRef.open(record.customRender);\n },\n saveColumnRender(value) {\n this.optionModel.tableColumns[this.currentRecordIndexs].customRender = value;\n },\n addCol() {\n const newRow = {\n columnId: new Date().getTime(),\n show: true,\n width: 150,\n sorter: false,\n customRender: '',\n fixed: '',\n align: 'center',\n title: '标题名',\n dataIndex: '',\n resizable: true,\n showSorterTooltip: false\n };\n this.optionModel.tableColumns.push(newRow);\n this.designer.emitHistoryChange();\n },\n handleDelete(index, row) {\n if (this.optionModel.tableColumns.length === 1) {\n this.$message.warning(\n this.i18nt('designer.setting.onlyOneColumnCannotBeDeleted')\n );\n return false;\n }\n this.optionModel.tableColumns.splice(index, 1);\n },\n // 确认表格列更改\n colSubmit() {\n this.dialogVisible = false;\n },\n openSetting() {\n this.dialogVisible = true;\n }\n }\n };\n</script>\n\n<style lang=\"less\" scoped>\n .table-wrap {\n font-size: 12px;\n :deep(.tpf-surely-table, .surely-table) {\n height: 50vh;\n }\n\n :deep(.ant-input) {\n font-size: 12px;\n }\n .add-btn {\n margin-top: 10px;\n text-align: center;\n }\n }\n</style>\n"],"names":["_createVNode","_createEl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YAAC,aAAa,WAAM,kBADzCA,YAQW,qBAAA;AAAA;oBANN,OAAO,KAAK,MAAA,oCAAA;AAAA,oBACb,MAAK;AAAA,oBACJ,SAAK,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA,YAAE,sBAAa,KAAA,MAAM,QAAQ,KAAK,MAAC,GAAG;AAAA,oBAC5C,MAAK;AAAA;qCACR,MAED;AAAA,sCAFC,MAED;AAAA;;;;;;;;;UAKhBD,mBASM,OATN,YASM;AAAA,YARFD,YAOW,qBAAA;AAAA,cANN,OAAO,KAAK,MAAA,iCAAA;AAAA,cACb,MAAK;AAAA,cACL,MAAK;AAAA,cACJ,+CAAO,SAAM;;+BAEd,MAA8C;AAAA,gDAA3C,KAAK,MAAA,iCAAA,CAAA,GAAA,CAAA;AAAA;;;;;;;;IAgBxBA,YAKE,4BAAA;AAAA,MAJG,QAAM,SAAgB;AAAA,MACvB,KAAI;AAAA,MACH,OAAO,KAAK,MAAA,iCAAA;AAAA,MACZ,gBAAc;AAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"data-table-tableColumns-editor.vue.js","sources":["../../../../../../../src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue"],"sourcesContent":["<template>\n <a-form-item :label=\"i18nt('designer.setting.tableColEdit')\">\n <a-button type=\"primary\" shape=\"round\" @click=\"openSetting\">\n {{ i18nt('designer.setting.editAction') }}\n </a-button>\n </a-form-item>\n <a-modal\n :title=\"i18nt('designer.setting.tableColEdit')\"\n v-model:visible=\"dialogVisible\"\n :show-close=\"true\"\n :close-on-click-modal=\"false\"\n :close-on-press-escape=\"false\"\n :destroy-on-close=\"true\"\n width=\"1200px\"\n aria-hidden=\"false\"\n wrapClassName=\"table-columns-modal\"\n >\n <div class=\"table-wrap\">\n <s-table\n aria-hidden=\"false\"\n :dataSource=\"optionModel.tableColumns\"\n style=\"width: 100%\"\n class=\"tpf-surely-table\"\n deepWatchDataSource\n :cell-style=\"{ padding: '0' }\"\n height=\"600\"\n id=\"singleTable\"\n :scroll=\"{ y: 300, x: 300 }\"\n :pagination=\"false\"\n resizable\n :row-key=\"record => record.columnId\"\n :columns=\"columns\"\n >\n <template #bodyCell=\"{ column, record, index, recordIndexs }\">\n <template v-if=\"column.dataIndex === 'dataIndex'\">\n <a-input\n v-model:value=\"optionModel.tableColumns[recordIndexs[0]].dataIndex\"\n />\n </template>\n <template v-if=\"column.dataIndex === 'title'\">\n <a-input v-model:value=\"optionModel.tableColumns[recordIndexs[0]].title\" />\n </template>\n <template v-if=\"column.dataIndex === 'width'\">\n <a-input v-model:value=\"optionModel.tableColumns[recordIndexs[0]].width\" />\n </template>\n <template v-if=\"column.dataIndex === 'show'\">\n <a-switch\n v-model:checked=\"optionModel.tableColumns[recordIndexs[0]].show\"\n />\n </template>\n <template v-if=\"column.dataIndex === 'sorter'\">\n <a-switch\n v-model:checked=\"optionModel.tableColumns[recordIndexs[0]].sorter\"\n />\n </template>\n <template v-if=\"column.dataIndex === 'resizable'\">\n <a-switch\n v-model:checked=\"optionModel.tableColumns[recordIndexs[0]].resizable\"\n />\n </template>\n <template v-if=\"column.dataIndex === 'ellipsis'\">\n <a-switch\n v-model:checked=\"optionModel.tableColumns[recordIndexs[0]].ellipsis\"\n />\n </template>\n <template v-if=\"column.dataIndex === 'fixed'\">\n <a-select\n v-model:value=\"optionModel.tableColumns[recordIndexs[0]].fixed\"\n allowClear\n style=\"100%\"\n >\n <a-select-option value=\"left\">左固定</a-select-option>\n <a-select-option value=\"right\">右固定</a-select-option>\n </a-select>\n </template>\n <template v-if=\"column.dataIndex === 'align'\">\n <a-select\n style=\"100%\"\n v-model:value=\"optionModel.tableColumns[recordIndexs[0]].align\"\n :options=\"alignOptions\"\n />\n </template>\n <template v-if=\"column.dataIndex === 'customRender'\">\n <a-button\n @click=\"showRenderDialog(recordIndexs[0], record, dataIndex)\"\n :class=\"[{ 'button-text-highlight': !!record.customRender }]\"\n size=\"small\"\n shape=\"round\"\n >\n edit\n </a-button>\n </template>\n <template v-if=\"column.dataIndex === 'action'\">\n <a-space>\n <a-button\n :title=\"i18nt('designer.setting.deleteTableColumn')\"\n size=\"small\"\n @click=\"handleDelete(index)\"\n type=\"text\"\n >\n 删除\n </a-button>\n </a-space>\n </template>\n </template>\n </s-table>\n <div class=\"add-btn\">\n <a-button\n :title=\"i18nt('designer.setting.addTableColumn')\"\n type=\"primary\"\n size=\"medium\"\n @click=\"addCol()\"\n >\n {{ i18nt('designer.setting.addTableColumn') }}\n </a-button>\n </div>\n </div>\n <template #footer>\n <div class=\"dialog-footer\">\n <a-button size=\"default\" @click=\"dialogVisible = false\">\n {{ i18nt('designer.hint.cancel') }}\n </a-button>\n <a-button size=\"default\" type=\"primary\" @click=\"colSubmit\">\n {{ i18nt('designer.hint.confirm') }}\n </a-button>\n </div>\n </template>\n </a-modal>\n\n <CodeModalEditor\n @save=\"saveColumnRender\"\n ref=\"CodeModalEditorRef\"\n :title=\"i18nt('designer.setting.renderFunction')\"\n :event-header=\"`async function customRender(scope) {`\"\n />\n</template>\n\n<script>\n import i18n from '@/utils/i18n';\n import CodeModalEditor from '@/components/code-editor/code-modal-editor.vue';\n export default {\n name: 'tableColumns-editor',\n mixins: [i18n],\n components: { CodeModalEditor },\n props: {\n designer: Object,\n selectedWidget: Object,\n optionModel: Object\n },\n data() {\n return {\n columns: [\n {\n title: '序号',\n dataIndex: 'index',\n width: 60,\n fixed: 'left',\n rowDrag: true,\n resizable: true,\n customRender: ({ index }) => index + 1\n },\n {\n title: this.i18nt('designer.setting.columnName'),\n dataIndex: 'dataIndex',\n resizable: true,\n width: 100\n },\n {\n title: this.i18nt('designer.setting.columnLabel'),\n dataIndex: 'title',\n resizable: true,\n width: 100\n },\n {\n title: this.i18nt('designer.setting.columnWidth'),\n dataIndex: 'width',\n resizable: true,\n width: 100\n },\n {\n title: this.i18nt('designer.setting.visibleColumn'),\n dataIndex: 'show',\n resizable: true,\n width: 90\n },\n {\n title: this.i18nt('designer.setting.sortableColumn'),\n dataIndex: 'sorter',\n resizable: true,\n width: 90\n },\n {\n title: '可拖动调整宽度',\n dataIndex: 'resizable',\n width: 150\n },\n {\n title: '超过宽度将自动省略',\n dataIndex: 'ellipsis',\n resizable: true,\n width: 150\n },\n {\n title: this.i18nt('designer.setting.fixedColumn'),\n dataIndex: 'fixed',\n resizable: true,\n width: 100\n },\n {\n title: this.i18nt('designer.setting.alignTypeOfColumn'),\n dataIndex: 'align',\n resizable: true,\n width: 100\n },\n {\n title: '自定义渲染函数',\n dataIndex: 'customRender',\n width: 120,\n resizable: true,\n fixed: 'right'\n },\n {\n title: this.i18nt('designer.setting.actionColumn'),\n dataIndex: 'action',\n width: 80,\n fixed: 'right'\n }\n ],\n dialogVisible: false,\n currentRecordIndexs: null,\n alignOptions: [\n { value: 'left', label: 'left' },\n { value: 'center', label: 'center' },\n { value: 'right', label: 'right' }\n ]\n };\n },\n methods: {\n showRenderDialog(recordIndexs, record) {\n this.currentRecordIndexs = recordIndexs;\n this.$refs.CodeModalEditorRef.open(record.customRender);\n },\n saveColumnRender(value) {\n this.optionModel.tableColumns[this.currentRecordIndexs].customRender = value;\n },\n addCol() {\n const newRow = {\n columnId: new Date().getTime(),\n show: true,\n width: 150,\n sorter: false,\n customRender: '',\n fixed: '',\n align: 'center',\n title: '标题名',\n dataIndex: '',\n resizable: true,\n showSorterTooltip: false\n };\n this.optionModel.tableColumns.push(newRow);\n this.designer.emitHistoryChange();\n },\n handleDelete(index) {\n if (this.optionModel.tableColumns.length === 1) {\n this.$message.warning(\n this.i18nt('designer.setting.onlyOneColumnCannotBeDeleted')\n );\n return false;\n }\n this.optionModel.tableColumns.splice(index, 1);\n },\n // 确认表格列更改\n colSubmit() {\n this.dialogVisible = false;\n },\n openSetting() {\n this.dialogVisible = true;\n }\n }\n };\n</script>\n\n<style lang=\"less\" scoped>\n .table-wrap {\n font-size: 12px;\n :deep(.tpf-surely-table, .surely-table) {\n height: 50vh;\n }\n\n :deep(.ant-input) {\n font-size: 12px;\n }\n .add-btn {\n margin-top: 10px;\n text-align: center;\n }\n }\n</style>\n"],"names":["_createVNode","_createElementVNode","_withCtx","_createBlock","_normalizeClass"],"mappings":";;;;;AA4II,MAAK,YAAU;AAAA,EACX,MAAM;AAAA,EACN,QAAQ,CAAC,IAAI;AAAA,EACb,YAAY,EAAE,gBAAiB;AAAA,EAC/B,OAAO;AAAA,IACH,UAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,aAAa;AAAA,EAChB;AAAA,EACD,OAAO;AACH,WAAO;AAAA,MACH,SAAS;AAAA,QACL;AAAA,UACI,OAAO;AAAA,UACP,WAAW;AAAA,UACX,OAAO;AAAA,UACP,OAAO;AAAA,UACP,SAAS;AAAA,UACT,WAAW;AAAA,UACX,cAAc,CAAC,EAAE,MAAO,MAAK,QAAQ;AAAA,QACxC;AAAA,QACD;AAAA,UACI,OAAO,KAAK,MAAM,6BAA6B;AAAA,UAC/C,WAAW;AAAA,UACX,WAAW;AAAA,UACX,OAAO;AAAA,QACV;AAAA,QACD;AAAA,UACI,OAAO,KAAK,MAAM,8BAA8B;AAAA,UAChD,WAAW;AAAA,UACX,WAAW;AAAA,UACX,OAAO;AAAA,QACV;AAAA,QACD;AAAA,UACI,OAAO,KAAK,MAAM,8BAA8B;AAAA,UAChD,WAAW;AAAA,UACX,WAAW;AAAA,UACX,OAAO;AAAA,QACV;AAAA,QACD;AAAA,UACI,OAAO,KAAK,MAAM,gCAAgC;AAAA,UAClD,WAAW;AAAA,UACX,WAAW;AAAA,UACX,OAAO;AAAA,QACV;AAAA,QACD;AAAA,UACI,OAAO,KAAK,MAAM,iCAAiC;AAAA,UACnD,WAAW;AAAA,UACX,WAAW;AAAA,UACX,OAAO;AAAA,QACV;AAAA,QACD;AAAA,UACI,OAAO;AAAA,UACP,WAAW;AAAA,UACX,OAAO;AAAA,QACV;AAAA,QACD;AAAA,UACI,OAAO;AAAA,UACP,WAAW;AAAA,UACX,WAAW;AAAA,UACX,OAAO;AAAA,QACV;AAAA,QACD;AA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AA,gBACL,OAAM;AAAA;iCACT,MAED;AAAA,kCAFC,QAED;AAAA;;;cAEY,OAAO,cAAS,yBAC5BD,YASU,oBAAA,EAAA,KAAA,GAAA,GAAA;AAAA,iCARN,MAOW;AAAA,kBAPXH,YAOW,qBAAA;AAAA,oBANN,OAAO,KAAK,MAAA,oCAAA;AAAA,oBACb,MAAK;AAAA,oBACJ,SAAK,YAAE,SAAY,aAAC,KAAK;AAAA,oBAC1B,MAAK;AAAA;qCACR,MAED;AAAA,sCAFC,MAED;AAAA;;;;;;;;;UAKhBC,mBASM,OATN,YASM;AAAA,YARFD,YAOW,qBAAA;AAAA,cANN,OAAO,KAAK,MAAA,iCAAA;AAAA,cACb,MAAK;AAAA,cACL,MAAK;AAAA,cACJ,+CAAO,SAAM;;+BAEd,MAA8C;AAAA,gDAA3C,KAAK,MAAA,iCAAA,CAAA,GAAA,CAAA;AAAA;;;;;;;;IAgBxBA,YAKE,4BAAA;AAAA,MAJG,QAAM,SAAgB;AAAA,MACvB,KAAI;AAAA,MACH,OAAO,KAAK,MAAA,iCAAA;AAAA,MACZ,gBAAc;AAAA;;;;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import i18n from "../../../../../utils/i18n.js";
|
|
2
|
+
import propertyMixin from "../propertyMixin.js";
|
|
3
|
+
import { resolveComponent, createBlock, openBlock, withCtx, createVNode } from "vue";
|
|
4
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const _sfc_main = {
|
|
6
|
+
name: "line-height-editor",
|
|
7
|
+
mixins: [i18n, propertyMixin],
|
|
8
|
+
props: {
|
|
9
|
+
designer: Object,
|
|
10
|
+
selectedWidget: Object,
|
|
11
|
+
optionModel: Object
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15
|
+
const _component_a_input_number = resolveComponent("a-input-number");
|
|
16
|
+
const _component_a_form_item = resolveComponent("a-form-item");
|
|
17
|
+
return openBlock(), createBlock(_component_a_form_item, { label: "行高(px)" }, {
|
|
18
|
+
default: withCtx(() => [
|
|
19
|
+
createVNode(_component_a_input_number, {
|
|
20
|
+
type: "text",
|
|
21
|
+
value: $props.optionModel.lineHeight,
|
|
22
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => $props.optionModel.lineHeight = $event)
|
|
23
|
+
}, null, 8, ["value"])
|
|
24
|
+
]),
|
|
25
|
+
_: 1
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
const lineHeightEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
29
|
+
export {
|
|
30
|
+
lineHeightEditor as default
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=line-height-editor.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line-height-editor.vue.js","sources":["../../../../../../../src/components/form-designer/setting-panel/property-editor/container-vf-dialog/line-height-editor.vue"],"sourcesContent":["<template>\n <a-form-item label=\"行高(px)\">\n <a-input-number type=\"text\" v-model:value=\"optionModel.lineHeight\" />\n </a-form-item>\n</template>\n\n<script>\n import i18n from '@/utils/i18n';\n import propertyMixin from '@/components/form-designer/setting-panel/property-editor/propertyMixin';\n\n export default {\n name: 'line-height-editor',\n mixins: [i18n, propertyMixin],\n props: {\n designer: Object,\n selectedWidget: Object,\n optionModel: Object\n }\n };\n</script>\n\n<style scoped></style>\n"],"names":["_createBlock","_createVNode"],"mappings":";;;;AAUI,MAAK,YAAU;AAAA,EACX,MAAM;AAAA,EACN,QAAQ,CAAC,MAAM,aAAa;AAAA,EAC5B,OAAO;AAAA,IACH,UAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,aAAa;AAAA,EACjB;AACH;;;;sBAjBDA,YAEc,wBAAA,EAFD,OAAM,YAAQ;AAAA,qBACvB,MAAqE;AAAA,MAArEC,YAAqE,2BAAA;AAAA,QAArD,MAAK;AAAA,QAAe,OAAO,OAAW,YAAC;AAAA,QAAZ,kBAAA,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA,YAAA,OAAA,YAAY,aAAU;AAAA;;;;;;"}
|
|
@@ -55,6 +55,7 @@ import * as formCodeEditor from "./container-vf-dialog/formCode-editor.vue.js";
|
|
|
55
55
|
import * as fullscreenEditor from "./container-vf-dialog/fullscreen-editor.vue.js";
|
|
56
56
|
import * as heightEditor from "./container-vf-dialog/height-editor.vue.js";
|
|
57
57
|
import * as isCollapseEditor from "./container-vf-dialog/isCollapse-editor.vue.js";
|
|
58
|
+
import * as lineHeightEditor from "./container-vf-dialog/line-height-editor.vue.js";
|
|
58
59
|
import * as okButtonHiddenEditor from "./container-vf-dialog/okButtonHidden-editor.vue.js";
|
|
59
60
|
import * as okButtonLabelEditor from "./container-vf-dialog/okButtonLabel-editor.vue.js";
|
|
60
61
|
import * as readModeEditor from "./container-vf-dialog/readMode-editor.vue.js";
|
|
@@ -213,7 +214,7 @@ import * as validationEditor from "./validation-editor.vue.js";
|
|
|
213
214
|
import * as validationHintEditor from "./validationHint-editor.vue.js";
|
|
214
215
|
import * as withCredentialsEditor from "./withCredentials-editor.vue.js";
|
|
215
216
|
const comps = {};
|
|
216
|
-
const modules = /* @__PURE__ */ Object.assign({ "./accept-editor.vue": acceptEditor, "./actionColumnPosition-editor.vue": actionColumnPositionEditor, "./addonAfter-editor.vue": addonAfterEditor, "./addonBefore-editor.vue": addonBeforeEditor, "./allowClear-editor.vue": allowClearEditor, "./appendButton-editor.vue": appendButtonEditor, "./appendButtonDisabled-editor.vue": appendButtonDisabledEditor, "./autoFullWidth-editor.vue": autoFullWidthEditor, "./border-editor.vue": borderEditor, "./button-list-editor.vue": buttonListEditor, "./button-postion-editor.vue": buttonPostionEditor, "./buttonIcon-editor.vue": buttonIconEditor, "./buttonStyle-editor.vue": buttonStyleEditor, "./code-editor/code-editor-mode.vue": codeEditorMode, "./columnWidth-editor.vue": columnWidthEditor, "./container-data-table/customRowEvent/data-table-customRow-editor.vue": dataTableCustomRowEditor, "./container-data-table/data-table-colorRow-editor.vue": dataTableColorRowEditor, "./container-data-table/data-table-customClass-editor.vue": dataTableCustomClassEditor, "./container-data-table/data-table-dsEnabled-editor.vue": dataTableDsEnabledEditor, "./container-data-table/data-table-pagination-editor.vue": dataTablePaginationEditor, "./container-data-table/data-table-rowKey-editor.vue": dataTableRowKeyEditor, "./container-data-table/data-table-selections-editor.vue": dataTableSelectionsEditor, "./container-data-table/data-table-showButtonsColumn-editor.vue": dataTableShowButtonsColumnEditor, "./container-data-table/data-table-showIndex-editor.vue": dataTableShowIndexEditor, "./container-data-table/data-table-stripe-editor.vue": dataTableStripeEditor, "./container-data-table/data-table-tableColumns-editor.vue": dataTableTableColumnsEditor, "./container-data-table/data-table-tableHeight-editor.vue": dataTableTableHeightEditor, "./container-data-table/data-table-tableSize-editor.vue": dataTableTableSizeEditor, "./container-data-table/data-table-tableWidth-editor.vue": dataTableTableWidthEditor, "./container-data-table/data-table-treeDataEnabled-editor.vue": dataTableTreeDataEnabledEditor, "./container-grid-col/grid-col-offset-editor.vue": gridColOffsetEditor, "./container-grid-col/grid-col-pull-editor.vue": gridColPullEditor, "./container-grid-col/grid-col-push-editor.vue": gridColPushEditor, "./container-grid-col/grid-col-responsive-editor.vue": gridColResponsiveEditor, "./container-grid-col/grid-col-span-editor.vue": gridColSpanEditor, "./container-grid/colHeight-editor.vue": colHeightEditor, "./container-grid/gutter-editor.vue": gutterEditor, "./container-sub-form/showBlankRow-editor.vue": showBlankRowEditor, "./container-sub-form/showRowNumber-editor.vue": showRowNumberEditor, "./container-sub-form/sub-form-labelAlign-editor.vue": subFormLabelAlignEditor, "./container-tab/tab-customClass-editor.vue": tabCustomClassEditor, "./container-tab/tab-tabBarGutter-editor.vue": tabTabBarGutterEditor, "./container-tab/tab-tabPosition-editor.vue": tabTabPositionEditor, "./container-tab/tab-type-editor.vue": tabTypeEditor, "./container-table-cell/cellHeight-editor.vue": cellHeightEditor, "./container-table-cell/cellWidth-editor.vue": cellWidthEditor, "./container-vf-dialog/bodyStyle-editor.vue": bodyStyleEditor, "./container-vf-dialog/cancelButtonHidden-editor.vue": cancelButtonHiddenEditor, "./container-vf-dialog/cancelButtonLabel-editor.vue": cancelButtonLabelEditor, "./container-vf-dialog/closeOnClickModal-editor.vue": closeOnClickModalEditor, "./container-vf-dialog/closeOnPressEscape-editor.vue": closeOnPressEscapeEditor, "./container-vf-dialog/collapseIcon-editor.vue": collapseIconEditor, "./container-vf-dialog/disabledMode-editor.vue": disabledModeEditor, "./container-vf-dialog/formCode-editor.vue": formCodeEditor, "./container-vf-dialog/fullscreen-editor.vue": fullscreenEditor, "./container-vf-dialog/height-editor.vue": heightEditor, "./container-vf-dialog/isCollapse-editor.vue": isCollapseEditor, "./container-vf-dialog/okButtonHidden-editor.vue": okButtonHiddenEditor, "./container-vf-dialog/okButtonLabel-editor.vue": okButtonLabelEditor, "./container-vf-dialog/readMode-editor.vue": readModeEditor, "./container-vf-dialog/showClose-editor.vue": showCloseEditor, "./container-vf-dialog/title-editor.vue": titleEditor, "./container-vf-dialog/unCollapseIcon-editor.vue": unCollapseIconEditor, "./container-vf-dialog/width-editor.vue": widthEditor, "./container-vf-drawer/vf-drawer-direction-editor.vue": vfDrawerDirectionEditor, "./container-vf-drawer/vf-drawer-size-editor.vue": vfDrawerSizeEditor, "./customClass-editor.vue": customClassEditor, "./defaultValue-editor.vue": defaultValueEditor, "./disabled-editor.vue": disabledEditor, "./displayStyle-editor.vue": displayStyleEditor, "./diy-compontent-editor.vue": diyCompontentEditor, "./editable-editor.vue": editableEditor, "./endPlaceholder-editor.vue": endPlaceholderEditor, "./event-handler/onAppendButtonClick-editor.vue": onAppendButtonClickEditor, "./event-handler/onBeforeUpload-editor.vue": onBeforeUploadEditor, "./event-handler/onBlur-editor.vue": onBlurEditor, "./event-handler/onCancelButtonClick-editor.vue": onCancelButtonClickEditor, "./event-handler/onCellClick-editor.vue": onCellClickEditor, "./event-handler/onCellDoubleClick-editor.vue": onCellDoubleClickEditor, "./event-handler/onChange-editor.vue": onChangeEditor, "./event-handler/onClick-editor.vue": onClickEditor, "./event-handler/onClickIcon-editor.vue": onClickIconEditor, "./event-handler/onCreated-editor.vue": onCreatedEditor, "./event-handler/onCurrentPageChange-editor.vue": onCurrentPageChangeEditor, "./event-handler/onDialogBeforeClose-editor.vue": onDialogBeforeCloseEditor, "./event-handler/onDialogOpened-editor.vue": onDialogOpenedEditor, "./event-handler/onDisableOperationButton-editor.vue": onDisableOperationButtonEditor, "./event-handler/onDrawerBeforeClose-editor.vue": onDrawerBeforeCloseEditor, "./event-handler/onDrawerOpened-editor.vue": onDrawerOpenedEditor, "./event-handler/onFileRemove.vue": onFileRemove, "./event-handler/onFocus-editor.vue": onFocusEditor, "./event-handler/onGetOperationButtonLabel-editor.vue": onGetOperationButtonLabelEditor, "./event-handler/onGetRowClassName-editor.vue": onGetRowClassNameEditor, "./event-handler/onGetSpanMethod-editor.vue": onGetSpanMethodEditor, "./event-handler/onHeaderClick-editor.vue": onHeaderClickEditor, "./event-handler/onHideOperationButton-editor.vue": onHideOperationButtonEditor, "./event-handler/onInput-editor.vue": onInputEditor, "./event-handler/onMenuClick-editor.vue": onMenuClickEditor, "./event-handler/onMounted-editor.vue": onMountedEditor, "./event-handler/onOkButtonClick-editor.vue": onOkButtonClickEditor, "./event-handler/onOperationButtonClick-editor.vue": onOperationButtonClickEditor, "./event-handler/onPageSizeChange-editor.vue": onPageSizeChangeEditor, "./event-handler/onRemoteQuery-editor.vue": onRemoteQueryEditor, "./event-handler/onRowClick-editor.vue": onRowClickEditor, "./event-handler/onRowDoubleClick-editor.vue": onRowDoubleClickEditor, "./event-handler/onSelectionChange-editor.vue": onSelectionChangeEditor, "./event-handler/onSubFormRowAdd-editor.vue": onSubFormRowAddEditor, "./event-handler/onSubFormRowChange-editor.vue": onSubFormRowChangeEditor, "./event-handler/onSubFormRowDelete-editor.vue": onSubFormRowDeleteEditor, "./event-handler/onSubFormRowInsert-editor.vue": onSubFormRowInsertEditor, "./event-handler/onTabClick-editor.vue": onTabClickEditor, "./event-handler/onTableChange-editor.vue": onTableChangeEditor, "./event-handler/onUploadError-editor.vue": onUploadErrorEditor, "./event-handler/onUploadSuccess-editor.vue": onUploadSuccessEditor, "./event-handler/onValidate-editor.vue": onValidateEditor, "./event-handler/onVformAdd-editor.vue": onVformAddEditor, "./field-button/circle-editor.vue": circleEditor, "./field-button/danger-editor.vue": dangerEditor, "./field-button/ghost-editor.vue": ghostEditor, "./field-button/icon-editor.vue": iconEditor, "./field-button/plain-editor.vue": plainEditor, "./field-button/round-editor.vue": roundEditor, "./field-button/shape-editor.vue": shapeEditor, "./field-button/type-editor.vue": typeEditor$1, "./field-cascader/cascader-defaultValue-editor.vue": cascaderDefaultValueEditor, "./field-cascader/cascader-multiple-editor.vue": cascaderMultipleEditor, "./field-checkbox/checkbox-defaultValue-editor.vue": checkboxDefaultValueEditor, "./field-color/color-defaultValue-editor.vue": colorDefaultValueEditor, "./field-date-range/date-range-defaultValue-editor.vue": dateRangeDefaultValueEditor, "./field-date-range/date-range-format-editor.vue": dateRangeFormatEditor, "./field-date-range/date-range-type-editor.vue": dateRangeTypeEditor, "./field-date-range/date-range-valueFormat-editor.vue": dateRangeValueFormatEditor, "./field-date/date-defaultValue-editor.vue": dateDefaultValueEditor, "./field-date/date-format-editor.vue": dateFormatEditor, "./field-date/date-type-editor.vue": dateTypeEditor, "./field-date/date-valueFormat-editor.vue": dateValueFormatEditor, "./field-divider/contentPosition-editor.vue": contentPositionEditor, "./field-divider/divider-direction-editor.vue": dividerDirectionEditor, "./field-dropdown/dropdown-menuList-editor.vue": dropdownMenuListEditor, "./field-file-upload/file-upload-fileTypes-editor.vue": fileUploadFileTypesEditor, "./field-html-text/htmlContent-editor.vue": htmlContentEditor, "./field-number/controlsPosition-editor.vue": controlsPositionEditor, "./field-number/number-defaultValue-editor.vue": numberDefaultValueEditor, "./field-picture-upload/picture-upload-fileTypes-editor.vue": pictureUploadFileTypesEditor, "./field-radio/radio-defaultValue-editor.vue": radioDefaultValueEditor, "./field-rate/allowHalf-editor.vue": allowHalfEditor, "./field-rate/highThreshold-editor.vue": highThresholdEditor, "./field-rate/lowThreshold-editor.vue": lowThresholdEditor, "./field-rate/rate-count-editor.vue": rateCountEditor, "./field-rate/rate-defaultValue-editor.vue": rateDefaultValueEditor, "./field-rate/showScore-editor.vue": showScoreEditor, "./field-rate/showText-editor.vue": showTextEditor, "./field-rich-editor/rich-editor-contentHeight-editor.vue": richEditorContentHeightEditor, "./field-select/mode-editor.vue": modeEditor, "./field-select/select-defaultValue-editor.vue": selectDefaultValueEditor, "./field-slider/range-editor.vue": rangeEditor, "./field-slider/vertical-editor.vue": verticalEditor, "./field-static-text/textContent-editor.vue": textContentEditor, "./field-switch/activeColor-editor.vue": activeColorEditor, "./field-switch/checkedValue-editor.vue": checkedValueEditor, "./field-switch/inactiveColor-editor.vue": inactiveColorEditor, "./field-switch/switch-defaultValue-editor.vue": switchDefaultValueEditor, "./field-switch/switchWidth-editor.vue": switchWidthEditor, "./field-switch/unCheckedValue-editor.vue": unCheckedValueEditor, "./field-time-range/time-range-defaultValue-editor.vue": timeRangeDefaultValueEditor, "./field-time-range/time-range-format-editor.vue": timeRangeFormatEditor, "./field-time/time-defaultValue-editor.vue": timeDefaultValueEditor, "./field-time/time-format-editor.vue": timeFormatEditor, "./field-treeSelect/treeSelect-treeDefaultExpandAll-editor.vue": treeSelectTreeDefaultExpandAllEditor, "./flex-editor.vue": flexEditor, "./hidden-editor.vue": hiddenEditor, "./label-editor.vue": labelEditor, "./labelAlign-editor.vue": labelAlignEditor, "./labelHidden-editor.vue": labelHiddenEditor, "./labelIconClass-editor.vue": labelIconClassEditor, "./labelIconPosition-editor.vue": labelIconPositionEditor, "./labelTooltip-editor.vue": labelTooltipEditor, "./labelWidth-editor.vue": labelWidthEditor, "./limit-editor.vue": limitEditor, "./loadingPage-editor.vue": loadingPageEditor, "./max-editor.vue": maxEditor, "./maxLength-editor.vue": maxLengthEditor, "./maxSize-editor.vue": maxSizeEditor, "./min-editor.vue": minEditor, "./minLength-editor.vue": minLengthEditor, "./multiple-editor.vue": multipleEditor, "./multipleSelect-editor.vue": multipleSelectEditor, "./name-editor.vue": nameEditor, "./optionItems-editor.vue": optionItemsEditor, "./placeholder-editor.vue": placeholderEditor, "./placement-editor.vue": placementEditor, "./precision-editor.vue": precisionEditor, "./readonly-editor.vue": readonlyEditor, "./required-editor.vue": requiredEditor, "./requiredHint-editor.vue": requiredHintEditor, "./rightSlotCss-editor.vue": rightSlotCssEditor, "./rows-editor.vue": rowsEditor, "./showCount-editor.vue": showCountEditor, "./showFileList-editor.vue": showFileListEditor, "./showPassword-editor.vue": showPasswordEditor, "./showSearch-editor.vue": showSearchEditor, "./showTime-editor.vue": showTimeEditor, "./size-editor.vue": sizeEditor, "./slot-compontent-editor.vue": slotCompontentEditor, "./startPlaceholder-editor.vue": startPlaceholderEditor, "./step-editor.vue": stepEditor, "./type-editor.vue": typeEditor, "./uploadListType-editor.vue": uploadListTypeEditor, "./uploadTip-editor.vue": uploadTipEditor, "./uploadURL-editor.vue": uploadURLEditor, "./useModel-editor.vue": useModelEditor, "./validation-editor.vue": validationEditor, "./validationHint-editor.vue": validationHintEditor, "./withCredentials-editor.vue": withCredentialsEditor });
|
|
217
|
+
const modules = /* @__PURE__ */ Object.assign({ "./accept-editor.vue": acceptEditor, "./actionColumnPosition-editor.vue": actionColumnPositionEditor, "./addonAfter-editor.vue": addonAfterEditor, "./addonBefore-editor.vue": addonBeforeEditor, "./allowClear-editor.vue": allowClearEditor, "./appendButton-editor.vue": appendButtonEditor, "./appendButtonDisabled-editor.vue": appendButtonDisabledEditor, "./autoFullWidth-editor.vue": autoFullWidthEditor, "./border-editor.vue": borderEditor, "./button-list-editor.vue": buttonListEditor, "./button-postion-editor.vue": buttonPostionEditor, "./buttonIcon-editor.vue": buttonIconEditor, "./buttonStyle-editor.vue": buttonStyleEditor, "./code-editor/code-editor-mode.vue": codeEditorMode, "./columnWidth-editor.vue": columnWidthEditor, "./container-data-table/customRowEvent/data-table-customRow-editor.vue": dataTableCustomRowEditor, "./container-data-table/data-table-colorRow-editor.vue": dataTableColorRowEditor, "./container-data-table/data-table-customClass-editor.vue": dataTableCustomClassEditor, "./container-data-table/data-table-dsEnabled-editor.vue": dataTableDsEnabledEditor, "./container-data-table/data-table-pagination-editor.vue": dataTablePaginationEditor, "./container-data-table/data-table-rowKey-editor.vue": dataTableRowKeyEditor, "./container-data-table/data-table-selections-editor.vue": dataTableSelectionsEditor, "./container-data-table/data-table-showButtonsColumn-editor.vue": dataTableShowButtonsColumnEditor, "./container-data-table/data-table-showIndex-editor.vue": dataTableShowIndexEditor, "./container-data-table/data-table-stripe-editor.vue": dataTableStripeEditor, "./container-data-table/data-table-tableColumns-editor.vue": dataTableTableColumnsEditor, "./container-data-table/data-table-tableHeight-editor.vue": dataTableTableHeightEditor, "./container-data-table/data-table-tableSize-editor.vue": dataTableTableSizeEditor, "./container-data-table/data-table-tableWidth-editor.vue": dataTableTableWidthEditor, "./container-data-table/data-table-treeDataEnabled-editor.vue": dataTableTreeDataEnabledEditor, "./container-grid-col/grid-col-offset-editor.vue": gridColOffsetEditor, "./container-grid-col/grid-col-pull-editor.vue": gridColPullEditor, "./container-grid-col/grid-col-push-editor.vue": gridColPushEditor, "./container-grid-col/grid-col-responsive-editor.vue": gridColResponsiveEditor, "./container-grid-col/grid-col-span-editor.vue": gridColSpanEditor, "./container-grid/colHeight-editor.vue": colHeightEditor, "./container-grid/gutter-editor.vue": gutterEditor, "./container-sub-form/showBlankRow-editor.vue": showBlankRowEditor, "./container-sub-form/showRowNumber-editor.vue": showRowNumberEditor, "./container-sub-form/sub-form-labelAlign-editor.vue": subFormLabelAlignEditor, "./container-tab/tab-customClass-editor.vue": tabCustomClassEditor, "./container-tab/tab-tabBarGutter-editor.vue": tabTabBarGutterEditor, "./container-tab/tab-tabPosition-editor.vue": tabTabPositionEditor, "./container-tab/tab-type-editor.vue": tabTypeEditor, "./container-table-cell/cellHeight-editor.vue": cellHeightEditor, "./container-table-cell/cellWidth-editor.vue": cellWidthEditor, "./container-vf-dialog/bodyStyle-editor.vue": bodyStyleEditor, "./container-vf-dialog/cancelButtonHidden-editor.vue": cancelButtonHiddenEditor, "./container-vf-dialog/cancelButtonLabel-editor.vue": cancelButtonLabelEditor, "./container-vf-dialog/closeOnClickModal-editor.vue": closeOnClickModalEditor, "./container-vf-dialog/closeOnPressEscape-editor.vue": closeOnPressEscapeEditor, "./container-vf-dialog/collapseIcon-editor.vue": collapseIconEditor, "./container-vf-dialog/disabledMode-editor.vue": disabledModeEditor, "./container-vf-dialog/formCode-editor.vue": formCodeEditor, "./container-vf-dialog/fullscreen-editor.vue": fullscreenEditor, "./container-vf-dialog/height-editor.vue": heightEditor, "./container-vf-dialog/isCollapse-editor.vue": isCollapseEditor, "./container-vf-dialog/line-height-editor.vue": lineHeightEditor, "./container-vf-dialog/okButtonHidden-editor.vue": okButtonHiddenEditor, "./container-vf-dialog/okButtonLabel-editor.vue": okButtonLabelEditor, "./container-vf-dialog/readMode-editor.vue": readModeEditor, "./container-vf-dialog/showClose-editor.vue": showCloseEditor, "./container-vf-dialog/title-editor.vue": titleEditor, "./container-vf-dialog/unCollapseIcon-editor.vue": unCollapseIconEditor, "./container-vf-dialog/width-editor.vue": widthEditor, "./container-vf-drawer/vf-drawer-direction-editor.vue": vfDrawerDirectionEditor, "./container-vf-drawer/vf-drawer-size-editor.vue": vfDrawerSizeEditor, "./customClass-editor.vue": customClassEditor, "./defaultValue-editor.vue": defaultValueEditor, "./disabled-editor.vue": disabledEditor, "./displayStyle-editor.vue": displayStyleEditor, "./diy-compontent-editor.vue": diyCompontentEditor, "./editable-editor.vue": editableEditor, "./endPlaceholder-editor.vue": endPlaceholderEditor, "./event-handler/onAppendButtonClick-editor.vue": onAppendButtonClickEditor, "./event-handler/onBeforeUpload-editor.vue": onBeforeUploadEditor, "./event-handler/onBlur-editor.vue": onBlurEditor, "./event-handler/onCancelButtonClick-editor.vue": onCancelButtonClickEditor, "./event-handler/onCellClick-editor.vue": onCellClickEditor, "./event-handler/onCellDoubleClick-editor.vue": onCellDoubleClickEditor, "./event-handler/onChange-editor.vue": onChangeEditor, "./event-handler/onClick-editor.vue": onClickEditor, "./event-handler/onClickIcon-editor.vue": onClickIconEditor, "./event-handler/onCreated-editor.vue": onCreatedEditor, "./event-handler/onCurrentPageChange-editor.vue": onCurrentPageChangeEditor, "./event-handler/onDialogBeforeClose-editor.vue": onDialogBeforeCloseEditor, "./event-handler/onDialogOpened-editor.vue": onDialogOpenedEditor, "./event-handler/onDisableOperationButton-editor.vue": onDisableOperationButtonEditor, "./event-handler/onDrawerBeforeClose-editor.vue": onDrawerBeforeCloseEditor, "./event-handler/onDrawerOpened-editor.vue": onDrawerOpenedEditor, "./event-handler/onFileRemove.vue": onFileRemove, "./event-handler/onFocus-editor.vue": onFocusEditor, "./event-handler/onGetOperationButtonLabel-editor.vue": onGetOperationButtonLabelEditor, "./event-handler/onGetRowClassName-editor.vue": onGetRowClassNameEditor, "./event-handler/onGetSpanMethod-editor.vue": onGetSpanMethodEditor, "./event-handler/onHeaderClick-editor.vue": onHeaderClickEditor, "./event-handler/onHideOperationButton-editor.vue": onHideOperationButtonEditor, "./event-handler/onInput-editor.vue": onInputEditor, "./event-handler/onMenuClick-editor.vue": onMenuClickEditor, "./event-handler/onMounted-editor.vue": onMountedEditor, "./event-handler/onOkButtonClick-editor.vue": onOkButtonClickEditor, "./event-handler/onOperationButtonClick-editor.vue": onOperationButtonClickEditor, "./event-handler/onPageSizeChange-editor.vue": onPageSizeChangeEditor, "./event-handler/onRemoteQuery-editor.vue": onRemoteQueryEditor, "./event-handler/onRowClick-editor.vue": onRowClickEditor, "./event-handler/onRowDoubleClick-editor.vue": onRowDoubleClickEditor, "./event-handler/onSelectionChange-editor.vue": onSelectionChangeEditor, "./event-handler/onSubFormRowAdd-editor.vue": onSubFormRowAddEditor, "./event-handler/onSubFormRowChange-editor.vue": onSubFormRowChangeEditor, "./event-handler/onSubFormRowDelete-editor.vue": onSubFormRowDeleteEditor, "./event-handler/onSubFormRowInsert-editor.vue": onSubFormRowInsertEditor, "./event-handler/onTabClick-editor.vue": onTabClickEditor, "./event-handler/onTableChange-editor.vue": onTableChangeEditor, "./event-handler/onUploadError-editor.vue": onUploadErrorEditor, "./event-handler/onUploadSuccess-editor.vue": onUploadSuccessEditor, "./event-handler/onValidate-editor.vue": onValidateEditor, "./event-handler/onVformAdd-editor.vue": onVformAddEditor, "./field-button/circle-editor.vue": circleEditor, "./field-button/danger-editor.vue": dangerEditor, "./field-button/ghost-editor.vue": ghostEditor, "./field-button/icon-editor.vue": iconEditor, "./field-button/plain-editor.vue": plainEditor, "./field-button/round-editor.vue": roundEditor, "./field-button/shape-editor.vue": shapeEditor, "./field-button/type-editor.vue": typeEditor$1, "./field-cascader/cascader-defaultValue-editor.vue": cascaderDefaultValueEditor, "./field-cascader/cascader-multiple-editor.vue": cascaderMultipleEditor, "./field-checkbox/checkbox-defaultValue-editor.vue": checkboxDefaultValueEditor, "./field-color/color-defaultValue-editor.vue": colorDefaultValueEditor, "./field-date-range/date-range-defaultValue-editor.vue": dateRangeDefaultValueEditor, "./field-date-range/date-range-format-editor.vue": dateRangeFormatEditor, "./field-date-range/date-range-type-editor.vue": dateRangeTypeEditor, "./field-date-range/date-range-valueFormat-editor.vue": dateRangeValueFormatEditor, "./field-date/date-defaultValue-editor.vue": dateDefaultValueEditor, "./field-date/date-format-editor.vue": dateFormatEditor, "./field-date/date-type-editor.vue": dateTypeEditor, "./field-date/date-valueFormat-editor.vue": dateValueFormatEditor, "./field-divider/contentPosition-editor.vue": contentPositionEditor, "./field-divider/divider-direction-editor.vue": dividerDirectionEditor, "./field-dropdown/dropdown-menuList-editor.vue": dropdownMenuListEditor, "./field-file-upload/file-upload-fileTypes-editor.vue": fileUploadFileTypesEditor, "./field-html-text/htmlContent-editor.vue": htmlContentEditor, "./field-number/controlsPosition-editor.vue": controlsPositionEditor, "./field-number/number-defaultValue-editor.vue": numberDefaultValueEditor, "./field-picture-upload/picture-upload-fileTypes-editor.vue": pictureUploadFileTypesEditor, "./field-radio/radio-defaultValue-editor.vue": radioDefaultValueEditor, "./field-rate/allowHalf-editor.vue": allowHalfEditor, "./field-rate/highThreshold-editor.vue": highThresholdEditor, "./field-rate/lowThreshold-editor.vue": lowThresholdEditor, "./field-rate/rate-count-editor.vue": rateCountEditor, "./field-rate/rate-defaultValue-editor.vue": rateDefaultValueEditor, "./field-rate/showScore-editor.vue": showScoreEditor, "./field-rate/showText-editor.vue": showTextEditor, "./field-rich-editor/rich-editor-contentHeight-editor.vue": richEditorContentHeightEditor, "./field-select/mode-editor.vue": modeEditor, "./field-select/select-defaultValue-editor.vue": selectDefaultValueEditor, "./field-slider/range-editor.vue": rangeEditor, "./field-slider/vertical-editor.vue": verticalEditor, "./field-static-text/textContent-editor.vue": textContentEditor, "./field-switch/activeColor-editor.vue": activeColorEditor, "./field-switch/checkedValue-editor.vue": checkedValueEditor, "./field-switch/inactiveColor-editor.vue": inactiveColorEditor, "./field-switch/switch-defaultValue-editor.vue": switchDefaultValueEditor, "./field-switch/switchWidth-editor.vue": switchWidthEditor, "./field-switch/unCheckedValue-editor.vue": unCheckedValueEditor, "./field-time-range/time-range-defaultValue-editor.vue": timeRangeDefaultValueEditor, "./field-time-range/time-range-format-editor.vue": timeRangeFormatEditor, "./field-time/time-defaultValue-editor.vue": timeDefaultValueEditor, "./field-time/time-format-editor.vue": timeFormatEditor, "./field-treeSelect/treeSelect-treeDefaultExpandAll-editor.vue": treeSelectTreeDefaultExpandAllEditor, "./flex-editor.vue": flexEditor, "./hidden-editor.vue": hiddenEditor, "./label-editor.vue": labelEditor, "./labelAlign-editor.vue": labelAlignEditor, "./labelHidden-editor.vue": labelHiddenEditor, "./labelIconClass-editor.vue": labelIconClassEditor, "./labelIconPosition-editor.vue": labelIconPositionEditor, "./labelTooltip-editor.vue": labelTooltipEditor, "./labelWidth-editor.vue": labelWidthEditor, "./limit-editor.vue": limitEditor, "./loadingPage-editor.vue": loadingPageEditor, "./max-editor.vue": maxEditor, "./maxLength-editor.vue": maxLengthEditor, "./maxSize-editor.vue": maxSizeEditor, "./min-editor.vue": minEditor, "./minLength-editor.vue": minLengthEditor, "./multiple-editor.vue": multipleEditor, "./multipleSelect-editor.vue": multipleSelectEditor, "./name-editor.vue": nameEditor, "./optionItems-editor.vue": optionItemsEditor, "./placeholder-editor.vue": placeholderEditor, "./placement-editor.vue": placementEditor, "./precision-editor.vue": precisionEditor, "./readonly-editor.vue": readonlyEditor, "./required-editor.vue": requiredEditor, "./requiredHint-editor.vue": requiredHintEditor, "./rightSlotCss-editor.vue": rightSlotCssEditor, "./rows-editor.vue": rowsEditor, "./showCount-editor.vue": showCountEditor, "./showFileList-editor.vue": showFileListEditor, "./showPassword-editor.vue": showPasswordEditor, "./showSearch-editor.vue": showSearchEditor, "./showTime-editor.vue": showTimeEditor, "./size-editor.vue": sizeEditor, "./slot-compontent-editor.vue": slotCompontentEditor, "./startPlaceholder-editor.vue": startPlaceholderEditor, "./step-editor.vue": stepEditor, "./type-editor.vue": typeEditor, "./uploadListType-editor.vue": uploadListTypeEditor, "./uploadTip-editor.vue": uploadTipEditor, "./uploadURL-editor.vue": uploadURLEditor, "./useModel-editor.vue": useModelEditor, "./validation-editor.vue": validationEditor, "./validationHint-editor.vue": validationHintEditor, "./withCredentials-editor.vue": withCredentialsEditor });
|
|
217
218
|
for (const path in modules) {
|
|
218
219
|
const cname = modules[path].default.name;
|
|
219
220
|
comps[cname] = modules[path].default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../src/components/form-designer/setting-panel/property-editor/index.js"],"sourcesContent":["// const comps = {};\n\n// const modules = import.meta.glob('./**/*.vue');\n// // const modules = import.meta.globEager('./**/*.vue');\n\n// for (const path in modules) {\n// const fileName = getFileName(path);\n// comps[fileName] = modules[path];\n// }\n\n// function getFileName(path) {\n// // 处理Windows路径分隔符\n// const normalizedPath = path.replace(/\\\\/g, '/');\n// // 获取带扩展名的文件名\n// const filenameWithExt = normalizedPath.split('/').pop();\n// // 分离文件名和扩展名\n// const lastDotIndex = filenameWithExt.lastIndexOf('.');\n// return lastDotIndex === -1 ? filenameWithExt : filenameWithExt.substring(0, lastDotIndex);\n// }\n\n// export default comps;\n\nconst comps = {};\n\nconst modules = import.meta.glob('./**/*.vue', { eager: true });\n// const modules = import.meta.globEager('./**/*.vue');\n\nfor (const path in modules) {\n const cname = modules[path].default.name;\n comps[cname] = modules[path].default;\n}\n\nexport default comps;\n\nexport function useAsyncEditor() {}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../src/components/form-designer/setting-panel/property-editor/index.js"],"sourcesContent":["// const comps = {};\n\n// const modules = import.meta.glob('./**/*.vue');\n// // const modules = import.meta.globEager('./**/*.vue');\n\n// for (const path in modules) {\n// const fileName = getFileName(path);\n// comps[fileName] = modules[path];\n// }\n\n// function getFileName(path) {\n// // 处理Windows路径分隔符\n// const normalizedPath = path.replace(/\\\\/g, '/');\n// // 获取带扩展名的文件名\n// const filenameWithExt = normalizedPath.split('/').pop();\n// // 分离文件名和扩展名\n// const lastDotIndex = filenameWithExt.lastIndexOf('.');\n// return lastDotIndex === -1 ? filenameWithExt : filenameWithExt.substring(0, lastDotIndex);\n// }\n\n// export default comps;\n\nconst comps = {};\n\nconst modules = import.meta.glob('./**/*.vue', { eager: true });\n// const modules = import.meta.globEager('./**/*.vue');\n\nfor (const path in modules) {\n const cname = modules[path].default.name;\n comps[cname] = modules[path].default;\n}\n\nexport default comps;\n\nexport function useAsyncEditor() {}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBK,MAAC,QAAQ,CAAA;AAEd,MAAM;AAGN,WAAW,QAAQ,SAAS;AACxB,QAAM,QAAQ,QAAQ,IAAI,EAAE,QAAQ;AACpC,QAAM,KAAK,IAAI,QAAQ,IAAI,EAAE;AACjC;"}
|
|
@@ -98,6 +98,7 @@ const COMMON_PROPERTIES = {
|
|
|
98
98
|
title: "title-editor",
|
|
99
99
|
width: "width-editor",
|
|
100
100
|
height: "height-editor",
|
|
101
|
+
lineHeight: "line-height-editor",
|
|
101
102
|
formCode: "formCode-editor",
|
|
102
103
|
collapseIcon: "collapseIcon-editor",
|
|
103
104
|
unCollapseIcon: "unCollapseIcon-editor",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertyRegister.js","sources":["../../../../../src/components/form-designer/setting-panel/propertyRegister.js"],"sourcesContent":["//import { vfApp } from '@/utils/create-app'\n\n/**\n * 格式说明:属性名称==对应属性编辑器的组件名称\n */\nconst COMMON_PROPERTIES = {\n //字段\n name: 'name-editor',\n label: 'label-editor',\n labelAlign: 'labelAlign-editor',\n type: 'type-editor',\n tabPosition: 'tabPosition-editor',\n tabBarGutter: 'tabBarGutter-editor',\n shape: 'shape-editor',\n danger: 'danger-editor',\n ghost: 'ghost-editor',\n defaultValue: 'defaultValue-editor',\n placeholder: 'placeholder-editor',\n startPlaceholder: 'startPlaceholder-editor',\n endPlaceholder: 'endPlaceholder-editor',\n columnWidth: 'columnWidth-editor',\n autoFullWidth: 'autoFullWidth-editor',\n size: 'size-editor',\n flex: 'flex-editor',\n // displayStyle: 'displayStyle-editor',\n buttonStyle: 'buttonStyle-editor',\n border: 'border-editor',\n labelWidth: 'labelWidth-editor',\n labelHidden: 'labelHidden-editor',\n rows: 'rows-editor',\n required: 'required-editor',\n requiredHint: 'requiredHint-editor',\n validation: 'validation-editor',\n validationHint: 'validationHint-editor',\n readonly: 'readonly-editor',\n disabled: 'disabled-editor',\n loadingPage: 'loadingPage-editor',\n hidden: 'hidden-editor',\n useModal: 'useModal-editor',\n checkedValue: 'checkedValue-editor',\n unCheckedValue: 'unCheckedValue-editor',\n placement: 'placement-editor',\n rowKey: 'rowKey-editor',\n tableWidth: 'tableWidth-editor',\n tableHeight: 'tableHeight-editor',\n showIndex: 'showIndex-editor',\n stripe: 'stripe-editor',\n colorRow: 'colorRow-editor',\n tableSize: 'tableSize-editor',\n pagination: 'pagination-editor',\n showButtonsColumn: 'showButtonsColumn-editor',\n rowSelection: 'rowSelection-editor',\n dsEnabled: 'dsEnabled-editor',\n tableColumns: 'tableColumns-editor',\n treeDataEnabled: 'treeDataEnabled-editor',\n allowClear: 'allowClear-editor',\n treeDefaultExpandAll: 'treeDefaultExpandAll-editor',\n showTime: 'showTime-editor',\n editable: 'editable-editor',\n showPassword: 'showPassword-editor',\n textContent: 'textContent-editor',\n htmlContent: 'htmlContent-editor',\n slotCompontent: 'slot-compontent-editor',\n diyCompontent: 'diy-compontent-editor',\n format: 'format-editor',\n valueFormat: 'valueFormat-editor',\n // filterable: 'filterable-editor',\n // allowCreate: 'allowCreate-editor',\n showSearch: 'showSearch-editor',\n // automaticDropdown: 'automaticDropdown-editor',\n // checkStrictly: 'checkStrictly-editor',\n // showAllLevels: 'showAllLevels-editor',\n multiple: 'multiple-editor',\n accept: 'accept-editor',\n // multipleLimit: 'multipleLimit-editor',\n mode: 'mode-editor',\n menuList: 'menuList-editor',\n\n contentPosition: 'contentPosition-editor',\n optionItems: 'optionItems-editor',\n // uploadURL: 'uploadURL-editor',\n // uploadTip: 'uploadTip-editor',\n // withCredentials: 'withCredentials-editor',\n // multipleSelect: 'multipleSelect-editor',\n limit: 'limit-editor',\n maxSize: 'maxSize-editor',\n fileTypes: 'fileTypes-editor',\n contentHeight: 'contentHeight-editor',\n customClass: 'customClass-editor',\n uploadListType: 'uploadListType-editor',\n\n //容器\n showBlankRow: 'showBlankRow-editor',\n showRowNumber: 'showRowNumber-editor',\n actionColumnPosition: 'actionColumnPosition-editor',\n cellWidth: 'cellWidth-editor',\n cellHeight: 'cellHeight-editor',\n colHeight: 'colHeight-editor',\n gutter: 'gutter-editor',\n responsive: 'responsive-editor',\n span: 'span-editor',\n offset: 'offset-editor',\n push: 'push-editor',\n pull: 'pull-editor',\n title: 'title-editor',\n width: 'width-editor',\n height: 'height-editor',\n formCode: 'formCode-editor',\n collapseIcon: 'collapseIcon-editor',\n unCollapseIcon: 'unCollapseIcon-editor',\n isCollapse: 'isCollapse-editor',\n rightSlotCss: 'rightSlotCss-editor',\n bodyStyle: 'bodyStyle-editor',\n fullscreen: 'fullscreen-editor',\n // showModal: 'showModal-editor',\n showClose: 'showClose-editor',\n closeOnClickModal: 'closeOnClickModal-editor',\n closeOnPressEscape: 'closeOnPressEscape-editor',\n // center: 'center-editor',\n direction: 'direction-editor',\n readMode: 'readMode-editor',\n disabledMode: 'disabledMode-editor',\n okButtonLabel: 'okButtonLabel-editor',\n okButtonHidden: 'okButtonHidden-editor',\n cancelButtonLabel: 'cancelButtonLabel-editor',\n cancelButtonHidden: 'cancelButtonHidden-editor',\n buttonList: 'button-list-editor',\n buttonPosition: 'button-position-editor'\n};\n\nconst ADVANCED_PROPERTIES = {\n min: 'min-editor',\n max: 'max-editor',\n count: 'count-editor',\n precision: 'precision-editor',\n step: 'step-editor',\n controlsPosition: 'controlsPosition-editor',\n minLength: 'minLength-editor',\n maxLength: 'maxLength-editor',\n showCount: 'showCount-editor',\n addonBefore: 'addonBefore-editor',\n addonAfter: 'addonAfter-editor',\n switchWidth: 'switchWidth-editor',\n activeColor: 'activeColor-editor',\n inactiveColor: 'inactiveColor-editor',\n lowThreshold: 'lowThreshold-editor',\n highThreshold: 'highThreshold-editor',\n allowHalf: 'allowHalf-editor',\n showText: 'showText-editor',\n showScore: 'showScore-editor',\n range: 'range-editor',\n vertical: 'vertical-editor',\n plain: 'plain-editor',\n round: 'round-editor',\n circle: 'circle-editor',\n icon: 'icon-editor',\n labelIconClass: 'labelIconClass-editor',\n labelIconPosition: 'labelIconPosition-editor',\n labelTooltip: 'labelTooltip-editor',\n appendButton: 'appendButton-editor',\n appendButtonDisabled: 'appendButtonDisabled-editor',\n buttonIcon: 'buttonIcon-editor'\n};\n\nconst EVENT_PROPERTIES = {\n //字段\n onCreated: 'onCreated-editor',\n onMounted: 'onMounted-editor',\n onClick: 'onClick-editor',\n onInput: 'onInput-editor',\n onChange: 'onChange-editor',\n onTableChange: 'onTableChange-editor',\n onFocus: 'onFocus-editor',\n onBlur: 'onBlur-editor',\n onRemoteQuery: 'onRemoteQuery-editor',\n onBeforeUpload: 'onBeforeUpload-editor',\n onUploadSuccess: 'onUploadSuccess-editor',\n onUploadError: 'onUploadError-editor',\n onFileRemove: 'onFileRemove-editor',\n onValidate: 'onValidate-editor',\n onAppendButtonClick: 'onAppendButtonClick-editor',\n onClickIcon: 'onClickIcon-editor',\n onMenuClick: 'onMenuClick-editor',\n\n //容器\n onTabClick: 'onTabClick-editor',\n onSubFormRowAdd: 'onSubFormRowAdd-editor',\n onSubFormRowInsert: 'onSubFormRowInsert-editor',\n onSubFormRowDelete: 'onSubFormRowDelete-editor',\n onSubFormRowChange: 'onSubFormRowChange-editor',\n onPageSizeChange: 'onPageSizeChange-editor',\n onCurrentPageChange: 'onCurrentPageChange-editor',\n onSelectionChange: 'onSelectionChange-editor',\n onHideOperationButton: 'onHideOperationButton-editor',\n onDisableOperationButton: 'onDisableOperationButton-editor',\n onGetOperationButtonLabel: 'onGetOperationButtonLabel-editor',\n onOperationButtonClick: 'onOperationButtonClick-editor',\n onHeaderClick: 'onHeaderClick-editor',\n onRowClick: 'onRowClick-editor',\n onRowDoubleClick: 'onRowDoubleClick-editor',\n onCellClick: 'onCellClick-editor',\n onCellDoubleClick: 'onCellDoubleClick-editor',\n onGetRowClassName: 'onGetRowClassName-editor',\n onGetSpanMethod: 'onGetSpanMethod-editor',\n onOkButtonClick: 'onOkButtonClick-editor',\n onCancelButtonClick: 'onCancelButtonClick-editor',\n onDialogOpened: 'onDialogOpened-editor',\n onDialogBeforeClose: 'onDialogBeforeClose-editor',\n onDrawerOpened: 'onDrawerOpened-editor',\n onDrawerBeforeClose: 'onDrawerBeforeClose-editor',\n customRow: 'customRow-editor'\n};\n\n/**\n * 注册组件常见属性\n * 如属性编辑器的组件名称propEditorName设置为null,则不显示该属性编辑器!!\n * @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)\n * @param propEditorName 对应属性编辑器的组件名称\n */\nexport function registerCommonProperty(uniquePropName, propEditorName) {\n COMMON_PROPERTIES[uniquePropName] = propEditorName;\n}\n\n/**\n * 注册组件高级属性\n * 如属性编辑器的组件名称propEditorName设置为null,则不显示该属性编辑器!!\n * @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)\n * @param propEditorName 对应属性编辑器的组件名称\n */\nexport function registerAdvancedProperty(uniquePropName, propEditorName) {\n ADVANCED_PROPERTIES[uniquePropName] = propEditorName;\n}\n\n/**\n * 注册组件事件属性\n * 如属性编辑器的组件名称propEditorName设置为null,则不显示该属性编辑器!!\n * @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)\n * @param propEditorName 对应属性编辑器的组件名称\n */\nexport function registerEventProperty(uniquePropName, propEditorName) {\n EVENT_PROPERTIES[uniquePropName] = propEditorName;\n}\n\n/**\n * 判断属性是否已注册\n * @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)\n */\nexport function propertyRegistered(uniquePropName) {\n return (\n !!COMMON_PROPERTIES[uniquePropName] ||\n !!ADVANCED_PROPERTIES[uniquePropName] ||\n !!EVENT_PROPERTIES[uniquePropName]\n );\n}\n\n/**\n * 注册常见属性对应的属性编辑器\n * @param app\n * @param uniquePropName\n * @param propEditorName\n * @param editorComponent\n */\nexport function registerCPEditor(app, uniquePropName, propEditorName, editorComponent) {\n app.component(propEditorName, editorComponent);\n registerCommonProperty(uniquePropName, propEditorName);\n}\n\n/**\n * 注册高级属性对应的属性编辑器\n * @param app\n * @param uniquePropName\n * @param propEditorName\n * @param editorComponent\n */\nexport function registerAPEditor(app, uniquePropName, propEditorName, editorComponent) {\n app.component(propEditorName, editorComponent);\n registerAdvancedProperty(uniquePropName, propEditorName);\n}\n\n/**\n * 注册事件属性对应的属性编辑器\n * @param app\n * @param uniquePropName\n * @param propEditorName\n * @param editorComponent\n */\nexport function registerEPEditor(app, uniquePropName, propEditorName, editorComponent) {\n app.component(propEditorName, editorComponent);\n registerEventProperty(uniquePropName, propEditorName);\n}\n\nexport default {\n COMMON_PROPERTIES,\n ADVANCED_PROPERTIES,\n EVENT_PROPERTIES\n};\n"],"names":[],"mappings":"AAKA,MAAM,oBAAoB;AAAA;AAAA,EAEtB,MAAM;AAAA,EACN,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,cAAc;AAAA,EACd,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,eAAe;AAAA,EACf,MAAM;AAAA,EACN,MAAM;AAAA;AAAA,EAEN,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,mBAAm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,EACnB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,qBAAqB;AAAA,EACrB,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,WAAW;AACf;AAoCO,SAAS,mBAAmB,gBAAgB;AAC/C,SACI,CAAC,CAAC,kBAAkB,cAAc,KAClC,CAAC,CAAC,oBAAoB,cAAc,KACpC,CAAC,CAAC,iBAAiB,cAAc;AAEzC;AAsCA,MAAe,mBAAA;AAAA,EACX;AAAA,EACA;AAAA,EACA;AACJ;"}
|
|
1
|
+
{"version":3,"file":"propertyRegister.js","sources":["../../../../../src/components/form-designer/setting-panel/propertyRegister.js"],"sourcesContent":["//import { vfApp } from '@/utils/create-app'\n\n/**\n * 格式说明:属性名称==对应属性编辑器的组件名称\n */\nconst COMMON_PROPERTIES = {\n //字段\n name: 'name-editor',\n label: 'label-editor',\n labelAlign: 'labelAlign-editor',\n type: 'type-editor',\n tabPosition: 'tabPosition-editor',\n tabBarGutter: 'tabBarGutter-editor',\n shape: 'shape-editor',\n danger: 'danger-editor',\n ghost: 'ghost-editor',\n defaultValue: 'defaultValue-editor',\n placeholder: 'placeholder-editor',\n startPlaceholder: 'startPlaceholder-editor',\n endPlaceholder: 'endPlaceholder-editor',\n columnWidth: 'columnWidth-editor',\n autoFullWidth: 'autoFullWidth-editor',\n size: 'size-editor',\n flex: 'flex-editor',\n // displayStyle: 'displayStyle-editor',\n buttonStyle: 'buttonStyle-editor',\n border: 'border-editor',\n labelWidth: 'labelWidth-editor',\n labelHidden: 'labelHidden-editor',\n rows: 'rows-editor',\n required: 'required-editor',\n requiredHint: 'requiredHint-editor',\n validation: 'validation-editor',\n validationHint: 'validationHint-editor',\n readonly: 'readonly-editor',\n disabled: 'disabled-editor',\n loadingPage: 'loadingPage-editor',\n hidden: 'hidden-editor',\n useModal: 'useModal-editor',\n checkedValue: 'checkedValue-editor',\n unCheckedValue: 'unCheckedValue-editor',\n placement: 'placement-editor',\n rowKey: 'rowKey-editor',\n tableWidth: 'tableWidth-editor',\n tableHeight: 'tableHeight-editor',\n showIndex: 'showIndex-editor',\n stripe: 'stripe-editor',\n colorRow: 'colorRow-editor',\n tableSize: 'tableSize-editor',\n pagination: 'pagination-editor',\n showButtonsColumn: 'showButtonsColumn-editor',\n rowSelection: 'rowSelection-editor',\n dsEnabled: 'dsEnabled-editor',\n tableColumns: 'tableColumns-editor',\n treeDataEnabled: 'treeDataEnabled-editor',\n allowClear: 'allowClear-editor',\n treeDefaultExpandAll: 'treeDefaultExpandAll-editor',\n showTime: 'showTime-editor',\n editable: 'editable-editor',\n showPassword: 'showPassword-editor',\n textContent: 'textContent-editor',\n htmlContent: 'htmlContent-editor',\n slotCompontent: 'slot-compontent-editor',\n diyCompontent: 'diy-compontent-editor',\n format: 'format-editor',\n valueFormat: 'valueFormat-editor',\n // filterable: 'filterable-editor',\n // allowCreate: 'allowCreate-editor',\n showSearch: 'showSearch-editor',\n // automaticDropdown: 'automaticDropdown-editor',\n // checkStrictly: 'checkStrictly-editor',\n // showAllLevels: 'showAllLevels-editor',\n multiple: 'multiple-editor',\n accept: 'accept-editor',\n // multipleLimit: 'multipleLimit-editor',\n mode: 'mode-editor',\n menuList: 'menuList-editor',\n\n contentPosition: 'contentPosition-editor',\n optionItems: 'optionItems-editor',\n // uploadURL: 'uploadURL-editor',\n // uploadTip: 'uploadTip-editor',\n // withCredentials: 'withCredentials-editor',\n // multipleSelect: 'multipleSelect-editor',\n limit: 'limit-editor',\n maxSize: 'maxSize-editor',\n fileTypes: 'fileTypes-editor',\n contentHeight: 'contentHeight-editor',\n customClass: 'customClass-editor',\n uploadListType: 'uploadListType-editor',\n\n //容器\n showBlankRow: 'showBlankRow-editor',\n showRowNumber: 'showRowNumber-editor',\n actionColumnPosition: 'actionColumnPosition-editor',\n cellWidth: 'cellWidth-editor',\n cellHeight: 'cellHeight-editor',\n colHeight: 'colHeight-editor',\n gutter: 'gutter-editor',\n responsive: 'responsive-editor',\n span: 'span-editor',\n offset: 'offset-editor',\n push: 'push-editor',\n pull: 'pull-editor',\n title: 'title-editor',\n width: 'width-editor',\n height: 'height-editor',\n lineHeight: 'line-height-editor',\n formCode: 'formCode-editor',\n collapseIcon: 'collapseIcon-editor',\n unCollapseIcon: 'unCollapseIcon-editor',\n isCollapse: 'isCollapse-editor',\n rightSlotCss: 'rightSlotCss-editor',\n bodyStyle: 'bodyStyle-editor',\n fullscreen: 'fullscreen-editor',\n // showModal: 'showModal-editor',\n showClose: 'showClose-editor',\n closeOnClickModal: 'closeOnClickModal-editor',\n closeOnPressEscape: 'closeOnPressEscape-editor',\n // center: 'center-editor',\n direction: 'direction-editor',\n readMode: 'readMode-editor',\n disabledMode: 'disabledMode-editor',\n okButtonLabel: 'okButtonLabel-editor',\n okButtonHidden: 'okButtonHidden-editor',\n cancelButtonLabel: 'cancelButtonLabel-editor',\n cancelButtonHidden: 'cancelButtonHidden-editor',\n buttonList: 'button-list-editor',\n buttonPosition: 'button-position-editor'\n};\n\nconst ADVANCED_PROPERTIES = {\n min: 'min-editor',\n max: 'max-editor',\n count: 'count-editor',\n precision: 'precision-editor',\n step: 'step-editor',\n controlsPosition: 'controlsPosition-editor',\n minLength: 'minLength-editor',\n maxLength: 'maxLength-editor',\n showCount: 'showCount-editor',\n addonBefore: 'addonBefore-editor',\n addonAfter: 'addonAfter-editor',\n switchWidth: 'switchWidth-editor',\n activeColor: 'activeColor-editor',\n inactiveColor: 'inactiveColor-editor',\n lowThreshold: 'lowThreshold-editor',\n highThreshold: 'highThreshold-editor',\n allowHalf: 'allowHalf-editor',\n showText: 'showText-editor',\n showScore: 'showScore-editor',\n range: 'range-editor',\n vertical: 'vertical-editor',\n plain: 'plain-editor',\n round: 'round-editor',\n circle: 'circle-editor',\n icon: 'icon-editor',\n labelIconClass: 'labelIconClass-editor',\n labelIconPosition: 'labelIconPosition-editor',\n labelTooltip: 'labelTooltip-editor',\n appendButton: 'appendButton-editor',\n appendButtonDisabled: 'appendButtonDisabled-editor',\n buttonIcon: 'buttonIcon-editor'\n};\n\nconst EVENT_PROPERTIES = {\n //字段\n onCreated: 'onCreated-editor',\n onMounted: 'onMounted-editor',\n onClick: 'onClick-editor',\n onInput: 'onInput-editor',\n onChange: 'onChange-editor',\n onTableChange: 'onTableChange-editor',\n onFocus: 'onFocus-editor',\n onBlur: 'onBlur-editor',\n onRemoteQuery: 'onRemoteQuery-editor',\n onBeforeUpload: 'onBeforeUpload-editor',\n onUploadSuccess: 'onUploadSuccess-editor',\n onUploadError: 'onUploadError-editor',\n onFileRemove: 'onFileRemove-editor',\n onValidate: 'onValidate-editor',\n onAppendButtonClick: 'onAppendButtonClick-editor',\n onClickIcon: 'onClickIcon-editor',\n onMenuClick: 'onMenuClick-editor',\n\n //容器\n onTabClick: 'onTabClick-editor',\n onSubFormRowAdd: 'onSubFormRowAdd-editor',\n onSubFormRowInsert: 'onSubFormRowInsert-editor',\n onSubFormRowDelete: 'onSubFormRowDelete-editor',\n onSubFormRowChange: 'onSubFormRowChange-editor',\n onPageSizeChange: 'onPageSizeChange-editor',\n onCurrentPageChange: 'onCurrentPageChange-editor',\n onSelectionChange: 'onSelectionChange-editor',\n onHideOperationButton: 'onHideOperationButton-editor',\n onDisableOperationButton: 'onDisableOperationButton-editor',\n onGetOperationButtonLabel: 'onGetOperationButtonLabel-editor',\n onOperationButtonClick: 'onOperationButtonClick-editor',\n onHeaderClick: 'onHeaderClick-editor',\n onRowClick: 'onRowClick-editor',\n onRowDoubleClick: 'onRowDoubleClick-editor',\n onCellClick: 'onCellClick-editor',\n onCellDoubleClick: 'onCellDoubleClick-editor',\n onGetRowClassName: 'onGetRowClassName-editor',\n onGetSpanMethod: 'onGetSpanMethod-editor',\n onOkButtonClick: 'onOkButtonClick-editor',\n onCancelButtonClick: 'onCancelButtonClick-editor',\n onDialogOpened: 'onDialogOpened-editor',\n onDialogBeforeClose: 'onDialogBeforeClose-editor',\n onDrawerOpened: 'onDrawerOpened-editor',\n onDrawerBeforeClose: 'onDrawerBeforeClose-editor',\n customRow: 'customRow-editor'\n};\n\n/**\n * 注册组件常见属性\n * 如属性编辑器的组件名称propEditorName设置为null,则不显示该属性编辑器!!\n * @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)\n * @param propEditorName 对应属性编辑器的组件名称\n */\nexport function registerCommonProperty(uniquePropName, propEditorName) {\n COMMON_PROPERTIES[uniquePropName] = propEditorName;\n}\n\n/**\n * 注册组件高级属性\n * 如属性编辑器的组件名称propEditorName设置为null,则不显示该属性编辑器!!\n * @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)\n * @param propEditorName 对应属性编辑器的组件名称\n */\nexport function registerAdvancedProperty(uniquePropName, propEditorName) {\n ADVANCED_PROPERTIES[uniquePropName] = propEditorName;\n}\n\n/**\n * 注册组件事件属性\n * 如属性编辑器的组件名称propEditorName设置为null,则不显示该属性编辑器!!\n * @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)\n * @param propEditorName 对应属性编辑器的组件名称\n */\nexport function registerEventProperty(uniquePropName, propEditorName) {\n EVENT_PROPERTIES[uniquePropName] = propEditorName;\n}\n\n/**\n * 判断属性是否已注册\n * @param uniquePropName 属性名称(保证名称唯一,不跟其他组件属性冲突)\n */\nexport function propertyRegistered(uniquePropName) {\n return (\n !!COMMON_PROPERTIES[uniquePropName] ||\n !!ADVANCED_PROPERTIES[uniquePropName] ||\n !!EVENT_PROPERTIES[uniquePropName]\n );\n}\n\n/**\n * 注册常见属性对应的属性编辑器\n * @param app\n * @param uniquePropName\n * @param propEditorName\n * @param editorComponent\n */\nexport function registerCPEditor(app, uniquePropName, propEditorName, editorComponent) {\n app.component(propEditorName, editorComponent);\n registerCommonProperty(uniquePropName, propEditorName);\n}\n\n/**\n * 注册高级属性对应的属性编辑器\n * @param app\n * @param uniquePropName\n * @param propEditorName\n * @param editorComponent\n */\nexport function registerAPEditor(app, uniquePropName, propEditorName, editorComponent) {\n app.component(propEditorName, editorComponent);\n registerAdvancedProperty(uniquePropName, propEditorName);\n}\n\n/**\n * 注册事件属性对应的属性编辑器\n * @param app\n * @param uniquePropName\n * @param propEditorName\n * @param editorComponent\n */\nexport function registerEPEditor(app, uniquePropName, propEditorName, editorComponent) {\n app.component(propEditorName, editorComponent);\n registerEventProperty(uniquePropName, propEditorName);\n}\n\nexport default {\n COMMON_PROPERTIES,\n ADVANCED_PROPERTIES,\n EVENT_PROPERTIES\n};\n"],"names":[],"mappings":"AAKA,MAAM,oBAAoB;AAAA;AAAA,EAEtB,MAAM;AAAA,EACN,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,cAAc;AAAA,EACd,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,eAAe;AAAA,EACf,MAAM;AAAA,EACN,MAAM;AAAA;AAAA,EAEN,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,mBAAmB;AAAA,EACnB,cAAc;AAAA,EACd,WAAW;AAAA,EACX,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,sBAAsB;AAAA,EACtB,UAAU;AAAA,EACV,UA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AChB,qBAAqB;AAAA,EACrB,WAAW;AACf;AAoCO,SAAS,mBAAmB,gBAAgB;AAC/C,SACI,CAAC,CAAC,kBAAkB,cAAc,KAClC,CAAC,CAAC,oBAAoB,cAAc,KACpC,CAAC,CAAC,iBAAiB,cAAc;AAEzC;AAsCA,MAAe,mBAAA;AAAA,EACX;AAAA,EACA;AAAA,EACA;AACJ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table.js","sources":["../../../../../../src/components/form-designer/widget-panel/containers/data-table.ts"],"sourcesContent":["import { getUuidKey } from '@kp-ui/tool';\n\nexport const dataTable = (ops = {} as any) => {\n
|
|
1
|
+
{"version":3,"file":"data-table.js","sources":["../../../../../../src/components/form-designer/widget-panel/containers/data-table.ts"],"sourcesContent":["import { getUuidKey } from '@kp-ui/tool';\n\nexport const dataTable = (ops = {} as any) => {\n return {\n key: getUuidKey(),\n type: 'data-table',\n category: 'container',\n icon: 'data-table',\n widgetList: [],\n options: {\n name: '',\n label: 'data-table',\n hidden: false,\n tableHeight: '300px',\n tableWidth: '100%',\n lineHeight: 50,\n customClass: [],\n showIndex: false,\n showPagination: true,\n border: true,\n tableSize: 'small',\n tableColumns: [\n {\n columnId: 1,\n dataIndex: 'name',\n title: '姓名',\n width: 150,\n show: true,\n align: 'center',\n fixed: '',\n sorter: false,\n customRender: '',\n ellipsis: true,\n resizable: true,\n showSorterTooltip: false\n }\n ],\n showButtonsColumn: false,\n buttonsColumnTitle: '操作',\n buttonsColumnWidth: 200,\n operationButtons: [\n {\n name: 'detail',\n label: '详情',\n type: 'link',\n shape: 'default',\n size: 'small',\n hidden: false,\n disabled: false,\n onClick: ''\n }\n ],\n dsEnabled: false,\n http: {\n url: '',\n method: 'get',\n data: {},\n params: {}\n },\n dataReqHandlerCode: '',\n dataHandlerCode: '',\n rowKey: 'name',\n childrenKey: 'children',\n dataSource: [\n {\n date: '2016-05-02',\n date2: '2016-05-02 23:12:12',\n date3: '2016-05-02 9:11:12',\n name: '小二',\n add: '上海市普陀区金沙江路 1518 弄',\n age: 100\n }\n ],\n onCreated: '',\n onMounted: '',\n onHideOperationButton: '',\n onDisableOperationButton: '',\n onOperationButtonClick: '',\n customRow: { onClick: '', onDblclick: '', onMouseenter: '', onMouseleave: '' },\n onTableChange: '',\n pagination: {\n pageSizeOptions: ['10', '20', '50', '100'],\n current: 1,\n hideOnSinglePage: false,\n pageSize: 20,\n total: 0,\n showQuickJumper: true,\n showSizeChanger: true,\n position: ['bottomRight'],\n showTotal: total => `共 ${total} 条`\n },\n colorRow: true,\n rowSelection: {\n hasRowSelection: false,\n preserveSelectedRowKeys: false,\n fixed: true,\n onChange: 'console.log(122222,selectedRowKeys, selectedRows)',\n columnWidth: 100\n },\n ...ops\n }\n };\n};\n"],"names":[],"mappings":";AAEO,MAAM,YAAY,CAAC,MAAM,OAAc;AACnC,SAAA;AAAA,IACH,KAAK,WAAW;AAAA,IAChB,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,SAAS;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,YAAY;AAAA,MACZ,YAAY;AAAA,MACZ,aAAa,CAAC;AAAA,MACd,WAAW;AAAA,MACX,gBAAgB;AAAA,MAChB,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,cAAc;AAAA,QACV;AAAA,UACI,UAAU;AAAA,UACV,WAAW;AAAA,UACX,OAAO;AAAA,UACP,OAAO;AAAA,UACP,MAAM;AAAA,UACN,OAAO;AAAA,UACP,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,cAAc;AAAA,UACd,UAAU;AAAA,UACV,WAAW;AAAA,UACX,mBAAmB;AAAA,QAAA;AAAA,MAE3B;AAAA,MACA,mBAAmB;AAAA,MACnB,oBAAoB;AAAA,MACpB,oBAAoB;AAAA,MACpB,kBAAkB;AAAA,QACd;AAAA,UACI,MAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAM;AAAA,UACN,QAAQ;AAAA,UACR,UAAU;AAAA,UACV,SAAS;AAAA,QAAA;AAAA,MAEjB;AAAA,MACA,WAAW;AAAA,MACX,MAAM;AAAA,QACF,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM,CAAC;AAAA,QACP,QAAQ,CAAA;AAAA,MACZ;AAAA,MACA,oBAAoB;AAAA,MACpB,iBAAiB;AAAA,MACjB,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,YAAY;AAAA,QACR;AAAA,UACI,MAAM;AAAA,UACN,OAAO;AAAA,UACP,OAAO;AAAA,UACP,MAAM;AAAA,UACN,KAAK;AAAA,UACL,KAAK;AAAA,QAAA;AAAA,MAEb;AAAA,MACA,WAAW;AAAA,MACX,WAAW;AAAA,MACX,uBAAuB;AAAA,MACvB,0BAA0B;AAAA,MAC1B,wBAAwB;AAAA,MACxB,WAAW,EAAE,SAAS,IAAI,YAAY,IAAI,cAAc,IAAI,cAAc,GAAG;AAAA,MAC7E,eAAe;AAAA,MACf,YAAY;AAAA,QACR,iBAAiB,CAAC,MAAM,MAAM,MAAM,KAAK;AAAA,QACzC,SAAS;AAAA,QACT,kBAAkB;AAAA,QAClB,UAAU;AAAA,QACV,OAAO;AAAA,QACP,iBAAiB;AAAA,QACjB,iBAAiB;AAAA,QACjB,UAAU,CAAC,aAAa;AAAA,QACxB,WAAW,CAAS,UAAA,KAAK,KAAK;AAAA,MAClC;AAAA,MACA,UAAU;AAAA,MACV,cAAc;AAAA,QACV,iBAAiB;AAAA,QACjB,yBAAyB;AAAA,QACzB,OAAO;AAAA,QACP,UAAU;AAAA,QACV,aAAa;AAAA,MACjB;AAAA,MACA,GAAG;AAAA,IAAA;AAAA,EAEX;AACJ;"}
|
|
@@ -78,7 +78,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
78
|
const _component_a_space = resolveComponent("a-space");
|
|
79
79
|
return openBlock(), createBlock(_component_a_space, { x: 8 }, {
|
|
80
80
|
default: withCtx(() => [
|
|
81
|
-
options.value.cancelButtonHidden ? (openBlock(), createBlock(_component_a_button, {
|
|
81
|
+
!!options.value.cancelButtonHidden ? (openBlock(), createBlock(_component_a_button, {
|
|
82
82
|
key: "cancelButtonHidden",
|
|
83
83
|
loading: isClosing.value,
|
|
84
84
|
onClick: handleCancelClick
|
|
@@ -88,7 +88,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
88
88
|
]),
|
|
89
89
|
_: 1
|
|
90
90
|
}, 8, ["loading"])) : createCommentVNode("", true),
|
|
91
|
-
options.value.okButtonHidden ? (openBlock(), createBlock(_component_a_button, {
|
|
91
|
+
!!options.value.okButtonHidden ? (openBlock(), createBlock(_component_a_button, {
|
|
92
92
|
type: "primary",
|
|
93
93
|
key: "okButtonHidden",
|
|
94
94
|
loading: isSubmitting.value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmitButtonRender.vue.js","sources":["../../../../src/components/form-render/SubmitButtonRender.vue"],"sourcesContent":["<template>\n <a-space :x=\"8\">\n <a-button\n v-if=\"options.cancelButtonHidden\"\n key=\"cancelButtonHidden\"\n :loading=\"isClosing\"\n @click=\"handleCancelClick\"\n >\n {{ cancelBtnLabel }}\n </a-button>\n <a-button\n v-if=\"options.okButtonHidden\"\n type=\"primary\"\n key=\"okButtonHidden\"\n :loading=\"isSubmitting\"\n @click=\"handleOkClick\"\n >\n {{ okBtnLabel }}\n </a-button>\n </a-space>\n</template>\n\n<script lang=\"ts\" setup>\n import { useI18n } from '@/utils/i18n';\n import { computed, ref } from 'vue';\n\n interface SubmitOptions {\n deleteWrapperNode
|
|
1
|
+
{"version":3,"file":"SubmitButtonRender.vue.js","sources":["../../../../src/components/form-render/SubmitButtonRender.vue"],"sourcesContent":["<template>\n <a-space :x=\"8\">\n <a-button\n v-if=\"!!options.cancelButtonHidden\"\n key=\"cancelButtonHidden\"\n :loading=\"isClosing\"\n @click=\"handleCancelClick\"\n >\n {{ cancelBtnLabel }}\n </a-button>\n <a-button\n v-if=\"!!options.okButtonHidden\"\n type=\"primary\"\n key=\"okButtonHidden\"\n :loading=\"isSubmitting\"\n @click=\"handleOkClick\"\n >\n {{ okBtnLabel }}\n </a-button>\n </a-space>\n</template>\n\n<script lang=\"ts\" setup>\n import { useI18n } from '@/utils/i18n';\n import { computed, ref } from 'vue';\n\n interface SubmitOptions {\n deleteWrapperNode?: () => void;\n cancelButtonLabel?: string;\n okButtonLabel?: string;\n cancelButtonHidden?: number;\n okButtonHidden?: number;\n handleBeforeClose?: () => boolean;\n onCancelButtonClick?: string;\n onOkButtonClick?: string;\n dialogVisible?: boolean;\n }\n\n const props = defineProps<{\n options: SubmitOptions;\n ctx: any;\n }>();\n\n const emit = defineEmits(['update:dialogVisible']);\n\n // 状态管理\n const isSubmitting = ref(false);\n const isClosing = ref(false);\n\n const { i18nt } = useI18n();\n\n const options = computed(() => props?.options ?? {});\n\n // 计算属性\n const cancelBtnLabel = computed(\n () => props.options?.cancelButtonLabel || i18nt('designer.hint.cancel')\n );\n\n const okBtnLabel = computed(\n () => props.options?.okButtonLabel || i18nt('designer.hint.confirm')\n );\n\n // 执行自定义函数\n const executeCustomFunction = async (ctx: any, functionBody?: string) => {\n if (!functionBody) return true;\n\n try {\n const customFn = new Function(functionBody);\n return await customFn.call(ctx);\n } catch (error) {\n console.error('执行自定义函数失败:', error);\n return false;\n }\n };\n\n // 关闭对话框\n const closeDialog = () => {\n emit('update:dialogVisible', false);\n setTimeout(props.options?.deleteWrapperNode, 150);\n };\n\n // 取消按钮点击\n const handleCancelClick = async () => {\n if (isClosing.value) return;\n\n try {\n isClosing.value = true;\n\n if (!props.options?.handleBeforeClose?.()) return;\n\n const result = await executeCustomFunction(\n props.ctx,\n props.options?.onCancelButtonClick\n );\n if (result === false) return;\n\n closeDialog();\n } catch (error) {\n console.error('取消操作失败:', error);\n } finally {\n isClosing.value = false;\n }\n };\n\n // 确认按钮点击\n const handleOkClick = async () => {\n if (isSubmitting.value) return;\n\n try {\n isSubmitting.value = true;\n\n const result = await executeCustomFunction(props.ctx, props.options?.onOkButtonClick);\n if (result === false) return;\n\n closeDialog();\n } catch (error) {\n console.error('提交操作失败:', error);\n } finally {\n isSubmitting.value = false;\n }\n };\n</script>\n"],"names":[],"mappings":";;;;;;;;;;AAsCI,UAAM,QAAQ;AAKd,UAAM,OAAO;AAGP,UAAA,eAAe,IAAI,KAAK;AACxB,UAAA,YAAY,IAAI,KAAK;AAErB,UAAA,EAAE,MAAM,IAAI,QAAQ;AAE1B,UAAM,UAAU,SAAS,OAAM,+BAAO,YAAW,CAAA,CAAE;AAGnD,UAAM,iBAAiB;AAAA,MACnB,MAAA;;AAAM,4BAAM,YAAN,mBAAe,sBAAqB,MAAM,sBAAsB;AAAA;AAAA,IAC1E;AAEA,UAAM,aAAa;AAAA,MACf,MAAA;;AAAM,4BAAM,YAAN,mBAAe,kBAAiB,MAAM,uBAAuB;AAAA;AAAA,IACvE;AAGM,UAAA,wBAAwB,OAAO,KAAU,iBAA0B;AACjE,UAAA,CAAC,aAAqB,QAAA;AAEtB,UAAA;AACM,cAAA,WAAW,IAAI,SAAS,YAAY;AACnC,eAAA,MAAM,SAAS,KAAK,GAAG;AAAA,eACzB,OAAO;AACJ,gBAAA,MAAM,cAAc,KAAK;AAC1B,eAAA;AAAA,MAAA;AAAA,IAEf;AAGA,UAAM,cAAc,MAAM;;AACtB,WAAK,wBAAwB,KAAK;AACvB,kBAAA,WAAM,YAAN,mBAAe,mBAAmB,GAAG;AAAA,IACpD;AAGA,UAAM,oBAAoB,YAAY;;AAClC,UAAI,UAAU,MAAO;AAEjB,UAAA;AACA,kBAAU,QAAQ;AAElB,YAAI,GAAC,iBAAM,YAAN,mBAAe,sBAAf,6BAAsC;AAE3C,cAAM,SAAS,MAAM;AAAA,UACjB,MAAM;AAAA,WACN,WAAM,YAAN,mBAAe;AAAA,QACnB;AACA,YAAI,WAAW,MAAO;AAEV,oBAAA;AAAA,eACP,OAAO;AACJ,gBAAA,MAAM,WAAW,KAAK;AAAA,MAAA,UAChC;AACE,kBAAU,QAAQ;AAAA,MAAA;AAAA,IAE1B;AAGA,UAAM,gBAAgB,YAAY;;AAC9B,UAAI,aAAa,MAAO;AAEpB,UAAA;AACA,qBAAa,QAAQ;AAErB,cAAM,SAAS,MAAM,sBAAsB,MAAM,MAAK,WAAM,YAAN,mBAAe,eAAe;AACpF,YAAI,WAAW,MAAO;AAEV,oBAAA;AAAA,eACP,OAAO;AACJ,gBAAA,MAAM,WAAW,KAAK;AAAA,MAAA,UAChC;AACE,qBAAa,QAAQ;AAAA,MAAA;AAAA,IAE7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -130,10 +130,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
130
130
|
rowSelection: _ctx.handleRowSelection(),
|
|
131
131
|
pagination: _ctx.fmtPagination,
|
|
132
132
|
customRow: _ctx.handleCustomRow,
|
|
133
|
-
rowClassName: _ctx.rowClassName,
|
|
134
133
|
onChange: _ctx.handleTablePageChange,
|
|
135
134
|
onResizeColumn: _ctx.handleResizeColumn,
|
|
136
|
-
loading: _ctx.loading
|
|
135
|
+
loading: _ctx.loading,
|
|
136
|
+
"row-height": _ctx.lineHeight
|
|
137
137
|
}, {
|
|
138
138
|
emptyText: withCtx(() => [
|
|
139
139
|
createVNode(_component_a_empty)
|
|
@@ -141,20 +141,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
141
141
|
bodyCell: withCtx((scope) => [
|
|
142
142
|
_ctx.isShowBodyCell(scope.column.dataIndex) ? (openBlock(), createBlock(_component_RenderBodyCell, {
|
|
143
143
|
key: 0,
|
|
144
|
-
options: $props.widget.options.dataSource,
|
|
145
144
|
bodyCell: _ctx.columns.bodyCell,
|
|
146
145
|
scope
|
|
147
|
-
}, null, 8, ["
|
|
146
|
+
}, null, 8, ["bodyCell", "scope"])) : createCommentVNode("", true)
|
|
148
147
|
]),
|
|
149
148
|
_: 1
|
|
150
|
-
}, 8, ["columns", "class", "size", "dataSource", "rowKey", "scroll", "bordered", "style", "row-class-name", "rowSelection", "pagination", "customRow", "
|
|
149
|
+
}, 8, ["columns", "class", "size", "dataSource", "rowKey", "scroll", "bordered", "style", "row-class-name", "rowSelection", "pagination", "customRow", "onChange", "onResizeColumn", "loading", "row-height"])
|
|
151
150
|
]),
|
|
152
151
|
_: 1
|
|
153
152
|
}, 8, ["style", "widget"])), [
|
|
154
153
|
[vShow, !_ctx.handleHidden()]
|
|
155
154
|
]);
|
|
156
155
|
}
|
|
157
|
-
const dataTableItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
156
|
+
const dataTableItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5cef4600"]]);
|
|
158
157
|
export {
|
|
159
158
|
dataTableItem as default
|
|
160
159
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-item.vue.js","sources":["../../../../../src/components/form-render/container-item/data-table-item.vue"],"sourcesContent":["<template>\n <container-item-wrapper\n :style=\"{ display: 'flex', height: parseFloat(tableHeight || 0) + 'px' }\"\n v-show=\"!handleHidden()\"\n :widget=\"widget\"\n >\n <s-table\n class=\"tpf-surely-table\"\n ref=\"dataTable2\"\n :columns=\"columns.columns\"\n :class=\"[customClass]\"\n :size=\"widgetSize\"\n :dataSource=\"data\"\n :rowKey=\"record => record[widget.options.rowKey]\"\n :scroll=\"{ y: parseFloat(tableHeight || 0), x: 300 }\"\n :bordered=\"widget.options.border\"\n :style=\"{ width: widget.options.tableWidth }\"\n :row-class-name=\"rowClassName\"\n :rowSelection=\"handleRowSelection()\"\n :pagination=\"fmtPagination\"\n :customRow=\"handleCustomRow\"\n
|
|
1
|
+
{"version":3,"file":"data-table-item.vue.js","sources":["../../../../../src/components/form-render/container-item/data-table-item.vue"],"sourcesContent":["<template>\n <container-item-wrapper\n :style=\"{ display: 'flex', height: parseFloat(tableHeight || 0) + 'px' }\"\n v-show=\"!handleHidden()\"\n :widget=\"widget\"\n >\n <s-table\n class=\"tpf-surely-table\"\n ref=\"dataTable2\"\n :columns=\"columns.columns\"\n :class=\"[customClass]\"\n :size=\"widgetSize\"\n :dataSource=\"data\"\n :rowKey=\"record => record[widget.options.rowKey]\"\n :scroll=\"{ y: parseFloat(tableHeight || 0), x: 300 }\"\n :bordered=\"widget.options.border\"\n :style=\"{ width: widget.options.tableWidth }\"\n :row-class-name=\"rowClassName\"\n :rowSelection=\"handleRowSelection()\"\n :pagination=\"fmtPagination\"\n :customRow=\"handleCustomRow\"\n @change=\"handleTablePageChange\"\n @resizeColumn=\"handleResizeColumn\"\n :loading=\"loading\"\n :row-height=\"lineHeight\"\n >\n <template #emptyText>\n <a-empty />\n </template>\n <template #bodyCell=\"scope\">\n <template v-if=\"isShowBodyCell(scope.column.dataIndex)\">\n <RenderBodyCell :bodyCell=\"columns.bodyCell\" :scope=\"scope\" />\n </template>\n </template>\n </s-table>\n </container-item-wrapper>\n</template>\n\n<script>\n import ContainerItemWrapper from '@/components/form-render/container-item/container-item-wrapper.vue';\n import emitter from '@/utils/emitter';\n import i18n from '@/utils/i18n';\n\n import FieldComponents from '@/components/form-designer/form-widget/field-widget/index';\n import refMixin from '@/components/form-render/refMixin';\n import containerItemMixin from '@/components/form-render/container-item/containerItemMixin';\n import useDataTableMixin from '@/mixins/useDataTableMixin';\n\n export default {\n name: 'DataTableItem',\n componentName: 'ContainerItem', // 必须固定为ContainerItem,用于接收父级组件的broadcast事件\n mixins: [emitter, i18n, refMixin, containerItemMixin, useDataTableMixin],\n components: {\n ContainerItemWrapper,\n ...FieldComponents\n },\n props: {\n widget: Object,\n parentWidget: Object,\n parentList: Array,\n indexOfParentList: Number,\n data: {\n type: Array,\n default: () => []\n },\n subFormRowIndex: {\n /* 子表单组件行索引,从0开始计数 */ type: Number,\n default: -1\n },\n subFormColIndex: {\n /* 子表单组件列索引,从0开始计数 */ type: Number,\n default: -1\n },\n subFormRowId: {\n /* 子表单组件行Id,唯一id且不可变 */ type: String,\n default: ''\n }\n },\n inject: ['refList', 'sfRefList', 'globalModel', 'getFormConfig', 'getGlobalDsv'],\n data() {\n return {};\n },\n computed: {\n formConfig() {\n return this.getFormConfig();\n }\n },\n created() {\n this.initRefList();\n this.handleOnCreated();\n },\n mounted() {\n this.loadDataTableDataSource();\n this.$nextTick(() => {\n this.handleOnMounted();\n });\n },\n beforeUnmount() {\n this.unregisterFromRefList();\n },\n methods: {\n getDataTableRef() {\n return this;\n },\n\n selectWidget(widget) {\n this.designer.setSelected(widget);\n },\n\n handleOnCreated() {\n if (!!this.widget.options.onCreated) {\n const customFunc = new Function(this.widget.options.onCreated);\n customFunc.call(this);\n }\n },\n\n handleOnMounted() {\n if (!!this.widget.options.onMounted) {\n const customFunc = new Function(this.widget.options.onMounted);\n customFunc.call(this);\n }\n },\n\n // --------------------- 以下为组件支持外部调用的API方法 begin ------------------//\n /* 提示:用户可自行扩充这些方法!!! */\n\n getTableColumns() {\n return this.widget.options.tableColumns;\n },\n\n /**\n * 获取选中行数据,格式为对象数组\n * @returns {[]}\n */\n getSelectedRow() {\n // return this.$refs.dataTable.selection\n return this.selectedRows;\n },\n\n /**\n * 获取选中行索引,格式为数组\n * @returns {[]}\n */\n getSelectedIndex() {\n return this.selectedIndices;\n }\n // --------------------- 以上为组件支持外部调用的API方法 end ------------------//\n }\n };\n</script>\n\n<style lang=\"scss\" scoped>\n .collapse-container {\n margin: 2px;\n\n .form-widget-list {\n min-height: 28px;\n }\n }\n\n :deep(.el-collapsed__header) {\n padding: 10px 12px;\n }\n</style>\n\n<style scoped>\n .data-table {\n flex: 1;\n max-width: 100%;\n min-width: 0;\n :deep(.tpf-surely-table) {\n font-size: 12px;\n .surely-table-cell-content {\n font-size: 12px;\n }\n }\n }\n :deep(.ant-table) .table-striped td {\n background-color: #fafafa;\n }\n</style>\n"],"names":["FieldComponents","_createBlock","_normalizeStyle","_createVNode","_normalizeClass","_withCtx"],"mappings":";;;;;;;;;;;AAgDI,MAAK,YAAU;AAAA,EACX,MAAM;AAAA,EACN,eAAe;AAAA;AAAA,EACf,QAAQ,CAAC,SAAS,MAAM,UAAU,oBAAoB,iBAAiB;AAAA,EACvE,YAAY;AAAA,IACR;AAAA,IACA,GAAGA;AAAAA,EACN;AAAA,EACD,OAAO;AAAA,IACH,QAAQ;AAAA,IACR,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,mBAAmB;AAAA,IACnB,MAAM;AAAA,MACF,MAAM;AAAA,MACN,SAAS,MAAM,CAAA;AAAA,IAClB;AAAA,IACD,iBAAiB;AAAA;AAAA,MACS,MAAM;AAAA,MAC5B,SAAS;AAAA,IACZ;AAAA,IACD,iBAAiB;AAAA;AAAA,MACS,MAAM;AAAA,MAC5B,SAAS;AAAA,IACZ;AAAA,IACD,cAAc;AAAA;AAAA,MACc,MAAM;AAAA,MAC9B,SAAS;AAAA,IACb;AAAA,EACH;AAAA,EACD,QAAQ,CAAC,WAAW,aAAa,eAAe,iBAAiB,cAAc;AAAA,EAC/E,OAAO;AACH,WAAO,CAAE;AAAA,EACZ;AAAA,EACD,UAAU;AAAA,IACN,aAAa;AACT,aAAO,KAAK,cAAe;AAAA,IAC/B;AAAA,EACH;AAAA,EACD,UAAU;AACN,SAAK,YAAa;AAClB,SAAK,gBAAiB;AAAA,EACzB;AAAA,EACD,UAAU;AACN,SAAK,wBAAyB;AAC9B,SAAK,UAAU,MAAM;AACjB,WAAK,gBAAiB;AAAA,IAC1B,CAAC;AAAA,EACJ;AAAA,EACD,gBAAgB;AACZ,SAAK,sBAAuB;AAAA,EAC/B;AAAA,EACD,SAAS;AAAA,IACL,kBAAkB;AACd,aAAO;AAAA,IACV;AAAA,IAED,aAAa,QAAQ;AACjB,WAAK,SAAS,YAAY,MAAM;AAAA,IACnC;AAAA,IAED,kBAA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AA;AAAA,QAChC,YAAY,KAAa;AAAA,QACzB,WAAW,KAAe;AAAA,QAC1B,UAAQ,KAAqB;AAAA,QAC7B,gBAAc,KAAkB;AAAA,QAChC,SAAS,KAAO;AAAA,QAChB,cAAY,KAAU;AAAA;QAEZ,mBACP,MAAW;AAAA,UAAXC,YAAW,kBAAA;AAAA;QAEJ,UAAQE,QACf,CAEW,UAHW;AAAA,UACN,KAAA,eAAe,MAAM,OAAO,SAAS,kBACjDJ,YAA8D,2BAAA;AAAA;YAA7C,UAAU,KAAO,QAAC;AAAA,YAAW;AAAA;;;;;;;aA5BjD,KAAY,aAAA,CAAA;AAAA;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import i18n from "../../utils/i18n.js";
|
|
2
2
|
import zhCN from "ant-design-vue/es/locale/zh_CN";
|
|
3
3
|
import { defineAsyncComponent, resolveComponent, resolveDirective, createBlock, openBlock, withCtx, createVNode, mergeProps, withDirectives, createElementBlock, createElementVNode } from "vue";
|
|
4
|
+
import _sfc_main$1 from "./SubmitButtonRender.vue.js";
|
|
4
5
|
/* empty css */
|
|
5
6
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
7
|
const _sfc_main = {
|
|
@@ -46,6 +47,7 @@ const _sfc_main = {
|
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
49
|
components: {
|
|
50
|
+
SubmitButtonRender: _sfc_main$1,
|
|
49
51
|
VFormRender: defineAsyncComponent(() => import("../../../render.js"))
|
|
50
52
|
},
|
|
51
53
|
data() {
|
|
@@ -238,9 +240,10 @@ const _sfc_main = {
|
|
|
238
240
|
};
|
|
239
241
|
const _hoisted_1 = { class: "dialog-content" };
|
|
240
242
|
const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", { class: "footer-left" }, null, -1);
|
|
241
|
-
const _hoisted_3 =
|
|
243
|
+
const _hoisted_3 = { class: "footer-right" };
|
|
242
244
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
243
245
|
const _component_VFormRender = resolveComponent("VFormRender");
|
|
246
|
+
const _component_SubmitButtonRender = resolveComponent("SubmitButtonRender");
|
|
244
247
|
const _component_a_modal = resolveComponent("a-modal");
|
|
245
248
|
const _component_a_config_provider = resolveComponent("a-config-provider");
|
|
246
249
|
const _directive_loading = resolveDirective("loading");
|
|
@@ -271,7 +274,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
271
274
|
}, $options.otherAttrs), {
|
|
272
275
|
footer: withCtx(() => [
|
|
273
276
|
_hoisted_2,
|
|
274
|
-
_hoisted_3
|
|
277
|
+
createElementVNode("div", _hoisted_3, [
|
|
278
|
+
createVNode(_component_SubmitButtonRender, {
|
|
279
|
+
options: $props.formJson.formConfig,
|
|
280
|
+
ctx: this
|
|
281
|
+
}, null, 8, ["options"])
|
|
282
|
+
])
|
|
275
283
|
]),
|
|
276
284
|
default: withCtx(() => [
|
|
277
285
|
withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
|