@kp-ui/lowcode 1.0.68 → 1.0.70
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/package.json +2 -2
- package/render.js +9 -8
- package/src/components/code-editor/code-modal-editor.vue.js +54 -67
- package/src/components/code-editor/code-modal-editor.vue2.js +1 -42
- package/src/components/form-designer/form-widget/index.vue.js +8 -4
- package/src/components/form-designer/setting-panel/form-setting.vue.js +1 -1
- package/src/components/form-designer/setting-panel/index.vue.js +26 -71
- package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue.js +2 -2
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-dsEnabled-editor.vue.js +7 -6
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-selections-editor.vue.js +2 -2
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +64 -62
- package/src/components/form-designer/setting-panel/property-editor/field-dropdown/dropdown-menuList-editor.vue.js +2 -2
- package/src/components/form-designer/toolbar-panel/index.vue.js +101 -108
- package/src/components/form-designer/widget-panel/index.vue.js +4 -2
- package/src/components/form-render/dynamic-dialog.vue.js +7 -6
- package/src/components/http-editor/index.vue.js +6 -5
- package/src/components/http-editor/index.vue2.js +2 -2
- package/src/components/public/ActionButtonListDialog.vue2.js +2 -2
- package/src/mixins/useDataTableMixin.js +8 -5
- package/styles/style.css +1 -1
- package/types/src/lang/en-US.d.ts +440 -0
- package/types/src/lang/en-US.d.ts.map +1 -0
- package/types/src/lang/en-US_extension.d.ts +24 -0
- package/types/src/lang/en-US_extension.d.ts.map +1 -0
- package/types/src/lang/en-US_render.d.ts +39 -0
- package/types/src/lang/en-US_render.d.ts.map +1 -0
- package/types/src/lang/zh-CN.d.ts +450 -0
- package/types/src/lang/zh-CN.d.ts.map +1 -0
- package/types/src/lang/zh-CN_extension.d.ts +24 -0
- package/types/src/lang/zh-CN_extension.d.ts.map +1 -0
- package/types/src/lang/zh-CN_render.d.ts +39 -0
- package/types/src/lang/zh-CN_render.d.ts.map +1 -0
- package/types/src/utils/i18n.d.ts +14 -0
- package/types/src/utils/i18n.d.ts.map +1 -0
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import i18n from "../../../../../utils/i18n.js";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import _sfc_main$1 from "../../../../code-editor/code-modal-editor.vue.js";
|
|
3
|
+
import { cloneDeep } from "lodash-es";
|
|
4
|
+
import { defineAsyncComponent, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, createBlock, createCommentVNode, normalizeClass } from "vue";
|
|
4
5
|
/* empty css */
|
|
5
6
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
7
|
const _sfc_main = {
|
|
7
8
|
name: "tableColumns-editor",
|
|
8
9
|
mixins: [i18n],
|
|
9
|
-
components: {
|
|
10
|
+
components: {
|
|
11
|
+
CodeModalEditor: _sfc_main$1,
|
|
12
|
+
TpfModal: defineAsyncComponent(async () => {
|
|
13
|
+
const { TpfModal } = await import("tmgc2-share");
|
|
14
|
+
return TpfModal;
|
|
15
|
+
})
|
|
16
|
+
},
|
|
10
17
|
props: {
|
|
11
18
|
designer: Object,
|
|
12
19
|
selectedWidget: Object,
|
|
@@ -14,6 +21,7 @@ const _sfc_main = {
|
|
|
14
21
|
},
|
|
15
22
|
data() {
|
|
16
23
|
return {
|
|
24
|
+
tableColumns: [],
|
|
17
25
|
columns: [
|
|
18
26
|
{
|
|
19
27
|
title: "序号",
|
|
@@ -107,7 +115,7 @@ const _sfc_main = {
|
|
|
107
115
|
this.$refs.CodeModalEditorRef.open(record.customRender);
|
|
108
116
|
},
|
|
109
117
|
saveColumnRender(value) {
|
|
110
|
-
this.
|
|
118
|
+
this.tableColumns[this.currentRecordIndexs].customRender = value;
|
|
111
119
|
},
|
|
112
120
|
addCol() {
|
|
113
121
|
const newRow = {
|
|
@@ -124,24 +132,26 @@ const _sfc_main = {
|
|
|
124
132
|
resizable: true,
|
|
125
133
|
showSorterTooltip: false
|
|
126
134
|
};
|
|
127
|
-
this.
|
|
135
|
+
this.tableColumns.push(newRow);
|
|
128
136
|
this.designer.emitHistoryChange();
|
|
129
137
|
},
|
|
130
138
|
handleDelete(index) {
|
|
131
|
-
if (this.
|
|
139
|
+
if (this.tableColumns.length === 1) {
|
|
132
140
|
this.$message.warning(
|
|
133
141
|
this.i18nt("designer.setting.onlyOneColumnCannotBeDeleted")
|
|
134
142
|
);
|
|
135
143
|
return false;
|
|
136
144
|
}
|
|
137
|
-
this.
|
|
145
|
+
this.tableColumns.splice(index, 1);
|
|
138
146
|
},
|
|
139
147
|
// 确认表格列更改
|
|
140
148
|
colSubmit() {
|
|
149
|
+
this.optionModel.tableColumns = cloneDeep(this.tableColumns);
|
|
141
150
|
this.dialogVisible = false;
|
|
142
151
|
},
|
|
143
152
|
openSetting() {
|
|
144
153
|
this.dialogVisible = true;
|
|
154
|
+
this.tableColumns = cloneDeep(this.optionModel.tableColumns);
|
|
145
155
|
}
|
|
146
156
|
}
|
|
147
157
|
};
|
|
@@ -151,7 +161,6 @@ const _hoisted_2 = {
|
|
|
151
161
|
style: { "text-align": "center" }
|
|
152
162
|
};
|
|
153
163
|
const _hoisted_3 = { class: "add-btn" };
|
|
154
|
-
const _hoisted_4 = { class: "dialog-footer" };
|
|
155
164
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
156
165
|
const _component_a_button = resolveComponent("a-button");
|
|
157
166
|
const _component_a_form_item = resolveComponent("a-form-item");
|
|
@@ -161,7 +170,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
161
170
|
const _component_a_select = resolveComponent("a-select");
|
|
162
171
|
const _component_a_space = resolveComponent("a-space");
|
|
163
172
|
const _component_s_table = resolveComponent("s-table");
|
|
164
|
-
const
|
|
173
|
+
const _component_TpfModal = resolveComponent("TpfModal");
|
|
165
174
|
const _component_CodeModalEditor = resolveComponent("CodeModalEditor");
|
|
166
175
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
167
176
|
createVNode(_component_a_form_item, {
|
|
@@ -181,52 +190,45 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
181
190
|
]),
|
|
182
191
|
_: 1
|
|
183
192
|
}, 8, ["label"]),
|
|
184
|
-
createVNode(
|
|
193
|
+
createVNode(_component_TpfModal, {
|
|
185
194
|
title: _ctx.i18nt("designer.setting.tableColEdit"),
|
|
186
195
|
visible: $data.dialogVisible,
|
|
187
196
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => $data.dialogVisible = $event),
|
|
188
|
-
"
|
|
189
|
-
"close-on-click-modal": false,
|
|
190
|
-
"close-on-press-escape": false,
|
|
191
|
-
"destroy-on-close": true,
|
|
192
|
-
width: "1200px",
|
|
193
|
-
"aria-hidden": "false",
|
|
194
|
-
wrapClassName: "table-columns-modal"
|
|
197
|
+
width: "1200px"
|
|
195
198
|
}, {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}, 8, ["onClick"])
|
|
217
|
-
])
|
|
199
|
+
footerRight: withCtx(() => [
|
|
200
|
+
createVNode(_component_a_button, {
|
|
201
|
+
size: "default",
|
|
202
|
+
onClick: _cache[1] || (_cache[1] = ($event) => $data.dialogVisible = false)
|
|
203
|
+
}, {
|
|
204
|
+
default: withCtx(() => [
|
|
205
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.cancel")), 1)
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
}),
|
|
209
|
+
createVNode(_component_a_button, {
|
|
210
|
+
size: "default",
|
|
211
|
+
type: "primary",
|
|
212
|
+
onClick: $options.colSubmit
|
|
213
|
+
}, {
|
|
214
|
+
default: withCtx(() => [
|
|
215
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.confirm")), 1)
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
}, 8, ["onClick"])
|
|
218
219
|
]),
|
|
219
220
|
default: withCtx(() => [
|
|
220
221
|
createElementVNode("div", _hoisted_1, [
|
|
221
222
|
createVNode(_component_s_table, {
|
|
222
223
|
class: "tpf-surely-table",
|
|
223
224
|
"aria-hidden": "false",
|
|
224
|
-
dataSource: $
|
|
225
|
+
dataSource: $data.tableColumns,
|
|
225
226
|
style: { "width": "100%" },
|
|
226
227
|
deepWatchDataSource: "",
|
|
227
228
|
"cell-style": { padding: "0" },
|
|
228
229
|
height: "600",
|
|
229
230
|
id: "singleTable",
|
|
231
|
+
size: "medium",
|
|
230
232
|
scroll: { y: 300, x: 300 },
|
|
231
233
|
pagination: false,
|
|
232
234
|
resizable: "",
|
|
@@ -236,50 +238,50 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
236
238
|
bodyCell: withCtx(({ column, record, index, recordIndexs }) => [
|
|
237
239
|
column.dataIndex === "dataIndex" ? (openBlock(), createBlock(_component_a_input, {
|
|
238
240
|
key: 0,
|
|
239
|
-
value: $
|
|
240
|
-
"onUpdate:value": ($event) => $
|
|
241
|
+
value: $data.tableColumns[recordIndexs[0]].dataIndex,
|
|
242
|
+
"onUpdate:value": ($event) => $data.tableColumns[recordIndexs[0]].dataIndex = $event
|
|
241
243
|
}, null, 8, ["value", "onUpdate:value"])) : createCommentVNode("", true),
|
|
242
244
|
column.dataIndex === "title" ? (openBlock(), createBlock(_component_a_input, {
|
|
243
245
|
key: 1,
|
|
244
|
-
value: $
|
|
245
|
-
"onUpdate:value": ($event) => $
|
|
246
|
+
value: $data.tableColumns[recordIndexs[0]].title,
|
|
247
|
+
"onUpdate:value": ($event) => $data.tableColumns[recordIndexs[0]].title = $event
|
|
246
248
|
}, null, 8, ["value", "onUpdate:value"])) : createCommentVNode("", true),
|
|
247
249
|
column.dataIndex === "width" ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
248
250
|
createVNode(_component_a_switch, {
|
|
249
251
|
"checked-children": "自动宽度",
|
|
250
|
-
checked: $
|
|
251
|
-
"onUpdate:checked": ($event) => $
|
|
252
|
+
checked: $data.tableColumns[recordIndexs[0]].isAutoWidth,
|
|
253
|
+
"onUpdate:checked": ($event) => $data.tableColumns[recordIndexs[0]].isAutoWidth = $event
|
|
252
254
|
}, null, 8, ["checked", "onUpdate:checked"]),
|
|
253
255
|
!record.isAutoWidth ? (openBlock(), createBlock(_component_a_input, {
|
|
254
256
|
key: 0,
|
|
255
|
-
value: $
|
|
256
|
-
"onUpdate:value": ($event) => $
|
|
257
|
+
value: $data.tableColumns[recordIndexs[0]].width,
|
|
258
|
+
"onUpdate:value": ($event) => $data.tableColumns[recordIndexs[0]].width = $event
|
|
257
259
|
}, null, 8, ["value", "onUpdate:value"])) : createCommentVNode("", true)
|
|
258
260
|
])) : createCommentVNode("", true),
|
|
259
261
|
column.dataIndex === "show" ? (openBlock(), createBlock(_component_a_switch, {
|
|
260
262
|
key: 3,
|
|
261
|
-
checked: $
|
|
262
|
-
"onUpdate:checked": ($event) => $
|
|
263
|
+
checked: $data.tableColumns[recordIndexs[0]].show,
|
|
264
|
+
"onUpdate:checked": ($event) => $data.tableColumns[recordIndexs[0]].show = $event
|
|
263
265
|
}, null, 8, ["checked", "onUpdate:checked"])) : createCommentVNode("", true),
|
|
264
266
|
column.dataIndex === "sorter" ? (openBlock(), createBlock(_component_a_switch, {
|
|
265
267
|
key: 4,
|
|
266
|
-
checked: $
|
|
267
|
-
"onUpdate:checked": ($event) => $
|
|
268
|
+
checked: $data.tableColumns[recordIndexs[0]].sorter,
|
|
269
|
+
"onUpdate:checked": ($event) => $data.tableColumns[recordIndexs[0]].sorter = $event
|
|
268
270
|
}, null, 8, ["checked", "onUpdate:checked"])) : createCommentVNode("", true),
|
|
269
271
|
column.dataIndex === "resizable" ? (openBlock(), createBlock(_component_a_switch, {
|
|
270
272
|
key: 5,
|
|
271
|
-
checked: $
|
|
272
|
-
"onUpdate:checked": ($event) => $
|
|
273
|
+
checked: $data.tableColumns[recordIndexs[0]].resizable,
|
|
274
|
+
"onUpdate:checked": ($event) => $data.tableColumns[recordIndexs[0]].resizable = $event
|
|
273
275
|
}, null, 8, ["checked", "onUpdate:checked"])) : createCommentVNode("", true),
|
|
274
276
|
column.dataIndex === "ellipsis" ? (openBlock(), createBlock(_component_a_switch, {
|
|
275
277
|
key: 6,
|
|
276
|
-
checked: $
|
|
277
|
-
"onUpdate:checked": ($event) => $
|
|
278
|
+
checked: $data.tableColumns[recordIndexs[0]].ellipsis,
|
|
279
|
+
"onUpdate:checked": ($event) => $data.tableColumns[recordIndexs[0]].ellipsis = $event
|
|
278
280
|
}, null, 8, ["checked", "onUpdate:checked"])) : createCommentVNode("", true),
|
|
279
281
|
column.dataIndex === "fixed" ? (openBlock(), createBlock(_component_a_select, {
|
|
280
282
|
key: 7,
|
|
281
|
-
value: $
|
|
282
|
-
"onUpdate:value": ($event) => $
|
|
283
|
+
value: $data.tableColumns[recordIndexs[0]].fixed,
|
|
284
|
+
"onUpdate:value": ($event) => $data.tableColumns[recordIndexs[0]].fixed = $event,
|
|
283
285
|
allowClear: "",
|
|
284
286
|
style: {}
|
|
285
287
|
}, {
|
|
@@ -302,8 +304,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
302
304
|
column.dataIndex === "align" ? (openBlock(), createBlock(_component_a_select, {
|
|
303
305
|
key: 8,
|
|
304
306
|
style: {},
|
|
305
|
-
value: $
|
|
306
|
-
"onUpdate:value": ($event) => $
|
|
307
|
+
value: $data.tableColumns[recordIndexs[0]].align,
|
|
308
|
+
"onUpdate:value": ($event) => $data.tableColumns[recordIndexs[0]].align = $event,
|
|
307
309
|
options: $data.alignOptions
|
|
308
310
|
}, null, 8, ["value", "onUpdate:value", "options"])) : createCommentVNode("", true),
|
|
309
311
|
column.dataIndex === "customRender" ? (openBlock(), createBlock(_component_a_button, {
|
|
@@ -358,11 +360,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
358
360
|
onSave: $options.saveColumnRender,
|
|
359
361
|
ref: "CodeModalEditorRef",
|
|
360
362
|
title: _ctx.i18nt("designer.setting.renderFunction"),
|
|
361
|
-
"
|
|
363
|
+
"fn-params": "scope"
|
|
362
364
|
}, null, 8, ["onSave", "title"])
|
|
363
365
|
], 64);
|
|
364
366
|
}
|
|
365
|
-
const dataTableTableColumnsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
367
|
+
const dataTableTableColumnsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-af4cd3cd"]]);
|
|
366
368
|
export {
|
|
367
369
|
dataTableTableColumnsEditor as default
|
|
368
370
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import i18n from "../../../../../utils/i18n.js";
|
|
2
|
-
import
|
|
2
|
+
import _sfc_main$1 from "../../../../code-editor/code-modal-editor.vue.js";
|
|
3
3
|
import { resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
4
4
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const _sfc_main = {
|
|
6
6
|
name: "menuList-editor",
|
|
7
7
|
mixins: [i18n],
|
|
8
|
-
components: { CodeModalEditor },
|
|
8
|
+
components: { CodeModalEditor: _sfc_main$1 },
|
|
9
9
|
props: {
|
|
10
10
|
designer: Object,
|
|
11
11
|
selectedWidget: Object,
|
|
@@ -15,8 +15,14 @@ const _sfc_main = {
|
|
|
15
15
|
mixins: [i18n],
|
|
16
16
|
components: {
|
|
17
17
|
VFormRender: defineAsyncComponent(() => import("../../../../render.js")),
|
|
18
|
-
CodeEditor: defineAsyncComponent(() =>
|
|
19
|
-
|
|
18
|
+
CodeEditor: defineAsyncComponent(async () => {
|
|
19
|
+
const { TpfCodeEditor } = await import("tmgc2-share");
|
|
20
|
+
return TpfCodeEditor;
|
|
21
|
+
}),
|
|
22
|
+
TpfModal: defineAsyncComponent(async () => {
|
|
23
|
+
const { TpfModal } = await import("tmgc2-share");
|
|
24
|
+
return TpfModal;
|
|
25
|
+
}),
|
|
20
26
|
SvgIcon
|
|
21
27
|
},
|
|
22
28
|
props: {
|
|
@@ -513,9 +519,6 @@ const _hoisted_4 = { class: "right-toolbar-con" };
|
|
|
513
519
|
const _hoisted_5 = { class: "dialog-footer" };
|
|
514
520
|
const _hoisted_6 = { class: "dialog-footer" };
|
|
515
521
|
const _hoisted_7 = { class: "dialog-footer" };
|
|
516
|
-
const _hoisted_8 = { style: { "border": "1px solid #dcdfe6" } };
|
|
517
|
-
const _hoisted_9 = { class: "dialog-footer" };
|
|
518
|
-
const _hoisted_10 = { class: "dialog-footer" };
|
|
519
522
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
520
523
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
521
524
|
const _component_a_button = resolveComponent("a-button");
|
|
@@ -524,9 +527,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
524
527
|
const _component_a_tree = resolveComponent("a-tree");
|
|
525
528
|
const _component_a_drawer = resolveComponent("a-drawer");
|
|
526
529
|
const _component_VFormRender = resolveComponent("VFormRender");
|
|
527
|
-
const
|
|
530
|
+
const _component_TpfModal = resolveComponent("TpfModal");
|
|
528
531
|
const _component_a_alert = resolveComponent("a-alert");
|
|
529
532
|
const _component_code_editor = resolveComponent("code-editor");
|
|
533
|
+
const _component_a_modal = resolveComponent("a-modal");
|
|
534
|
+
const _component_CodeEditor = resolveComponent("CodeEditor");
|
|
530
535
|
const _component_a_tab_pane = resolveComponent("a-tab-pane");
|
|
531
536
|
const _component_a_tabs = resolveComponent("a-tabs");
|
|
532
537
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -697,7 +702,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
697
702
|
}), 256))
|
|
698
703
|
])
|
|
699
704
|
]),
|
|
700
|
-
createVNode(
|
|
705
|
+
createVNode(_component_TpfModal, {
|
|
701
706
|
title: _ctx.i18nt("designer.toolbar.preview"),
|
|
702
707
|
visible: $data.showPreviewDialogFlag,
|
|
703
708
|
"onUpdate:visible": _cache[8] || (_cache[8] = ($event) => $data.showPreviewDialogFlag = $event),
|
|
@@ -711,59 +716,57 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
711
716
|
width: "75%",
|
|
712
717
|
fullscreen: $options.layoutType === "H5" || $options.layoutType === "Pad"
|
|
713
718
|
}, {
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
})
|
|
766
|
-
])
|
|
719
|
+
footerRight: withCtx(() => [
|
|
720
|
+
createVNode(_component_a_button, { onClick: $options.showData }, {
|
|
721
|
+
default: withCtx(() => _cache[24] || (_cache[24] = [
|
|
722
|
+
createTextVNode("数据回显")
|
|
723
|
+
])),
|
|
724
|
+
_: 1
|
|
725
|
+
}, 8, ["onClick"]),
|
|
726
|
+
createVNode(_component_a_button, {
|
|
727
|
+
type: "primary",
|
|
728
|
+
onClick: $options.getFormData
|
|
729
|
+
}, {
|
|
730
|
+
default: withCtx(() => [
|
|
731
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.getFormData")), 1)
|
|
732
|
+
]),
|
|
733
|
+
_: 1
|
|
734
|
+
}, 8, ["onClick"]),
|
|
735
|
+
createVNode(_component_a_button, {
|
|
736
|
+
type: "primary",
|
|
737
|
+
onClick: $options.resetForm
|
|
738
|
+
}, {
|
|
739
|
+
default: withCtx(() => [
|
|
740
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.resetForm")), 1)
|
|
741
|
+
]),
|
|
742
|
+
_: 1
|
|
743
|
+
}, 8, ["onClick"]),
|
|
744
|
+
createVNode(_component_a_button, {
|
|
745
|
+
type: "primary",
|
|
746
|
+
onClick: $options.setFormDisabled
|
|
747
|
+
}, {
|
|
748
|
+
default: withCtx(() => [
|
|
749
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.disableForm")), 1)
|
|
750
|
+
]),
|
|
751
|
+
_: 1
|
|
752
|
+
}, 8, ["onClick"]),
|
|
753
|
+
createVNode(_component_a_button, {
|
|
754
|
+
type: "primary",
|
|
755
|
+
onClick: $options.setFormEnabled
|
|
756
|
+
}, {
|
|
757
|
+
default: withCtx(() => [
|
|
758
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.enableForm")), 1)
|
|
759
|
+
]),
|
|
760
|
+
_: 1
|
|
761
|
+
}, 8, ["onClick"]),
|
|
762
|
+
createVNode(_component_a_button, {
|
|
763
|
+
onClick: _cache[7] || (_cache[7] = ($event) => $data.showPreviewDialogFlag = false)
|
|
764
|
+
}, {
|
|
765
|
+
default: withCtx(() => [
|
|
766
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.closePreview")), 1)
|
|
767
|
+
]),
|
|
768
|
+
_: 1
|
|
769
|
+
})
|
|
767
770
|
]),
|
|
768
771
|
default: withCtx(() => [
|
|
769
772
|
createElementVNode("div", null, [
|
|
@@ -804,7 +807,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
804
807
|
"destroy-on-close": true
|
|
805
808
|
}, {
|
|
806
809
|
footer: withCtx(() => [
|
|
807
|
-
createElementVNode("div",
|
|
810
|
+
createElementVNode("div", _hoisted_5, [
|
|
808
811
|
createVNode(_component_a_button, {
|
|
809
812
|
type: "primary",
|
|
810
813
|
onClick: $options.doJsonImport
|
|
@@ -854,7 +857,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
854
857
|
"destroy-on-close": true
|
|
855
858
|
}, {
|
|
856
859
|
footer: withCtx(() => [
|
|
857
|
-
createElementVNode("div",
|
|
860
|
+
createElementVNode("div", _hoisted_6, [
|
|
858
861
|
createVNode(_component_a_button, {
|
|
859
862
|
type: "primary",
|
|
860
863
|
class: "copy-json-btn",
|
|
@@ -892,56 +895,46 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
892
895
|
]),
|
|
893
896
|
_: 1
|
|
894
897
|
}, 8, ["title", "visible"]),
|
|
895
|
-
createVNode(
|
|
898
|
+
createVNode(_component_TpfModal, {
|
|
896
899
|
title: _ctx.i18nt("designer.hint.exportFormData"),
|
|
897
900
|
visible: $data.showFormDataDialogFlag,
|
|
898
901
|
"onUpdate:visible": _cache[17] || (_cache[17] = ($event) => $data.showFormDataDialogFlag = $event),
|
|
899
|
-
"
|
|
900
|
-
class: "nested-drag-dialog dialog-title-light-bg",
|
|
901
|
-
center: "",
|
|
902
|
-
"close-on-click-modal": false,
|
|
903
|
-
"close-on-press-escape": false,
|
|
904
|
-
"destroy-on-close": true,
|
|
905
|
-
"append-to-body": true
|
|
902
|
+
width: "1200px"
|
|
906
903
|
}, {
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
})
|
|
934
|
-
])
|
|
904
|
+
footerRight: withCtx(() => [
|
|
905
|
+
createVNode(_component_a_button, {
|
|
906
|
+
type: "primary",
|
|
907
|
+
class: "copy-form-data-json-btn",
|
|
908
|
+
"data-clipboard-text": $data.formDataRawJson,
|
|
909
|
+
onClick: $options.copyFormDataJson
|
|
910
|
+
}, {
|
|
911
|
+
default: withCtx(() => [
|
|
912
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.copyFormData")), 1)
|
|
913
|
+
]),
|
|
914
|
+
_: 1
|
|
915
|
+
}, 8, ["data-clipboard-text", "onClick"]),
|
|
916
|
+
createVNode(_component_a_button, { onClick: $options.saveFormData }, {
|
|
917
|
+
default: withCtx(() => [
|
|
918
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.saveFormData")), 1)
|
|
919
|
+
]),
|
|
920
|
+
_: 1
|
|
921
|
+
}, 8, ["onClick"]),
|
|
922
|
+
createVNode(_component_a_button, {
|
|
923
|
+
onClick: _cache[16] || (_cache[16] = ($event) => $data.showFormDataDialogFlag = false)
|
|
924
|
+
}, {
|
|
925
|
+
default: withCtx(() => [
|
|
926
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.closePreview")), 1)
|
|
927
|
+
]),
|
|
928
|
+
_: 1
|
|
929
|
+
})
|
|
935
930
|
]),
|
|
936
931
|
default: withCtx(() => [
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
}, null, 8, ["modelValue"])
|
|
944
|
-
])
|
|
932
|
+
createVNode(_component_CodeEditor, {
|
|
933
|
+
mode: "json",
|
|
934
|
+
readonly: true,
|
|
935
|
+
modelValue: $data.formDataJson,
|
|
936
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => $data.formDataJson = $event)
|
|
937
|
+
}, null, 8, ["modelValue"])
|
|
945
938
|
]),
|
|
946
939
|
_: 1
|
|
947
940
|
}, 8, ["title", "visible"]),
|
|
@@ -960,7 +953,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
960
953
|
"destroy-on-close": true
|
|
961
954
|
}, {
|
|
962
955
|
footer: withCtx(() => [
|
|
963
|
-
createElementVNode("div",
|
|
956
|
+
createElementVNode("div", _hoisted_7, [
|
|
964
957
|
createVNode(_component_a_button, {
|
|
965
958
|
type: "primary",
|
|
966
959
|
class: "copy-vue2-sfc-btn",
|
|
@@ -1051,7 +1044,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1051
1044
|
}, 8, ["title", "visible"])) : createCommentVNode("", true)
|
|
1052
1045
|
]);
|
|
1053
1046
|
}
|
|
1054
|
-
const ToolbarPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
1047
|
+
const ToolbarPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c255c476"]]);
|
|
1055
1048
|
export {
|
|
1056
1049
|
ToolbarPanel as default
|
|
1057
1050
|
};
|
|
@@ -164,7 +164,9 @@ const _sfc_main = {
|
|
|
164
164
|
if (modifiedFlag) {
|
|
165
165
|
this.designer.emitHistoryChange();
|
|
166
166
|
}
|
|
167
|
-
this.$message.success(
|
|
167
|
+
this.$message.success(
|
|
168
|
+
this.i18nt("designer.hint.loadFormTemplateSuccess")
|
|
169
|
+
);
|
|
168
170
|
}).catch((error) => {
|
|
169
171
|
this.$message.error(
|
|
170
172
|
this.i18nt("designer.hint.loadFormTemplateFailed") + ":" + error
|
|
@@ -381,7 +383,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
381
383
|
])
|
|
382
384
|
]);
|
|
383
385
|
}
|
|
384
|
-
const WidgetPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
386
|
+
const WidgetPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-75f46b0a"]]);
|
|
385
387
|
export {
|
|
386
388
|
WidgetPanel as default
|
|
387
389
|
};
|
|
@@ -47,6 +47,10 @@ const _sfc_main = {
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
components: {
|
|
50
|
+
TpfConfigProvider: defineAsyncComponent(async () => {
|
|
51
|
+
const { TpfConfigProvider } = await import("tmgc2-share");
|
|
52
|
+
return TpfConfigProvider;
|
|
53
|
+
}),
|
|
50
54
|
SubmitButtonRender: _sfc_main$1,
|
|
51
55
|
VFormRender: defineAsyncComponent(() => import("../../../render.js"))
|
|
52
56
|
},
|
|
@@ -206,12 +210,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
206
210
|
const _component_VFormRender = resolveComponent("VFormRender");
|
|
207
211
|
const _component_SubmitButtonRender = resolveComponent("SubmitButtonRender");
|
|
208
212
|
const _component_a_modal = resolveComponent("a-modal");
|
|
209
|
-
const
|
|
213
|
+
const _component_TpfConfigProvider = resolveComponent("TpfConfigProvider");
|
|
210
214
|
const _directive_loading = resolveDirective("loading");
|
|
211
|
-
return openBlock(), createBlock(
|
|
212
|
-
locale: $options.elLocale,
|
|
213
|
-
input: { autocomplete: "off" }
|
|
214
|
-
}, {
|
|
215
|
+
return openBlock(), createBlock(_component_TpfConfigProvider, null, {
|
|
215
216
|
default: withCtx(() => [
|
|
216
217
|
createVNode(_component_a_modal, mergeProps({
|
|
217
218
|
class: "tpf-model design-model",
|
|
@@ -268,7 +269,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
268
269
|
}, 16, ["transitionName", "maskTransitionName", "title", "bodyStyle", "visible", "width", "mask", "maskClosable", "keyboard", "onCancel"])
|
|
269
270
|
]),
|
|
270
271
|
_: 1
|
|
271
|
-
}
|
|
272
|
+
});
|
|
272
273
|
}
|
|
273
274
|
const DynamicDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
274
275
|
export {
|
|
@@ -43,6 +43,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43
43
|
visible: $data.showDataSourceDialogFlag,
|
|
44
44
|
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => $data.showDataSourceDialogFlag = $event),
|
|
45
45
|
width: 520,
|
|
46
|
+
"z-index": "800",
|
|
46
47
|
"destroy-on-close": true,
|
|
47
48
|
"append-to-body": true,
|
|
48
49
|
"close-on-click-modal": false,
|
|
@@ -435,20 +436,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
435
436
|
_: 1
|
|
436
437
|
}, 8, ["title", "visible"]),
|
|
437
438
|
createVNode(_component_CodeModalEditor, {
|
|
438
|
-
modelValue: $props.optionModel.dataReqHandlerCode,
|
|
439
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $props.optionModel.dataReqHandlerCode = $event),
|
|
440
439
|
ref: "CodeReqModalEditorRef",
|
|
441
|
-
"event-header":
|
|
440
|
+
"event-header": "data",
|
|
441
|
+
modelValue: $props.optionModel.dataReqHandlerCode,
|
|
442
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $props.optionModel.dataReqHandlerCode = $event)
|
|
442
443
|
}, null, 8, ["modelValue"]),
|
|
443
444
|
createVNode(_component_CodeModalEditor, {
|
|
444
445
|
modelValue: $props.optionModel.dataHandlerCode,
|
|
445
446
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $props.optionModel.dataHandlerCode = $event),
|
|
446
447
|
ref: "CodeModalEditorRef",
|
|
447
|
-
"
|
|
448
|
+
"fn-params": "data"
|
|
448
449
|
}, null, 8, ["modelValue"])
|
|
449
450
|
], 64);
|
|
450
451
|
}
|
|
451
|
-
const HttpEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
452
|
+
const HttpEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9bdddc38"]]);
|
|
452
453
|
export {
|
|
453
454
|
HttpEditor as default
|
|
454
455
|
};
|