@kp-ui/lowcode 1.0.51 → 1.0.53
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 +1 -1
- 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 +0 -170
- package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue2.js.map +1 -1
- package/src/components/form-designer/form-widget/field-widget/button-list-widget.vue.js +11 -34
- package/src/components/form-designer/form-widget/field-widget/button-list-widget.vue.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue.js +13 -210
- package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-showButtonsColumn-editor.vue.js +56 -422
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-showButtonsColumn-editor.vue.js.map +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +15 -17
- 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-render/container-item/data-table-item.vue.js +8 -15
- package/src/components/form-render/container-item/data-table-item.vue.js.map +1 -1
- package/src/components/public/ActionButtonListDialog.vue.js +189 -0
- package/src/components/public/ActionButtonListDialog.vue.js.map +1 -0
- package/src/components/public/ActionButtonListDialog.vue2.js +115 -0
- package/src/components/public/ActionButtonListDialog.vue2.js.map +1 -0
- package/src/components/public/ActionButtonListRender.vue.js +44 -0
- package/src/components/public/ActionButtonListRender.vue.js.map +1 -0
- package/src/components/public/ActionButtonListRender.vue2.js +86 -0
- package/src/components/public/ActionButtonListRender.vue2.js.map +1 -0
- package/src/mixins/useDataTableMixin.js +10 -34
- package/src/mixins/useDataTableMixin.js.map +1 -1
- package/styles/style.css +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
- package/types/src/types/button.d.ts +10 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import i18n from "../../../../../utils/i18n.js";
|
|
2
2
|
import CodeModalEditor from "../../../../code-editor/code-modal-editor.vue.js";
|
|
3
|
-
import { resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, createBlock, createCommentVNode } from "vue";
|
|
3
|
+
import { resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, createBlock, createCommentVNode, normalizeClass } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const _sfc_main = {
|
|
@@ -93,7 +93,6 @@ const _sfc_main = {
|
|
|
93
93
|
],
|
|
94
94
|
dialogVisible: false,
|
|
95
95
|
currentRecordIndexs: null,
|
|
96
|
-
showRenderDialogFlag: false,
|
|
97
96
|
alignOptions: [
|
|
98
97
|
{ value: "left", label: "left" },
|
|
99
98
|
{ value: "center", label: "center" },
|
|
@@ -108,7 +107,6 @@ const _sfc_main = {
|
|
|
108
107
|
},
|
|
109
108
|
saveColumnRender(value) {
|
|
110
109
|
this.optionModel.tableColumns[this.currentRecordIndexs].customRender = value;
|
|
111
|
-
this.showRenderDialogFlag = false;
|
|
112
110
|
},
|
|
113
111
|
addCol() {
|
|
114
112
|
const newRow = {
|
|
@@ -127,7 +125,7 @@ const _sfc_main = {
|
|
|
127
125
|
this.optionModel.tableColumns.push(newRow);
|
|
128
126
|
this.designer.emitHistoryChange();
|
|
129
127
|
},
|
|
130
|
-
handleDelete(index
|
|
128
|
+
handleDelete(index) {
|
|
131
129
|
if (this.optionModel.tableColumns.length === 1) {
|
|
132
130
|
this.$message.warning(
|
|
133
131
|
this.i18nt("designer.setting.onlyOneColumnCannotBeDeleted")
|
|
@@ -180,7 +178,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
180
178
|
createVNode(_component_a_modal, {
|
|
181
179
|
title: _ctx.i18nt("designer.setting.tableColEdit"),
|
|
182
180
|
visible: $data.dialogVisible,
|
|
183
|
-
"onUpdate:visible": _cache[
|
|
181
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => $data.dialogVisible = $event),
|
|
184
182
|
"show-close": true,
|
|
185
183
|
"close-on-click-modal": false,
|
|
186
184
|
"close-on-press-escape": false,
|
|
@@ -193,7 +191,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
193
191
|
createElementVNode("div", _hoisted_3, [
|
|
194
192
|
createVNode(_component_a_button, {
|
|
195
193
|
size: "default",
|
|
196
|
-
onClick: _cache[
|
|
194
|
+
onClick: _cache[1] || (_cache[1] = ($event) => $data.dialogVisible = false)
|
|
197
195
|
}, {
|
|
198
196
|
default: withCtx(() => [
|
|
199
197
|
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.cancel")), 1)
|
|
@@ -229,7 +227,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
229
227
|
"row-key": (record) => record.columnId,
|
|
230
228
|
columns: $data.columns
|
|
231
229
|
}, {
|
|
232
|
-
bodyCell: withCtx(({ column, record, recordIndexs }) => [
|
|
230
|
+
bodyCell: withCtx(({ column, record, index, recordIndexs }) => [
|
|
233
231
|
column.dataIndex === "dataIndex" ? (openBlock(), createBlock(_component_a_input, {
|
|
234
232
|
key: 0,
|
|
235
233
|
value: $props.optionModel.tableColumns[recordIndexs[0]].dataIndex,
|
|
@@ -298,6 +296,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
298
296
|
column.dataIndex === "customRender" ? (openBlock(), createBlock(_component_a_button, {
|
|
299
297
|
key: 9,
|
|
300
298
|
onClick: ($event) => $options.showRenderDialog(recordIndexs[0], record, _ctx.dataIndex),
|
|
299
|
+
class: normalizeClass([{ "button-text-highlight": !!record.customRender }]),
|
|
301
300
|
size: "small",
|
|
302
301
|
shape: "round"
|
|
303
302
|
}, {
|
|
@@ -305,24 +304,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
305
304
|
createTextVNode(" edit ")
|
|
306
305
|
]),
|
|
307
306
|
_: 2
|
|
308
|
-
}, 1032, ["onClick"])) : createCommentVNode("", true),
|
|
307
|
+
}, 1032, ["onClick", "class"])) : createCommentVNode("", true),
|
|
309
308
|
column.dataIndex === "action" ? (openBlock(), createBlock(_component_a_space, { key: 10 }, {
|
|
310
309
|
default: withCtx(() => [
|
|
311
|
-
|
|
312
|
-
key: 0,
|
|
310
|
+
createVNode(_component_a_button, {
|
|
313
311
|
title: _ctx.i18nt("designer.setting.deleteTableColumn"),
|
|
314
312
|
size: "small",
|
|
315
|
-
onClick:
|
|
313
|
+
onClick: ($event) => $options.handleDelete(index),
|
|
316
314
|
type: "text"
|
|
317
315
|
}, {
|
|
318
316
|
default: withCtx(() => [
|
|
319
317
|
createTextVNode(" 删除 ")
|
|
320
318
|
]),
|
|
321
|
-
_:
|
|
322
|
-
},
|
|
319
|
+
_: 2
|
|
320
|
+
}, 1032, ["title", "onClick"])
|
|
323
321
|
]),
|
|
324
|
-
_:
|
|
325
|
-
})) : createCommentVNode("", true)
|
|
322
|
+
_: 2
|
|
323
|
+
}, 1024)) : createCommentVNode("", true)
|
|
326
324
|
]),
|
|
327
325
|
_: 1
|
|
328
326
|
}, 8, ["dataSource", "row-key", "columns"]),
|
|
@@ -331,7 +329,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
331
329
|
title: _ctx.i18nt("designer.setting.addTableColumn"),
|
|
332
330
|
type: "primary",
|
|
333
331
|
size: "medium",
|
|
334
|
-
onClick: _cache[
|
|
332
|
+
onClick: _cache[0] || (_cache[0] = ($event) => $options.addCol())
|
|
335
333
|
}, {
|
|
336
334
|
default: withCtx(() => [
|
|
337
335
|
createTextVNode(toDisplayString(_ctx.i18nt("designer.setting.addTableColumn")), 1)
|
|
@@ -351,7 +349,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
351
349
|
}, null, 8, ["onSave", "title", "event-header"])
|
|
352
350
|
], 64);
|
|
353
351
|
}
|
|
354
|
-
const dataTableTableColumnsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
352
|
+
const dataTableTableColumnsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e8537175"]]);
|
|
355
353
|
export {
|
|
356
354
|
dataTableTableColumnsEditor as default
|
|
357
355
|
};
|
|
@@ -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 showRenderDialogFlag: false,\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 this.showRenderDialogFlag = false;\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","_createElementVNode","_createBlock"],"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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AA,gBACL,OAAM;AAAA;iCACT,MAED;AAAA,kCAFC,QAED;AAAA;;;cAEY,OAAO,cAAS,yBAC5BA,YAUU,oBAAA,EAAA,KAAA,GAAA,GAAA;AAAA,iCATN,MAQW;AAAA,kBAPD,OAAW,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;AA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O,SAAgB,iBAAC,aAAiB,CAAA,GAAA,QAAQ,KAAS,SAAA;AAAA,gBAC1D,OAAKC,eAAA,CAAA,EAAA,yBAAA,CAAA,CAAgC,OAAO,aAAY,CAAA,CAAA;AAAA,gBACzD,MAAK;AAAA,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;;;;"}
|
|
@@ -23,6 +23,10 @@ const _sfc_main = {
|
|
|
23
23
|
parentWidget: Object,
|
|
24
24
|
parentList: Array,
|
|
25
25
|
indexOfParentList: Number,
|
|
26
|
+
data: {
|
|
27
|
+
type: Array,
|
|
28
|
+
default: () => []
|
|
29
|
+
},
|
|
26
30
|
subFormRowIndex: {
|
|
27
31
|
/* 子表单组件行索引,从0开始计数 */
|
|
28
32
|
type: Number,
|
|
@@ -41,17 +45,7 @@ const _sfc_main = {
|
|
|
41
45
|
},
|
|
42
46
|
inject: ["refList", "sfRefList", "globalModel", "getFormConfig", "getGlobalDsv"],
|
|
43
47
|
data() {
|
|
44
|
-
return {
|
|
45
|
-
// selectAllFlag: false,
|
|
46
|
-
// selectedIndices: [],
|
|
47
|
-
// selectedRows: []
|
|
48
|
-
// pageSize: this.widget.options.pagination.pageSize,
|
|
49
|
-
// pageSizes: this.widget.options.pagination.pageSizes,
|
|
50
|
-
// currentPage: this.widget.options.pagination.currentPage,
|
|
51
|
-
// total: this.widget.options.pagination.total,
|
|
52
|
-
// 是否跳过selectionChange事件
|
|
53
|
-
// skipSelectionChangeEvent: false
|
|
54
|
-
};
|
|
48
|
+
return {};
|
|
55
49
|
},
|
|
56
50
|
computed: {
|
|
57
51
|
formConfig() {
|
|
@@ -127,7 +121,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
127
121
|
ref: "dataTable2",
|
|
128
122
|
columns: _ctx.columns.columns,
|
|
129
123
|
size: _ctx.widgetSize,
|
|
130
|
-
dataSource:
|
|
124
|
+
dataSource: $props.data,
|
|
131
125
|
rowKey: (record) => record[$props.widget.options.rowKey],
|
|
132
126
|
scroll: { y: parseFloat(_ctx.tableHeight || 0), x: 300 },
|
|
133
127
|
bordered: $props.widget.options.border,
|
|
@@ -147,10 +141,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
147
141
|
bodyCell: withCtx((scope) => [
|
|
148
142
|
_ctx.isShowBodyCell(scope.column.dataIndex) ? (openBlock(), createBlock(_component_RenderBodyCell, {
|
|
149
143
|
key: 0,
|
|
150
|
-
options: $props.widget.options.dataSource,
|
|
151
144
|
bodyCell: _ctx.columns.bodyCell,
|
|
152
145
|
scope
|
|
153
|
-
}, null, 8, ["
|
|
146
|
+
}, null, 8, ["bodyCell", "scope"])) : createCommentVNode("", true)
|
|
154
147
|
]),
|
|
155
148
|
_: 1
|
|
156
149
|
}, 8, ["columns", "class", "size", "dataSource", "rowKey", "scroll", "bordered", "style", "row-class-name", "rowSelection", "pagination", "customRow", "rowClassName", "onChange", "onResizeColumn", "loading"])
|
|
@@ -160,7 +153,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
160
153
|
[vShow, !_ctx.handleHidden()]
|
|
161
154
|
]);
|
|
162
155
|
}
|
|
163
|
-
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-977f227b"]]);
|
|
164
157
|
export {
|
|
165
158
|
dataTableItem as default
|
|
166
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 :rowClassName=\"rowClassName\"\n @change=\"handleTablePageChange\"\n @resizeColumn=\"handleResizeColumn\"\n :loading=\"loading\"\n >\n <template #emptyText>\n <a-empty />\n </template>\n <template #bodyCell=\"scope\">\n <template v-if=\"isShowBodyCell(scope.column.dataIndex)\">\n <RenderBodyCell
|
|
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 :rowClassName=\"rowClassName\"\n @change=\"handleTablePageChange\"\n @resizeColumn=\"handleResizeColumn\"\n :loading=\"loading\"\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"],"mapp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UAAQ,KAAqB;AAAA,QAC7B,gBAAc,KAAkB;AAAA,QAChC,SAAS,KAAO;AAAA;QAEN,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;;;"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import _sfc_main from "./ActionButtonListDialog.vue2.js";
|
|
2
|
+
import { resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createBlock, createCommentVNode, createTextVNode, normalizeClass, toDisplayString } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const _hoisted_1 = { class: "add-btn" };
|
|
6
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7
|
+
const _component_a_input = resolveComponent("a-input");
|
|
8
|
+
const _component_a_select_option = resolveComponent("a-select-option");
|
|
9
|
+
const _component_a_select = resolveComponent("a-select");
|
|
10
|
+
const _component_a_switch = resolveComponent("a-switch");
|
|
11
|
+
const _component_a_button = resolveComponent("a-button");
|
|
12
|
+
const _component_STable = resolveComponent("STable");
|
|
13
|
+
const _component_CodeModalEditor = resolveComponent("CodeModalEditor");
|
|
14
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
15
|
+
createVNode(_component_STable, {
|
|
16
|
+
deepWatchDataSource: "",
|
|
17
|
+
"data-source": _ctx.buttonList,
|
|
18
|
+
pagination: false,
|
|
19
|
+
resizable: true,
|
|
20
|
+
columns: _ctx.columns,
|
|
21
|
+
"row-key": (record) => record.name
|
|
22
|
+
}, {
|
|
23
|
+
bodyCell: withCtx(({ column, recordIndexs, record }) => [
|
|
24
|
+
column.dataIndex === "label" ? (openBlock(), createBlock(_component_a_input, {
|
|
25
|
+
key: 0,
|
|
26
|
+
value: _ctx.buttonList[recordIndexs[0]].label,
|
|
27
|
+
"onUpdate:value": ($event) => _ctx.buttonList[recordIndexs[0]].label = $event,
|
|
28
|
+
placeholder: _ctx.i18nt("designer.setting.operationButtonLabel")
|
|
29
|
+
}, null, 8, ["value", "onUpdate:value", "placeholder"])) : createCommentVNode("", true),
|
|
30
|
+
column.dataIndex === "type" ? (openBlock(), createBlock(_component_a_select, {
|
|
31
|
+
key: 1,
|
|
32
|
+
value: _ctx.buttonList[recordIndexs[0]].type,
|
|
33
|
+
"onUpdate:value": ($event) => _ctx.buttonList[recordIndexs[0]].type = $event,
|
|
34
|
+
placeholder: _ctx.i18nt("designer.setting.operationButtonType"),
|
|
35
|
+
style: { "width": "100%" }
|
|
36
|
+
}, {
|
|
37
|
+
default: withCtx(() => [
|
|
38
|
+
createVNode(_component_a_select_option, { value: "primary" }, {
|
|
39
|
+
default: withCtx(() => [
|
|
40
|
+
createTextVNode("primary")
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}),
|
|
44
|
+
createVNode(_component_a_select_option, { value: "ghost" }, {
|
|
45
|
+
default: withCtx(() => [
|
|
46
|
+
createTextVNode("ghost")
|
|
47
|
+
]),
|
|
48
|
+
_: 1
|
|
49
|
+
}),
|
|
50
|
+
createVNode(_component_a_select_option, { value: "dashed" }, {
|
|
51
|
+
default: withCtx(() => [
|
|
52
|
+
createTextVNode("dashed")
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}),
|
|
56
|
+
createVNode(_component_a_select_option, { value: "text" }, {
|
|
57
|
+
default: withCtx(() => [
|
|
58
|
+
createTextVNode("text")
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
}),
|
|
62
|
+
createVNode(_component_a_select_option, { value: "link" }, {
|
|
63
|
+
default: withCtx(() => [
|
|
64
|
+
createTextVNode("link")
|
|
65
|
+
]),
|
|
66
|
+
_: 1
|
|
67
|
+
}),
|
|
68
|
+
createVNode(_component_a_select_option, { value: "default" }, {
|
|
69
|
+
default: withCtx(() => [
|
|
70
|
+
createTextVNode("default")
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
})
|
|
74
|
+
]),
|
|
75
|
+
_: 2
|
|
76
|
+
}, 1032, ["value", "onUpdate:value", "placeholder"])) : createCommentVNode("", true),
|
|
77
|
+
column.dataIndex === "size" ? (openBlock(), createBlock(_component_a_select, {
|
|
78
|
+
key: 2,
|
|
79
|
+
value: _ctx.buttonList[recordIndexs[0]].size,
|
|
80
|
+
"onUpdate:value": ($event) => _ctx.buttonList[recordIndexs[0]].size = $event,
|
|
81
|
+
placeholder: _ctx.i18nt("designer.setting.size"),
|
|
82
|
+
style: { "width": "100%" }
|
|
83
|
+
}, {
|
|
84
|
+
default: withCtx(() => [
|
|
85
|
+
createVNode(_component_a_select_option, { value: "default" }, {
|
|
86
|
+
default: withCtx(() => [
|
|
87
|
+
createTextVNode("default")
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}),
|
|
91
|
+
createVNode(_component_a_select_option, { value: "small" }, {
|
|
92
|
+
default: withCtx(() => [
|
|
93
|
+
createTextVNode("small")
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
}),
|
|
97
|
+
createVNode(_component_a_select_option, { value: "large" }, {
|
|
98
|
+
default: withCtx(() => [
|
|
99
|
+
createTextVNode("large")
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
})
|
|
103
|
+
]),
|
|
104
|
+
_: 2
|
|
105
|
+
}, 1032, ["value", "onUpdate:value", "placeholder"])) : createCommentVNode("", true),
|
|
106
|
+
column.dataIndex === "icon" ? (openBlock(), createBlock(_component_a_input, {
|
|
107
|
+
key: 3,
|
|
108
|
+
value: _ctx.buttonList[recordIndexs[0]].icon,
|
|
109
|
+
"onUpdate:value": ($event) => _ctx.buttonList[recordIndexs[0]].icon = $event,
|
|
110
|
+
placeholder: _ctx.i18nt("designer.setting.operationButtonLabel")
|
|
111
|
+
}, null, 8, ["value", "onUpdate:value", "placeholder"])) : createCommentVNode("", true),
|
|
112
|
+
column.dataIndex === "danger" ? (openBlock(), createBlock(_component_a_switch, {
|
|
113
|
+
key: 4,
|
|
114
|
+
checkedValue: 1,
|
|
115
|
+
unCheckedValue: 0,
|
|
116
|
+
checked: _ctx.buttonList[recordIndexs[0]].danger,
|
|
117
|
+
"onUpdate:checked": ($event) => _ctx.buttonList[recordIndexs[0]].danger = $event
|
|
118
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : createCommentVNode("", true),
|
|
119
|
+
column.dataIndex === "onHidden" ? (openBlock(), createBlock(_component_a_button, {
|
|
120
|
+
key: 5,
|
|
121
|
+
class: normalizeClass([{ "button-text-highlight": !!record.onHidden }]),
|
|
122
|
+
onClick: ($event) => _ctx.editClickEvent("onHidden", record, recordIndexs),
|
|
123
|
+
size: "small"
|
|
124
|
+
}, {
|
|
125
|
+
default: withCtx(() => [
|
|
126
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.setting.operationButtonHidden")), 1)
|
|
127
|
+
]),
|
|
128
|
+
_: 2
|
|
129
|
+
}, 1032, ["class", "onClick"])) : createCommentVNode("", true),
|
|
130
|
+
column.dataIndex === "onDisabled" ? (openBlock(), createBlock(_component_a_button, {
|
|
131
|
+
key: 6,
|
|
132
|
+
class: normalizeClass([{ "button-text-highlight": !!record.onDisabled }]),
|
|
133
|
+
onClick: ($event) => _ctx.editClickEvent("onDisabled", record, recordIndexs),
|
|
134
|
+
size: "small"
|
|
135
|
+
}, {
|
|
136
|
+
default: withCtx(() => [
|
|
137
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.setting.operationButtonDisabled")), 1)
|
|
138
|
+
]),
|
|
139
|
+
_: 2
|
|
140
|
+
}, 1032, ["class", "onClick"])) : createCommentVNode("", true),
|
|
141
|
+
column.dataIndex === "onClick" ? (openBlock(), createBlock(_component_a_button, {
|
|
142
|
+
key: 7,
|
|
143
|
+
class: normalizeClass([{ "button-text-highlight": !!record.onClick }]),
|
|
144
|
+
onClick: ($event) => _ctx.editClickEvent("onClick", record, recordIndexs),
|
|
145
|
+
size: "small"
|
|
146
|
+
}, {
|
|
147
|
+
default: withCtx(() => [
|
|
148
|
+
createTextVNode(" 点击事件 ")
|
|
149
|
+
]),
|
|
150
|
+
_: 2
|
|
151
|
+
}, 1032, ["class", "onClick"])) : createCommentVNode("", true),
|
|
152
|
+
column.dataIndex === "action" ? (openBlock(), createBlock(_component_a_button, {
|
|
153
|
+
key: 8,
|
|
154
|
+
type: "link",
|
|
155
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.deleteOperationButton(_ctx.index)),
|
|
156
|
+
size: "small"
|
|
157
|
+
}, {
|
|
158
|
+
default: withCtx(() => [
|
|
159
|
+
createTextVNode(" 删除 ")
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
})) : createCommentVNode("", true)
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["data-source", "columns", "row-key"]),
|
|
166
|
+
createElementVNode("div", _hoisted_1, [
|
|
167
|
+
createVNode(_component_a_button, {
|
|
168
|
+
type: "primary",
|
|
169
|
+
size: "default",
|
|
170
|
+
onClick: _ctx.addOperationButton
|
|
171
|
+
}, {
|
|
172
|
+
default: withCtx(() => [
|
|
173
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.setting.addOperationButton")), 1)
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
}, 8, ["onClick"])
|
|
177
|
+
]),
|
|
178
|
+
createVNode(_component_CodeModalEditor, {
|
|
179
|
+
ref: "codeModalEditorRef",
|
|
180
|
+
onSave: _ctx.saveColumnRender,
|
|
181
|
+
"event-header": `${_ctx.currentEditBtn}(${_ctx.parmas}){`
|
|
182
|
+
}, null, 8, ["onSave", "event-header"])
|
|
183
|
+
], 64);
|
|
184
|
+
}
|
|
185
|
+
const ActionButtonListDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-f44ca272"]]);
|
|
186
|
+
export {
|
|
187
|
+
ActionButtonListDialog as default
|
|
188
|
+
};
|
|
189
|
+
//# sourceMappingURL=ActionButtonListDialog.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionButtonListDialog.vue.js","sources":["../../../../src/components/public/ActionButtonListDialog.vue"],"sourcesContent":["<template>\n <STable\n deepWatchDataSource\n :data-source=\"buttonList\"\n :pagination=\"false\"\n :resizable=\"true\"\n :columns=\"columns\"\n :row-key=\"record => record.name\"\n >\n <template #bodyCell=\"{ column, recordIndexs, record }\">\n <template v-if=\"column.dataIndex === 'label'\">\n <a-input\n v-model:value=\"buttonList[recordIndexs[0]].label\"\n :placeholder=\"i18nt('designer.setting.operationButtonLabel')\"\n />\n </template>\n <template v-if=\"column.dataIndex === 'type'\">\n <a-select\n v-model:value=\"buttonList[recordIndexs[0]].type\"\n :placeholder=\"i18nt('designer.setting.operationButtonType')\"\n style=\"width: 100%\"\n >\n <a-select-option value=\"primary\">primary</a-select-option>\n <a-select-option value=\"ghost\">ghost</a-select-option>\n <a-select-option value=\"dashed\">dashed</a-select-option>\n <a-select-option value=\"text\">text</a-select-option>\n <a-select-option value=\"link\">link</a-select-option>\n <a-select-option value=\"default\">default</a-select-option>\n </a-select>\n </template>\n <template v-if=\"column.dataIndex === 'size'\">\n <a-select\n v-model:value=\"buttonList[recordIndexs[0]].size\"\n :placeholder=\"i18nt('designer.setting.size')\"\n style=\"width: 100%\"\n >\n <a-select-option value=\"default\">default</a-select-option>\n <a-select-option value=\"small\">small</a-select-option>\n <a-select-option value=\"large\">large</a-select-option>\n </a-select>\n </template>\n <template v-if=\"column.dataIndex === 'icon'\">\n <a-input\n v-model:value=\"buttonList[recordIndexs[0]].icon\"\n :placeholder=\"i18nt('designer.setting.operationButtonLabel')\"\n />\n </template>\n <template v-if=\"column.dataIndex === 'danger'\">\n <a-switch\n :checkedValue=\"1\"\n :unCheckedValue=\"0\"\n v-model:checked=\"buttonList[recordIndexs[0]].danger\"\n />\n </template>\n <template v-if=\"column.dataIndex === 'onHidden'\">\n <a-button\n :class=\"[{ 'button-text-highlight': !!record.onHidden }]\"\n @click=\"editClickEvent('onHidden', record, recordIndexs)\"\n size=\"small\"\n >\n {{ i18nt('designer.setting.operationButtonHidden') }}\n </a-button>\n </template>\n <template v-if=\"column.dataIndex === 'onDisabled'\">\n <a-button\n :class=\"[{ 'button-text-highlight': !!record.onDisabled }]\"\n @click=\"editClickEvent('onDisabled', record, recordIndexs)\"\n size=\"small\"\n >\n {{ i18nt('designer.setting.operationButtonDisabled') }}\n </a-button>\n </template>\n <template v-if=\"column.dataIndex === 'onClick'\">\n <a-button\n :class=\"[{ 'button-text-highlight': !!record.onClick }]\"\n @click=\"editClickEvent('onClick', record, recordIndexs)\"\n size=\"small\"\n >\n 点击事件\n </a-button>\n </template>\n <template v-if=\"column.dataIndex === 'action'\">\n <a-button type=\"link\" @click=\"deleteOperationButton(index)\" size=\"small\">\n 删除\n </a-button>\n </template>\n </template>\n </STable>\n <div class=\"add-btn\">\n <a-button type=\"primary\" size=\"default\" @click=\"addOperationButton\">\n {{ i18nt('designer.setting.addOperationButton') }}\n </a-button>\n </div>\n\n <CodeModalEditor\n ref=\"codeModalEditorRef\"\n @save=\"saveColumnRender\"\n :event-header=\"`${currentEditBtn}(${parmas}){`\"\n />\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, getCurrentInstance, ref, watch, watchEffect } from 'vue';\n import i18n, { useI18n } from '@/utils/i18n';\n import CodeModalEditor from '@/components/code-editor/code-modal-editor.vue';\n import { generateId } from '@/utils/util';\n export default defineComponent({\n name: 'ActionButtonList',\n props: {\n parmas: {\n type: String,\n default: ''\n },\n data: {\n type: Array,\n required: true\n }\n },\n components: { CodeModalEditor },\n mixins: [i18n],\n emits: ['update:data'],\n setup(props, { emit }) {\n const { i18nt } = useI18n();\n const currentEditBtn = ref();\n const codeModalEditorRef = ref(null);\n const currentRecordIndexs = ref();\n const columns = [\n {\n dataIndex: 'label',\n title: i18nt('designer.setting.operationButtonLabel'),\n width: 60\n },\n {\n dataIndex: 'type',\n title: i18nt('designer.setting.operationButtonType'),\n width: 120\n },\n {\n dataIndex: 'size',\n title: i18nt('designer.setting.operationButtonType'),\n width: 80\n },\n {\n dataIndex: 'danger',\n title: i18nt('designer.setting.danger'),\n width: 120\n },\n {\n dataIndex: 'icon',\n title: i18nt('designer.setting.buttonIcon'),\n width: 120\n },\n {\n dataIndex: 'onHidden',\n title: i18nt('designer.setting.operationButtonHidden'),\n width: 100\n },\n {\n dataIndex: 'onDisabled',\n title: i18nt('designer.setting.operationButtonDisabled'),\n width: 100\n },\n { dataIndex: 'onClick', title: '点击事件', width: 100 },\n { dataIndex: 'action', title: '操作', width: 80 }\n ];\n\n const buttonList = computed(() => props.data as any[]);\n\n watch(\n () => buttonList.value,\n () => {\n emit('update:data', buttonList.value);\n },\n {\n deep: true\n }\n );\n\n const deleteOperationButton = (index: number) => {\n console.log(index);\n buttonList.value.splice(index, 1);\n };\n\n const editClickEvent = (name, row, recordIndexs) => {\n currentRecordIndexs.value = recordIndexs[0];\n currentEditBtn.value = name;\n codeModalEditorRef.value?.open(row[name]);\n };\n\n const saveColumnRender = value => {\n console.log(buttonList.value, currentRecordIndexs.value, currentEditBtn.value);\n buttonList.value[currentRecordIndexs.value][currentEditBtn.value] = value;\n };\n\n const addOperationButton = () => {\n buttonList.value.push({\n name: 'btn' + generateId(),\n label: 'new btn',\n type: 'primary',\n size: 'small',\n shape: 'default',\n hidden: false,\n disabled: false,\n onClick: ''\n });\n };\n\n return {\n addOperationButton,\n saveColumnRender,\n columns,\n buttonList,\n editClickEvent,\n codeModalEditorRef,\n currentEditBtn,\n deleteOperationButton\n };\n }\n });\n</script>\n<style lang=\"less\" scoped>\n .add-btn {\n margin-top: 10px;\n text-align: center;\n }\n</style>\n"],"names":["_createVNode","_withCtx","_openBlock","_createBlock","_createCommentVNode","_createTextVNode","_normalizeClass","_toDisplayString","_createElementVNode"],"mappings":";;;;AAwFS,MAAA,aAAA,EAAA,OAAM,UAAS;;;;;;;;;;IAvFpBA,YAsFS,mBAAA;AAAA,MArFL,qBAAA;AAAA,MACC,eAAa,KAAA;AAAA,MACb,YAAY;AAAA,MACZ,WAAW;AAAA,MACX,SAAS,KAAA;AAAA,MACT,WAAS,YAAU,OAAO;AAAA,IAAA,GAAA;AAAA,MAEhB,UAAQC,QACf,CAKW,EANQ,QAAQ,cAAc,OAAM,MAAA;AAAA,QAC/B,OAAO,cAAS,WAAAC,UAAA,GAC5BC,YAGE,oBAAA;AAAA,UAAA,KAAA;AAAA,UAFU,OAAO,KAAA,WAAW,aAAY,CAAK,CAAA,EAAA;AAAA,UAA5B,kBAAA,CAAA,WAAA,KAAA,WAAW,aAAY,CAAA,CAAA,EAAK,QAAK;AAAA,UAC/C,aAAa,KAAK,MAAA,uCAAA;AAAA,QAAA,GAAA,MAAA,GAAA,CAAA,SAAA,kBAAA,aAAA,CAAA,KAAAC,mBAAA,IAAA,IAAA;AAAA,QAGX,OAAO,cAAS,uBAC5BD,YAWW,qBAAA;AAAA,UAAA,KAAA;AAAA,UAVC,OAAO,KAAA,WAAW,aAAY,CAAK,CAAA,EAAA;AAAA,UAA5B,kBAAA,CAAA,WAAA,KAAA,WAAW,aAAY,CAAA,CAAA,EAAK,OAAI;AAAA,UAC9C,aAAa,KAAK,MAAA,sCAAA;AAAA,UACnB,OAAA,EAAA,SAAA,OAAA;AAAA,QAAA,GAAA;AAAA,2BAEA,MAA0D;AAAA,YAA1DH,YAA0D,4BAAzC,EAAA,OAAM,UAAS,GAAA;AAAA,cAAA,SAAAC,QAAC,MAAO;AAAA,gBAAAI,gBAAP,SAAO;AAAA,cAAA,CAAA;AAAA;;YACxCL,YAAsD,4BAAA,EAArC,OAAM,QAAO,GAAA;AAAA,cAAA,SAA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