@kp-ui/lowcode 1.0.67 → 1.0.69
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/packages/tmgc2-share/src/components/TpfCodeEditor/code-editor.vue.js +7 -0
- package/packages/tmgc2-share/src/components/TpfCodeEditor/code-editor.vue2.js +164 -0
- package/packages/tmgc2-share/src/components/TpfModal/index.vue.js +7 -0
- package/packages/tmgc2-share/src/components/TpfModal/index.vue2.js +173 -0
- package/packages/tmgc2-share/src/components/TpfModal/index.vue3.js +1 -0
- package/render.js +6 -7
- 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/container-widget/data-table-widget.vue.js +40 -37
- package/src/components/form-designer/form-widget/index.vue.js +5 -3
- package/src/components/form-designer/setting-panel/form-setting.vue.js +1 -1
- package/src/components/form-designer/setting-panel/index.vue.js +35 -80
- 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 +89 -91
- 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 +99 -108
- package/src/components/form-designer/widget-panel/index.vue.js +4 -2
- package/src/components/form-render/dynamic-dialog.vue.js +5 -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/lang/zh-CN.js +1 -1
- package/src/mixins/useDataTableMixin.js +10 -1
- 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,7 +1,8 @@
|
|
|
1
1
|
import _sfc_main from "./data-table-widget.vue2.js";
|
|
2
|
-
import { resolveComponent, createBlock, openBlock,
|
|
2
|
+
import { resolveComponent, createBlock, openBlock, withCtx, createElementBlock, withModifiers, normalizeClass, createElementVNode, createVNode, normalizeStyle, createCommentVNode } from "vue";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const _hoisted_1 = { class: "talbe-wrapper" };
|
|
5
6
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6
7
|
const _component_a_empty = resolveComponent("a-empty");
|
|
7
8
|
const _component_RenderBodyCell = resolveComponent("RenderBodyCell");
|
|
@@ -12,8 +13,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12
13
|
widget: $props.widget,
|
|
13
14
|
"parent-widget": $props.parentWidget,
|
|
14
15
|
"parent-list": $props.parentList,
|
|
15
|
-
"index-of-parent-list": $props.indexOfParentList
|
|
16
|
-
style: normalizeStyle({ display: "flex", minWidth: 0, height: parseFloat(_ctx.tableHeight || 0) + "px" })
|
|
16
|
+
"index-of-parent-list": $props.indexOfParentList
|
|
17
17
|
}, {
|
|
18
18
|
default: withCtx(() => [
|
|
19
19
|
(openBlock(), createElementBlock("div", {
|
|
@@ -21,44 +21,47 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21
21
|
class: normalizeClass(["collapse-container data-table-container", { selected: $options.selected }]),
|
|
22
22
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => $options.selectWidget($props.widget), ["stop"]))
|
|
23
23
|
}, [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
24
|
+
createElementVNode("div", _hoisted_1, [
|
|
25
|
+
createVNode(_component_s_table, {
|
|
26
|
+
ref: "dataTable2",
|
|
27
|
+
columns: _ctx.columns.columns,
|
|
28
|
+
scroll: { y: _ctx.tableHeight },
|
|
29
|
+
height: _ctx.tableHeight,
|
|
30
|
+
dataSource: $options.data,
|
|
31
|
+
class: normalizeClass([_ctx.customClass]),
|
|
32
|
+
size: _ctx.widgetSize,
|
|
33
|
+
rowKey: (record) => record[$props.widget.options.rowKey],
|
|
34
|
+
bordered: $props.widget.options.border,
|
|
35
|
+
style: normalizeStyle({ width: $props.widget.options.tableWidth }),
|
|
36
|
+
"row-class-name": _ctx.rowClassName,
|
|
37
|
+
rowSelection: _ctx.handleRowSelection(),
|
|
38
|
+
pagination: _ctx.fmtPagination,
|
|
39
|
+
customRow: _ctx.handleCustomRow,
|
|
40
|
+
rowClassName: _ctx.rowClassName,
|
|
41
|
+
onChange: _ctx.handleTablePageChange,
|
|
42
|
+
onResizeColumn: _ctx.handleResizeColumn,
|
|
43
|
+
loading: _ctx.loading,
|
|
44
|
+
"row-height": _ctx.lineHeight
|
|
45
|
+
}, {
|
|
46
|
+
emptyText: withCtx(() => [
|
|
47
|
+
createVNode(_component_a_empty)
|
|
48
|
+
]),
|
|
49
|
+
bodyCell: withCtx((scope) => [
|
|
50
|
+
_ctx.isShowBodyCell(scope.column.dataIndex) ? (openBlock(), createBlock(_component_RenderBodyCell, {
|
|
51
|
+
key: 0,
|
|
52
|
+
bodyCell: _ctx.columns.bodyCell,
|
|
53
|
+
scope
|
|
54
|
+
}, null, 8, ["bodyCell", "scope"])) : createCommentVNode("", true)
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
}, 8, ["columns", "scroll", "height", "dataSource", "class", "size", "rowKey", "bordered", "style", "row-class-name", "rowSelection", "pagination", "customRow", "rowClassName", "onChange", "onResizeColumn", "loading", "row-height"])
|
|
58
|
+
])
|
|
56
59
|
], 2))
|
|
57
60
|
]),
|
|
58
61
|
_: 1
|
|
59
|
-
}, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"
|
|
62
|
+
}, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
|
|
60
63
|
}
|
|
61
|
-
const dataTableWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
64
|
+
const dataTableWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4700fd96"]]);
|
|
62
65
|
export {
|
|
63
66
|
dataTableWidget as default
|
|
64
67
|
};
|
|
@@ -2,6 +2,7 @@ import comps from "./field-widget/index.js";
|
|
|
2
2
|
import i18n from "../../../utils/i18n.js";
|
|
3
3
|
import draggableComponent from "../../../lib/vuedraggable/src/vuedraggable.js";
|
|
4
4
|
import _sfc_main$1 from "../../form-render/SubmitButtonRender.vue.js";
|
|
5
|
+
import { TpfConfigProvider } from "tmgc2-share";
|
|
5
6
|
import { resolveComponent, createBlock, openBlock, withCtx, createElementVNode, createVNode, normalizeClass, createElementBlock, createCommentVNode, toDisplayString, normalizeStyle, mergeProps, resolveDynamicComponent } from "vue";
|
|
6
7
|
/* empty css */
|
|
7
8
|
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
@@ -11,6 +12,7 @@ const _sfc_main = {
|
|
|
11
12
|
mixins: [i18n],
|
|
12
13
|
components: {
|
|
13
14
|
Draggable: draggableComponent,
|
|
15
|
+
TpfConfigProvider,
|
|
14
16
|
SubmitButtonRender: _sfc_main$1,
|
|
15
17
|
...comps
|
|
16
18
|
},
|
|
@@ -154,8 +156,8 @@ const _hoisted_3 = { class: "transition-group-el" };
|
|
|
154
156
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
155
157
|
const _component_draggable = resolveComponent("draggable");
|
|
156
158
|
const _component_a_form = resolveComponent("a-form");
|
|
157
|
-
const
|
|
158
|
-
return openBlock(), createBlock(
|
|
159
|
+
const _component_TpfConfigProvider = resolveComponent("TpfConfigProvider");
|
|
160
|
+
return openBlock(), createBlock(_component_TpfConfigProvider, {
|
|
159
161
|
"component-size": $options.size,
|
|
160
162
|
input: { autocomplete: "off" }
|
|
161
163
|
}, {
|
|
@@ -217,7 +219,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
217
219
|
_: 1
|
|
218
220
|
}, 8, ["component-size"]);
|
|
219
221
|
}
|
|
220
|
-
const VFormWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
222
|
+
const VFormWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4011cefc"]]);
|
|
221
223
|
export {
|
|
222
224
|
VFormWidget as default
|
|
223
225
|
};
|
|
@@ -523,7 +523,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
523
523
|
])) : createCommentVNode("", true)
|
|
524
524
|
]);
|
|
525
525
|
}
|
|
526
|
-
const FormSetting = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
526
|
+
const FormSetting = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-becbd35b"]]);
|
|
527
527
|
export {
|
|
528
528
|
FormSetting as default
|
|
529
529
|
};
|
|
@@ -6,7 +6,9 @@ import WidgetProperties, { propertyRegistered } from "./propertyRegister.js";
|
|
|
6
6
|
import { addWindowResizeHandler } from "../../../utils/util.js";
|
|
7
7
|
import i18n from "../../../utils/i18n.js";
|
|
8
8
|
import emitter from "../../../utils/emitter.js";
|
|
9
|
-
import
|
|
9
|
+
import _sfc_main$1 from "../../code-editor/code-modal-editor.vue.js";
|
|
10
|
+
import { TpfConfigProvider } from "tmgc2-share";
|
|
11
|
+
import { resolveComponent, createBlock, openBlock, withCtx, createVNode, createCommentVNode, createElementVNode, normalizeStyle, withModifiers, createElementBlock, Fragment, renderList, resolveDynamicComponent } from "vue";
|
|
10
12
|
/* empty css */
|
|
11
13
|
/* empty css */
|
|
12
14
|
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
@@ -17,7 +19,9 @@ const _sfc_main = {
|
|
|
17
19
|
mixins: [i18n, emitter],
|
|
18
20
|
components: {
|
|
19
21
|
CodeEditor,
|
|
22
|
+
TpfConfigProvider,
|
|
20
23
|
FormSetting,
|
|
24
|
+
CodeModalEditor: _sfc_main$1,
|
|
21
25
|
// DataSourceSetting,
|
|
22
26
|
FormCrudSetting,
|
|
23
27
|
...comps
|
|
@@ -167,10 +171,11 @@ const _sfc_main = {
|
|
|
167
171
|
if (eventName === "onValidate" && !this.optionModel["onValidate"]) {
|
|
168
172
|
this.eventHandlerCode = " /* sample code */\n /*\n if ((value > 100) || (value < 0)) {\n return Promise.reject('error message') //fail\n } else {\n return Promise.resolve(); //pass\n }\n */";
|
|
169
173
|
}
|
|
170
|
-
this.
|
|
174
|
+
console.log(this.eventHandlerCode);
|
|
175
|
+
this.$refs.CodeModalEditorRef.open(this.eventHandlerCode);
|
|
171
176
|
},
|
|
172
|
-
saveEventHandler() {
|
|
173
|
-
const codeHints = this.$refs.ecEditor.getEditorAnnotations();
|
|
177
|
+
saveEventHandler(value) {
|
|
178
|
+
const codeHints = this.$refs.CodeModalEditorRef.codeEditorRef.ecEditor.getEditorAnnotations();
|
|
174
179
|
let syntaxErrorFlag = false;
|
|
175
180
|
if (!!codeHints && codeHints.length > 0) {
|
|
176
181
|
codeHints.forEach((chItem) => {
|
|
@@ -185,15 +190,13 @@ const _sfc_main = {
|
|
|
185
190
|
}
|
|
186
191
|
if (this.curEventName.includes(".")) {
|
|
187
192
|
const [a, b] = this.curEventName.split(".");
|
|
188
|
-
this.selectedWidget.options[a][b] =
|
|
193
|
+
this.selectedWidget.options[a][b] = value;
|
|
189
194
|
} else {
|
|
190
|
-
this.selectedWidget.options[this.curEventName] =
|
|
195
|
+
this.selectedWidget.options[this.curEventName] = value;
|
|
191
196
|
}
|
|
192
|
-
this.showWidgetEventDialogFlag = false;
|
|
193
197
|
}
|
|
194
198
|
}
|
|
195
199
|
};
|
|
196
|
-
const _hoisted_1 = { class: "dialog-footer" };
|
|
197
200
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
198
201
|
const _component_a_collapse_panel = resolveComponent("a-collapse-panel");
|
|
199
202
|
const _component_a_collapse = resolveComponent("a-collapse");
|
|
@@ -203,22 +206,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
203
206
|
const _component_form_setting = resolveComponent("form-setting");
|
|
204
207
|
const _component_FormCrudSetting = resolveComponent("FormCrudSetting");
|
|
205
208
|
const _component_a_tabs = resolveComponent("a-tabs");
|
|
206
|
-
const
|
|
207
|
-
const _component_code_editor = resolveComponent("code-editor");
|
|
208
|
-
const _component_a_button = resolveComponent("a-button");
|
|
209
|
-
const _component_a_modal = resolveComponent("a-modal");
|
|
209
|
+
const _component_CodeModalEditor = resolveComponent("CodeModalEditor");
|
|
210
210
|
const _component_a_layout = resolveComponent("a-layout");
|
|
211
|
-
const
|
|
212
|
-
return openBlock(), createBlock(
|
|
213
|
-
"component-size": "small",
|
|
214
|
-
input: { autocomplete: "off" }
|
|
215
|
-
}, {
|
|
211
|
+
const _component_TpfConfigProvider = resolveComponent("TpfConfigProvider");
|
|
212
|
+
return openBlock(), createBlock(_component_TpfConfigProvider, null, {
|
|
216
213
|
default: withCtx(() => [
|
|
217
214
|
createVNode(_component_a_layout, { class: "panel-container" }, {
|
|
218
215
|
default: withCtx(() => [
|
|
219
216
|
createVNode(_component_a_tabs, {
|
|
220
217
|
activeKey: $data.activeTab,
|
|
221
|
-
"onUpdate:activeKey": _cache[
|
|
218
|
+
"onUpdate:activeKey": _cache[6] || (_cache[6] = ($event) => $data.activeTab = $event),
|
|
222
219
|
style: { "height": "100%", "width": "100%", "overflow": "hidden" }
|
|
223
220
|
}, {
|
|
224
221
|
default: withCtx(() => [
|
|
@@ -237,13 +234,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
237
234
|
labelAlign: "left",
|
|
238
235
|
"label-width": "120px",
|
|
239
236
|
class: "setting-form tpf-form",
|
|
240
|
-
onSubmit: _cache[
|
|
237
|
+
onSubmit: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
241
238
|
}, ["prevent"]))
|
|
242
239
|
}, {
|
|
243
240
|
default: withCtx(() => [
|
|
244
241
|
createVNode(_component_a_collapse, {
|
|
245
242
|
activeKey: $data.widgetActiveCollapseNames,
|
|
246
|
-
"onUpdate:activeKey": _cache[
|
|
243
|
+
"onUpdate:activeKey": _cache[1] || (_cache[1] = ($event) => $data.widgetActiveCollapseNames = $event),
|
|
247
244
|
class: "setting-collapse"
|
|
248
245
|
}, {
|
|
249
246
|
default: withCtx(() => [
|
|
@@ -258,8 +255,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
258
255
|
key: propName,
|
|
259
256
|
designer: $props.designer,
|
|
260
257
|
"selected-widget": $props.selectedWidget,
|
|
261
|
-
"option-model": $options.optionModel
|
|
262
|
-
|
|
258
|
+
"option-model": $options.optionModel,
|
|
259
|
+
"onUpdate:optionModel": _cache[0] || (_cache[0] = ($event) => $options.optionModel = $event)
|
|
260
|
+
}, null, 40, ["designer", "selected-widget", "option-model"])) : createCommentVNode("", true)
|
|
263
261
|
], 64);
|
|
264
262
|
}), 256))
|
|
265
263
|
]),
|
|
@@ -285,6 +283,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
285
283
|
}, 8, ["header"])) : createCommentVNode("", true),
|
|
286
284
|
$options.showEventCollapse() && $options.showCollapse($data.eventProps) ? (openBlock(), createBlock(_component_a_collapse_panel, {
|
|
287
285
|
key: "3",
|
|
286
|
+
class: "eventPanel",
|
|
288
287
|
header: _ctx.i18nt("designer.setting.事件属性")
|
|
289
288
|
}, {
|
|
290
289
|
default: withCtx(() => [
|
|
@@ -314,13 +313,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
314
313
|
labelAlign: "left",
|
|
315
314
|
"label-width": "120px",
|
|
316
315
|
class: "setting-form tpf-form",
|
|
317
|
-
onSubmit: _cache[
|
|
316
|
+
onSubmit: _cache[5] || (_cache[5] = withModifiers(() => {
|
|
318
317
|
}, ["prevent"]))
|
|
319
318
|
}, {
|
|
320
319
|
default: withCtx(() => [
|
|
321
320
|
createVNode(_component_a_collapse, {
|
|
322
321
|
activeKey: $data.widgetActiveCollapseNames,
|
|
323
|
-
"onUpdate:activeKey": _cache[
|
|
322
|
+
"onUpdate:activeKey": _cache[4] || (_cache[4] = ($event) => $data.widgetActiveCollapseNames = $event),
|
|
324
323
|
class: "setting-collapse"
|
|
325
324
|
}, {
|
|
326
325
|
default: withCtx(() => [
|
|
@@ -335,8 +334,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
335
334
|
key: propName,
|
|
336
335
|
designer: $props.designer,
|
|
337
336
|
"selected-widget": $props.selectedWidget,
|
|
338
|
-
"option-model": $options.optionModel
|
|
339
|
-
|
|
337
|
+
"option-model": $options.optionModel,
|
|
338
|
+
"onUpdate:optionModel": _cache[3] || (_cache[3] = ($event) => $options.optionModel = $event)
|
|
339
|
+
}, null, 40, ["designer", "selected-widget", "option-model"])) : createCommentVNode("", true)
|
|
340
340
|
], 64);
|
|
341
341
|
}), 256))
|
|
342
342
|
]),
|
|
@@ -362,6 +362,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
362
362
|
}, 8, ["header"])) : createCommentVNode("", true),
|
|
363
363
|
$options.showEventCollapse() && $options.showCollapse($data.eventProps) ? (openBlock(), createBlock(_component_a_collapse_panel, {
|
|
364
364
|
key: "3",
|
|
365
|
+
class: "eventPanel",
|
|
365
366
|
header: _ctx.i18nt("designer.setting.事件属性")
|
|
366
367
|
}, {
|
|
367
368
|
default: withCtx(() => [
|
|
@@ -430,60 +431,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
430
431
|
]),
|
|
431
432
|
_: 1
|
|
432
433
|
}, 8, ["activeKey"]),
|
|
433
|
-
createVNode(
|
|
434
|
+
createVNode(_component_CodeModalEditor, {
|
|
435
|
+
eventHeader: $data.eventHeader,
|
|
436
|
+
ref: "CodeModalEditorRef",
|
|
434
437
|
title: _ctx.i18nt("designer.setting.editWidgetEventHandler"),
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
"append-to-body": "",
|
|
440
|
-
"close-on-click-modal": false,
|
|
441
|
-
"close-on-press-escape": false,
|
|
442
|
-
"destroy-on-close": true,
|
|
443
|
-
width: 800
|
|
444
|
-
}, {
|
|
445
|
-
footer: withCtx(() => [
|
|
446
|
-
createElementVNode("div", _hoisted_1, [
|
|
447
|
-
createVNode(_component_a_button, {
|
|
448
|
-
onClick: _cache[6] || (_cache[6] = ($event) => $data.showWidgetEventDialogFlag = false)
|
|
449
|
-
}, {
|
|
450
|
-
default: withCtx(() => [
|
|
451
|
-
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.cancel")), 1)
|
|
452
|
-
]),
|
|
453
|
-
_: 1
|
|
454
|
-
}),
|
|
455
|
-
createVNode(_component_a_button, {
|
|
456
|
-
type: "primary",
|
|
457
|
-
onClick: $options.saveEventHandler
|
|
458
|
-
}, {
|
|
459
|
-
default: withCtx(() => [
|
|
460
|
-
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.confirm")), 1)
|
|
461
|
-
]),
|
|
462
|
-
_: 1
|
|
463
|
-
}, 8, ["onClick"])
|
|
464
|
-
])
|
|
465
|
-
]),
|
|
466
|
-
default: withCtx(() => [
|
|
467
|
-
createVNode(_component_a_alert, {
|
|
468
|
-
type: "info",
|
|
469
|
-
closable: false,
|
|
470
|
-
message: $data.eventHeader
|
|
471
|
-
}, null, 8, ["message"]),
|
|
472
|
-
createVNode(_component_code_editor, {
|
|
473
|
-
mode: "javascript",
|
|
474
|
-
readonly: false,
|
|
475
|
-
modelValue: $data.eventHandlerCode,
|
|
476
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $data.eventHandlerCode = $event),
|
|
477
|
-
ref: "ecEditor"
|
|
478
|
-
}, null, 8, ["modelValue"]),
|
|
479
|
-
createVNode(_component_a_alert, {
|
|
480
|
-
type: "info",
|
|
481
|
-
closable: false,
|
|
482
|
-
message: "}"
|
|
483
|
-
})
|
|
484
|
-
]),
|
|
485
|
-
_: 1
|
|
486
|
-
}, 8, ["title", "visible"])
|
|
438
|
+
mode: "json",
|
|
439
|
+
readonly: false,
|
|
440
|
+
onSave: $options.saveEventHandler
|
|
441
|
+
}, null, 8, ["eventHeader", "title", "onSave"])
|
|
487
442
|
]),
|
|
488
443
|
_: 1
|
|
489
444
|
})
|
|
@@ -491,7 +446,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
491
446
|
_: 1
|
|
492
447
|
});
|
|
493
448
|
}
|
|
494
|
-
const SettingPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
449
|
+
const SettingPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-63b257d3"]]);
|
|
495
450
|
export {
|
|
496
451
|
SettingPanel as default
|
|
497
452
|
};
|
package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 { generateId } from "../../../../utils/util.js";
|
|
4
4
|
import { cloneDeep } from "lodash-es";
|
|
5
5
|
import ActionButtonListDialog from "../../../public/ActionButtonListDialog.vue.js";
|
|
@@ -16,7 +16,7 @@ const _sfc_main = {
|
|
|
16
16
|
},
|
|
17
17
|
components: {
|
|
18
18
|
ActionButtonListDialog,
|
|
19
|
-
CodeModalEditor
|
|
19
|
+
CodeModalEditor: _sfc_main$1
|
|
20
20
|
},
|
|
21
21
|
data() {
|
|
22
22
|
return {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import i18n from "../../../../../utils/i18n.js";
|
|
2
2
|
import HttpEditor from "../../../../http-editor/index.vue.js";
|
|
3
|
-
import
|
|
3
|
+
import _sfc_main$1 from "../../../../code-editor/code-modal-editor.vue.js";
|
|
4
4
|
import { resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createBlock, createCommentVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
5
5
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const _sfc_main = {
|
|
7
7
|
name: "data-table-dsEnabled-editor",
|
|
8
8
|
mixins: [i18n],
|
|
9
|
-
components: { HttpEditor, CodeModalEditor },
|
|
9
|
+
components: { HttpEditor, CodeModalEditor: _sfc_main$1 },
|
|
10
10
|
props: {
|
|
11
11
|
designer: Object,
|
|
12
12
|
selectedWidget: Object,
|
|
@@ -18,10 +18,9 @@ const _sfc_main = {
|
|
|
18
18
|
};
|
|
19
19
|
},
|
|
20
20
|
methods: {
|
|
21
|
-
|
|
21
|
+
handleUpdate(value) {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
this.optionModel.dataSource = JSON.parse(data);
|
|
23
|
+
this.optionModel.dataSource = JSON.parse(value);
|
|
25
24
|
} catch (ex) {
|
|
26
25
|
this.$message.error(
|
|
27
26
|
this.i18nt("designer.hint.invalidOptionsData") + ex.message
|
|
@@ -30,6 +29,7 @@ const _sfc_main = {
|
|
|
30
29
|
},
|
|
31
30
|
openTableDataEdit() {
|
|
32
31
|
this.tableDataOptions = JSON.stringify(this.optionModel.dataSource, null, " ");
|
|
32
|
+
console.log(this.tableDataOptions);
|
|
33
33
|
this.$refs.CodeModalEditorRef.open(this.tableDataOptions);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -74,8 +74,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74
74
|
ref: "CodeModalEditorRef",
|
|
75
75
|
mode: "json",
|
|
76
76
|
readonly: false,
|
|
77
|
+
isShowEventHeader: false,
|
|
77
78
|
title: _ctx.i18nt("designer.setting.tableDataEdit"),
|
|
78
|
-
onSave: $options.
|
|
79
|
+
onSave: $options.handleUpdate
|
|
79
80
|
}, null, 8, ["title", "onSave"]),
|
|
80
81
|
!!$props.optionModel.dsEnabled ? (openBlock(), createBlock(_component_HttpEditor, {
|
|
81
82
|
key: 1,
|
|
@@ -1,12 +1,12 @@
|
|
|
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, createBlock, createCommentVNode, createTextVNode, normalizeClass, toDisplayString } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const _sfc_main = {
|
|
7
7
|
name: "rowSelection-editor",
|
|
8
8
|
mixins: [i18n],
|
|
9
|
-
components: { CodeModalEditor },
|
|
9
|
+
components: { CodeModalEditor: _sfc_main$1 },
|
|
10
10
|
props: {
|
|
11
11
|
designer: Object,
|
|
12
12
|
selectedWidget: Object,
|