@kp-ui/lowcode 2.14.0-beta → 2.14.0-beta.10

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.
Files changed (117) hide show
  1. package/install.js +26 -25
  2. package/package.json +2 -2
  3. package/src/components/FormRender/useFormRender.js +18 -0
  4. package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue.js +18 -18
  5. package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue2.js +18 -20
  6. package/src/components/form-designer/form-widget/container-widget/index.js +6 -6
  7. package/src/components/form-designer/form-widget/container-widget/vf-box-item.vue.js +9 -9
  8. package/src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue.js +20 -19
  9. package/src/components/form-designer/form-widget/field-widget/cascader-widget.vue.js +32 -39
  10. package/src/components/form-designer/form-widget/field-widget/date-range-widget.vue.js +24 -31
  11. package/src/components/form-designer/form-widget/field-widget/date-widget.vue.js +26 -33
  12. package/src/components/form-designer/form-widget/field-widget/diy-compontent-widget.vue.js +1 -1
  13. package/src/components/form-designer/form-widget/field-widget/fieldMixin.js +4 -1
  14. package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue.js +84 -152
  15. package/src/components/form-designer/form-widget/field-widget/input-widget.vue.js +31 -38
  16. package/src/components/form-designer/form-widget/field-widget/number-widget.vue.js +23 -30
  17. package/src/components/form-designer/form-widget/field-widget/select-widget.vue.js +56 -63
  18. package/src/components/form-designer/form-widget/field-widget/switch-widget.vue.js +1 -1
  19. package/src/components/form-designer/form-widget/field-widget/textarea-widget.vue.js +23 -32
  20. package/src/components/form-designer/form-widget/field-widget/treeSelect-widget.vue.js +26 -33
  21. package/src/components/form-designer/index.vue.js +55 -54
  22. package/src/components/form-designer/setting-panel/form-crud-setting.vue.js +62 -23
  23. package/src/components/form-designer/setting-panel/form-setting.vue.js +2 -2
  24. package/src/components/form-designer/setting-panel/form-setting.vue2.js +81 -94
  25. package/src/components/form-designer/setting-panel/index.vue.js +4 -386
  26. package/src/components/form-designer/setting-panel/index.vue2.js +273 -0
  27. package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue2.js +5 -4
  28. package/src/components/form-designer/setting-panel/property-editor/container-data-table/customRowEvent/data-table-customRow-editor.vue.js +1 -0
  29. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-colorRow-editor.vue2.js +8 -7
  30. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-dsEnabled-editor.vue.js +26 -24
  31. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-pagination-editor.vue.js +1 -0
  32. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-selections-editor.vue2.js +24 -24
  33. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-showButtonsColumn-editor.vue.js +9 -8
  34. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +3 -3
  35. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue2.js +13 -12
  36. package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/bodyStyle-editor.vue2.js +7 -6
  37. package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/line-height-editor.vue2.js +7 -6
  38. package/src/components/form-designer/setting-panel/property-editor/customRender-editor.vue.js +2 -40
  39. package/src/components/form-designer/setting-panel/property-editor/customRender-editor.vue2.js +41 -0
  40. package/src/components/form-designer/setting-panel/property-editor/event-handler/onClickIcon-editor.vue.js +2 -47
  41. package/src/components/form-designer/setting-panel/property-editor/event-handler/onClickIcon-editor.vue2.js +44 -0
  42. package/src/components/form-designer/setting-panel/property-editor/event-handler/onCreated-editor.vue.js +2 -47
  43. package/src/components/form-designer/setting-panel/property-editor/event-handler/onCreated-editor.vue2.js +43 -0
  44. package/src/components/form-designer/setting-panel/property-editor/event-handler/onOkButtonClick-editor.vue.js +2 -46
  45. package/src/components/form-designer/setting-panel/property-editor/event-handler/onOkButtonClick-editor.vue2.js +43 -0
  46. package/src/components/form-designer/setting-panel/property-editor/event-handler/onValidate-editor.vue.js +2 -47
  47. package/src/components/form-designer/setting-panel/property-editor/event-handler/onValidate-editor.vue2.js +44 -0
  48. package/src/components/form-designer/setting-panel/property-editor/field-dropdown/dropdown-menuList-editor.vue.js +2 -66
  49. package/src/components/form-designer/setting-panel/property-editor/field-dropdown/dropdown-menuList-editor.vue2.js +42 -0
  50. package/src/components/form-designer/setting-panel/property-editor/field-html-text/htmlContent-editor.vue.js +5 -4
  51. package/src/components/form-designer/setting-panel/property-editor/hidden-editor.vue.js +6 -5
  52. package/src/components/form-designer/setting-panel/property-editor/index.js +146 -153
  53. package/src/components/form-designer/setting-panel/property-editor/labelIconClass-editor.vue.js +8 -7
  54. package/src/components/form-designer/setting-panel/property-editor/optionItems-editor.vue.js +38 -35
  55. package/src/components/form-designer/setting-panel/propertyRegister.js +3 -18
  56. package/src/components/form-designer/widget-panel/advanced/cascader.js +0 -1
  57. package/src/components/form-designer/widget-panel/advanced/data-table.js +1 -1
  58. package/src/components/form-designer/widget-panel/advanced/file-upload.js +0 -1
  59. package/src/components/form-designer/widget-panel/advanced/rich-editor.js +4 -5
  60. package/src/components/form-designer/widget-panel/advanced/tree-select.js +0 -1
  61. package/src/components/form-designer/widget-panel/basicFields/checkbox.js +2 -3
  62. package/src/components/form-designer/widget-panel/basicFields/color.js +0 -1
  63. package/src/components/form-designer/widget-panel/basicFields/date.js +0 -1
  64. package/src/components/form-designer/widget-panel/basicFields/dateRange.js +0 -1
  65. package/src/components/form-designer/widget-panel/basicFields/input.js +0 -1
  66. package/src/components/form-designer/widget-panel/basicFields/number.js +0 -1
  67. package/src/components/form-designer/widget-panel/basicFields/radio.js +0 -1
  68. package/src/components/form-designer/widget-panel/basicFields/rate.js +5 -6
  69. package/src/components/form-designer/widget-panel/basicFields/select.js +2 -3
  70. package/src/components/form-designer/widget-panel/basicFields/slider.js +0 -1
  71. package/src/components/form-designer/widget-panel/basicFields/switch.js +0 -1
  72. package/src/components/form-designer/widget-panel/basicFields/textarea.js +0 -1
  73. package/src/components/form-designer/widget-panel/basicFields/time.js +0 -1
  74. package/src/components/form-designer/widget-panel/basicFields/timeRange.js +0 -1
  75. package/src/components/form-designer/widget-panel/business/department-select.js +0 -1
  76. package/src/components/form-designer/widget-panel/business/material-select.js +0 -1
  77. package/src/components/form-designer/widget-panel/business/operation-select.js +2 -3
  78. package/src/components/form-designer/widget-panel/business/post-select.js +0 -1
  79. package/src/components/form-designer/widget-panel/business/project-group-select.js +2 -3
  80. package/src/components/form-designer/widget-panel/business/project-select.js +2 -3
  81. package/src/components/form-designer/widget-panel/business/user-select.js +0 -1
  82. package/src/components/form-render/RenderWigetList.vue.js +61 -0
  83. package/src/components/form-render/RenderWigetList.vue2.js +4 -0
  84. package/src/components/form-render/SubmitButtonRender.vue.js +33 -29
  85. package/src/components/form-render/container-item/container-item-wrapper.vue.js +2 -23
  86. package/src/components/form-render/container-item/container-item-wrapper.vue2.js +20 -0
  87. package/src/components/form-render/container-item/data-table-item.vue.js +135 -0
  88. package/src/components/form-render/container-item/grid-col-item.vue.js +149 -0
  89. package/src/components/form-render/container-item/grid-item.vue.js +92 -0
  90. package/src/components/form-render/container-item/grid-sub-form-item.vue.js +319 -0
  91. package/src/components/form-render/container-item/index.js +24 -0
  92. package/src/components/form-render/container-item/sub-form-item.vue.js +398 -0
  93. package/src/components/form-render/container-item/tab-item.vue.js +160 -0
  94. package/src/components/form-render/container-item/table-cell-item.vue.js +95 -0
  95. package/src/components/form-render/container-item/table-item.vue.js +96 -0
  96. package/src/components/form-render/container-item/vf-collapse-item.vue.js +252 -0
  97. package/src/components/form-render/container-item/vf-dialog-item.vue.js +12 -0
  98. package/src/components/form-render/container-item/vf-drawer-item.vue.js +12 -0
  99. package/src/components/form-render/dynamic-dialog.vue.js +66 -81
  100. package/src/components/form-render/index.vue.js +96 -114
  101. package/src/components/http-editor/index.vue.js +10 -10
  102. package/src/components/public/ActionButtonListRender.vue.js +19 -24
  103. package/src/hooks/useLowcode.js +40 -39
  104. package/src/lang/en-US.js +4 -4
  105. package/src/lang/zh-CN.js +3 -4
  106. package/src/mixins/useDataTableMixin.js +18 -23
  107. package/src/utils/useEmitter.js +57 -0
  108. package/src/utils/util.js +50 -49
  109. package/stats.html +1 -1
  110. package/styles/style.css +1 -1
  111. package/src/components/form-designer/setting-panel/property-editor/displayStyle-editor.vue.js +0 -46
  112. package/src/components/form-designer/setting-panel/property-editor/event-handler/onVformAdd-editor.vue.js +0 -49
  113. package/src/components/form-designer/setting-panel/property-editor/labelTooltip-editor.vue.js +0 -31
  114. package/src/components/form-designer/setting-panel/property-editor/multipleSelect-editor.vue.js +0 -30
  115. package/src/components/form-designer/setting-panel/property-editor/uploadTip-editor.vue.js +0 -31
  116. package/src/components/form-designer/setting-panel/property-editor/uploadURL-editor.vue.js +0 -44
  117. package/src/components/form-designer/setting-panel/property-editor/withCredentials-editor.vue.js +0 -30
@@ -1,49 +1,4 @@
1
- import c from "../../../../../utils/i18n.js";
2
- import s from "./eventMixin.js";
3
- import { resolveComponent as n, createBlock as d, openBlock as m, withCtx as o, createVNode as p, normalizeClass as f, createTextVNode as _, toDisplayString as u } from "vue";
4
- import b from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
- const C = {
6
- name: "onClickIcon-editor",
7
- mixins: [c, s],
8
- props: {
9
- designer: Object,
10
- selectedWidget: Object,
11
- optionModel: Object,
12
- eventHandled: {
13
- type: Boolean,
14
- default: !1
15
- }
16
- },
17
- data() {
18
- return {
19
- eventParams: []
20
- };
21
- }
22
- };
23
- function g(e, t, i, k, l, v) {
24
- const r = n("a-button"), a = n("a-form-item");
25
- return m(), d(a, {
26
- label: "onClickIcon",
27
- labelAlign: "left",
28
- "label-width": "150px"
29
- }, {
30
- default: o(() => [
31
- p(r, {
32
- plain: "",
33
- shape: "round",
34
- class: f([i.optionModel.onClickIcon ? "button-text-highlight" : ""]),
35
- onClick: t[0] || (t[0] = (x) => e.editEventHandler("onClickIcon", l.eventParams))
36
- }, {
37
- default: o(() => [
38
- _(u(e.i18nt("designer.setting.addEventHandler")), 1)
39
- ]),
40
- _: 1
41
- }, 8, ["class"])
42
- ]),
43
- _: 1
44
- });
45
- }
46
- const E = /* @__PURE__ */ b(C, [["render", g]]);
1
+ import f from "./onClickIcon-editor.vue2.js";
47
2
  export {
48
- E as default
3
+ f as default
49
4
  };
@@ -0,0 +1,44 @@
1
+ import { defineComponent as s, resolveComponent as t, createBlock as m, openBlock as p, withCtx as e, createVNode as d, unref as n, normalizeClass as u, createTextVNode as _, toDisplayString as f } from "vue";
2
+ import { useI18n as C } from "../../../../../utils/i18n.js";
3
+ import { useEmitter as k } from "../../../../../utils/useEmitter.js";
4
+ const x = /* @__PURE__ */ s({
5
+ name: "onClickIcon-editor",
6
+ __name: "onClickIcon-editor",
7
+ props: {
8
+ optionModel: { default: {
9
+ onClickIcon: ""
10
+ } }
11
+ },
12
+ setup(g) {
13
+ const { i18nt: l } = C(), { onChangeEditEventHandler: i } = k();
14
+ return (a, o) => {
15
+ const r = t("a-button"), c = t("a-form-item");
16
+ return p(), m(c, {
17
+ label: "onClickIcon",
18
+ labelAlign: "left",
19
+ "label-width": "150px"
20
+ }, {
21
+ default: e(() => [
22
+ d(r, {
23
+ plain: "",
24
+ shape: "round",
25
+ class: u([a.optionModel.onClickIcon ? "button-text-highlight" : ""]),
26
+ onClick: o[0] || (o[0] = (I) => n(i)({
27
+ attr: "onClickIcon",
28
+ eventParams: []
29
+ }))
30
+ }, {
31
+ default: e(() => [
32
+ _(f(n(l)("designer.setting.addEventHandler")), 1)
33
+ ]),
34
+ _: 1
35
+ }, 8, ["class"])
36
+ ]),
37
+ _: 1
38
+ });
39
+ };
40
+ }
41
+ });
42
+ export {
43
+ x as default
44
+ };
@@ -1,49 +1,4 @@
1
- import l from "../../../../../utils/i18n.js";
2
- import s from "./eventMixin.js";
3
- import { resolveComponent as n, createBlock as m, openBlock as p, withCtx as o, createVNode as c, normalizeClass as f, createTextVNode as _, toDisplayString as u } from "vue";
4
- import b from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
- const C = {
6
- name: "onCreated-editor",
7
- mixins: [l, s],
8
- props: {
9
- designer: Object,
10
- selectedWidget: Object,
11
- optionModel: Object,
12
- eventHandled: {
13
- type: Boolean,
14
- default: !1
15
- }
16
- },
17
- data() {
18
- return {
19
- eventParams: []
20
- };
21
- }
22
- };
23
- function g(e, t, r, v, a, x) {
24
- const i = n("a-button"), d = n("a-form-item");
25
- return p(), m(d, {
26
- label: "onCreated",
27
- labelAlign: "left",
28
- "label-width": "150px"
29
- }, {
30
- default: o(() => [
31
- c(i, {
32
- plain: "",
33
- shape: "round",
34
- class: f([r.optionModel.onCreated ? "button-text-highlight" : ""]),
35
- onClick: t[0] || (t[0] = (h) => e.editEventHandler("onCreated", a.eventParams))
36
- }, {
37
- default: o(() => [
38
- _(u(e.i18nt("designer.setting.addEventHandler")), 1)
39
- ]),
40
- _: 1
41
- }, 8, ["class"])
42
- ]),
43
- _: 1
44
- });
45
- }
46
- const H = /* @__PURE__ */ b(C, [["render", g]]);
1
+ import f from "./onCreated-editor.vue2.js";
47
2
  export {
48
- H as default
3
+ f as default
49
4
  };
@@ -0,0 +1,43 @@
1
+ import { defineComponent as s, resolveComponent as t, createBlock as p, openBlock as m, withCtx as o, createVNode as c, unref as n, normalizeClass as u, createTextVNode as _, toDisplayString as f } from "vue";
2
+ import { useI18n as C } from "../../../../../utils/i18n.js";
3
+ import { useEmitter as g } from "../../../../../utils/useEmitter.js";
4
+ const k = /* @__PURE__ */ s({
5
+ name: "onCreated-editor",
6
+ __name: "onCreated-editor",
7
+ props: {
8
+ optionModel: { default: {
9
+ onCreated: ""
10
+ } }
11
+ },
12
+ setup(b) {
13
+ const { i18nt: r } = C(), { onChangeEditEventHandler: a } = g();
14
+ return (l, e) => {
15
+ const i = t("a-button"), d = t("a-form-item");
16
+ return m(), p(d, {
17
+ label: "onCreated",
18
+ labelAlign: "left",
19
+ "label-width": "150px"
20
+ }, {
21
+ default: o(() => [
22
+ c(i, {
23
+ plain: "",
24
+ shape: "round",
25
+ class: u([l.optionModel.onCreated ? "button-text-highlight" : ""]),
26
+ onClick: e[0] || (e[0] = (h) => n(a)({
27
+ attr: "onCreated"
28
+ }))
29
+ }, {
30
+ default: o(() => [
31
+ _(f(n(r)("designer.setting.addEventHandler")), 1)
32
+ ]),
33
+ _: 1
34
+ }, 8, ["class"])
35
+ ]),
36
+ _: 1
37
+ });
38
+ };
39
+ }
40
+ });
41
+ export {
42
+ k as default
43
+ };
@@ -1,48 +1,4 @@
1
- import s from "../../../../../utils/i18n.js";
2
- import d from "./eventMixin.js";
3
- import { resolveComponent as n, createBlock as c, openBlock as m, withCtx as o, createVNode as p, normalizeClass as u, createTextVNode as f, toDisplayString as _ } from "vue";
4
- import k from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
- const v = {
6
- name: "onOkButtonClick-editor",
7
- mixins: [s, d],
8
- props: {
9
- designer: Object,
10
- selectedWidget: Object,
11
- optionModel: Object,
12
- eventHandled: {
13
- type: Boolean,
14
- default: !1
15
- }
16
- },
17
- data() {
18
- return {
19
- eventParams: []
20
- };
21
- }
22
- };
23
- function b(e, t, i, C, r, g) {
24
- const a = n("a-button"), l = n("a-form-item");
25
- return m(), c(l, {
26
- label: "onOkButtonClick",
27
- "label-width": "150px"
28
- }, {
29
- default: o(() => [
30
- p(a, {
31
- plain: "",
32
- shape: "round",
33
- class: u([i.eventHandled ? "button-text-highlight" : ""]),
34
- onClick: t[0] || (t[0] = (x) => e.editEventHandler("onOkButtonClick", r.eventParams))
35
- }, {
36
- default: o(() => [
37
- f(_(e.i18nt("designer.setting.addEventHandler")), 1)
38
- ]),
39
- _: 1
40
- }, 8, ["class"])
41
- ]),
42
- _: 1
43
- });
44
- }
45
- const j = /* @__PURE__ */ k(v, [["render", b]]);
1
+ import f from "./onOkButtonClick-editor.vue2.js";
46
2
  export {
47
- j as default
3
+ f as default
48
4
  };
@@ -0,0 +1,43 @@
1
+ import { defineComponent as c, resolveComponent as o, createBlock as m, openBlock as p, withCtx as n, createVNode as u, unref as e, normalizeClass as d, createTextVNode as k, toDisplayString as _ } from "vue";
2
+ import { useI18n as f } from "../../../../../utils/i18n.js";
3
+ import { useEmitter as C } from "../../../../../utils/useEmitter.js";
4
+ const v = /* @__PURE__ */ c({
5
+ name: "onOkButtonClick-editor",
6
+ __name: "onOkButtonClick-editor",
7
+ props: {
8
+ optionModel: { default: {
9
+ onOkButtonClick: ""
10
+ } }
11
+ },
12
+ setup(B) {
13
+ const { i18nt: i } = f(), { onChangeEditEventHandler: r } = C();
14
+ return (a, t) => {
15
+ const l = o("a-button"), s = o("a-form-item");
16
+ return p(), m(s, {
17
+ label: "onOkButtonClick",
18
+ "label-width": "150px"
19
+ }, {
20
+ default: n(() => [
21
+ u(l, {
22
+ plain: "",
23
+ shape: "round",
24
+ class: d([a.optionModel.onOkButtonClick ? "button-text-highlight" : ""]),
25
+ onClick: t[0] || (t[0] = (g) => e(r)({
26
+ attr: "onOkButtonClick",
27
+ eventParams: []
28
+ }))
29
+ }, {
30
+ default: n(() => [
31
+ k(_(e(i)("designer.setting.addEventHandler")), 1)
32
+ ]),
33
+ _: 1
34
+ }, 8, ["class"])
35
+ ]),
36
+ _: 1
37
+ });
38
+ };
39
+ }
40
+ });
41
+ export {
42
+ v as default
43
+ };
@@ -1,49 +1,4 @@
1
- import d from "../../../../../utils/i18n.js";
2
- import s from "./eventMixin.js";
3
- import { resolveComponent as n, createBlock as m, openBlock as p, withCtx as o, createVNode as c, normalizeClass as f, createTextVNode as u, toDisplayString as _ } from "vue";
4
- import v from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
- const b = {
6
- name: "onValidate-editor",
7
- mixins: [d, s],
8
- props: {
9
- designer: Object,
10
- selectedWidget: Object,
11
- optionModel: Object,
12
- eventHandled: {
13
- type: Boolean,
14
- default: !1
15
- }
16
- },
17
- data() {
18
- return {
19
- eventParams: ["rule", "value"]
20
- };
21
- }
22
- };
23
- function g(e, t, a, x, i, V) {
24
- const l = n("a-button"), r = n("a-form-item");
25
- return p(), m(r, {
26
- label: "onValidate",
27
- labelAlign: "left",
28
- "label-width": "150px"
29
- }, {
30
- default: o(() => [
31
- c(l, {
32
- plain: "",
33
- shape: "round",
34
- class: f([a.eventHandled ? "button-text-highlight" : ""]),
35
- onClick: t[0] || (t[0] = (h) => e.editEventHandler("onValidate", i.eventParams))
36
- }, {
37
- default: o(() => [
38
- u(_(e.i18nt("designer.setting.addEventHandler")), 1)
39
- ]),
40
- _: 1
41
- }, 8, ["class"])
42
- ]),
43
- _: 1
44
- });
45
- }
46
- const B = /* @__PURE__ */ v(b, [["render", g]]);
1
+ import f from "./onValidate-editor.vue2.js";
47
2
  export {
48
- B as default
3
+ f as default
49
4
  };
@@ -0,0 +1,44 @@
1
+ import { defineComponent as s, resolveComponent as t, createBlock as m, openBlock as p, withCtx as o, createVNode as u, unref as n, normalizeClass as c, createTextVNode as _, toDisplayString as f } from "vue";
2
+ import { useI18n as V } from "../../../../../utils/i18n.js";
3
+ import { useEmitter as g } from "../../../../../utils/useEmitter.js";
4
+ const E = /* @__PURE__ */ s({
5
+ name: "onValidate-editor",
6
+ __name: "onValidate-editor",
7
+ props: {
8
+ optionModel: { default: {
9
+ onValidate: ""
10
+ } }
11
+ },
12
+ setup(b) {
13
+ const { i18nt: a } = V(), { onChangeEditEventHandler: l } = g();
14
+ return (i, e) => {
15
+ const r = t("a-button"), d = t("a-form-item");
16
+ return p(), m(d, {
17
+ label: "onValidate",
18
+ labelAlign: "left",
19
+ "label-width": "150px"
20
+ }, {
21
+ default: o(() => [
22
+ u(r, {
23
+ plain: "",
24
+ shape: "round",
25
+ class: c([i.optionModel.onValidate ? "button-text-highlight" : ""]),
26
+ onClick: e[0] || (e[0] = (h) => n(l)({
27
+ attr: "onValidate",
28
+ eventParams: ["rule", "value"]
29
+ }))
30
+ }, {
31
+ default: o(() => [
32
+ _(f(n(a)("designer.setting.addEventHandler")), 1)
33
+ ]),
34
+ _: 1
35
+ }, 8, ["class"])
36
+ ]),
37
+ _: 1
38
+ });
39
+ };
40
+ }
41
+ });
42
+ export {
43
+ E as default
44
+ };
@@ -1,68 +1,4 @@
1
- import m from "../../../../../utils/i18n.js";
2
- import c from "../../../../code-editor/code-modal-editor.vue.js";
3
- import { resolveComponent as e, createElementBlock as u, openBlock as f, Fragment as b, createVNode as o, withCtx as s, createTextVNode as _, toDisplayString as g } from "vue";
4
- import D from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
- const h = {
6
- name: "menuList-editor",
7
- mixins: [m],
8
- components: { CodeModalEditor: c },
9
- props: {
10
- designer: Object,
11
- selectedWidget: Object,
12
- optionModel: Object
13
- },
14
- data() {
15
- return {
16
- tableDataOptions: ""
17
- };
18
- },
19
- methods: {
20
- saveTableData() {
21
- try {
22
- this.optionModel.menuList = JSON.parse(this.tableDataOptions);
23
- } catch (t) {
24
- this.$message.error(
25
- this.i18nt("designer.hint.invalidOptionsData") + t.message
26
- );
27
- }
28
- },
29
- openTableDataEdit() {
30
- this.tableDataOptions = JSON.stringify(this.optionModel.menuList, null, " "), this.$refs.CodeModalEditorRef.open(this.tableDataOptions);
31
- }
32
- }
33
- };
34
- function O(t, n, E, C, a, i) {
35
- const r = e("a-button"), l = e("a-form-item"), d = e("CodeModalEditor");
36
- return f(), u(b, null, [
37
- o(l, {
38
- label: t.i18nt("designer.setting.menuList")
39
- }, {
40
- default: s(() => [
41
- o(r, {
42
- type: "primary",
43
- shape: "round",
44
- onClick: i.openTableDataEdit
45
- }, {
46
- default: s(() => [
47
- _(g(t.i18nt("designer.setting.editAction")), 1)
48
- ]),
49
- _: 1
50
- }, 8, ["onClick"])
51
- ]),
52
- _: 1
53
- }, 8, ["label"]),
54
- o(d, {
55
- ref: "CodeModalEditorRef",
56
- mode: "json",
57
- readonly: !1,
58
- modelValue: a.tableDataOptions,
59
- "onUpdate:modelValue": n[0] || (n[0] = (p) => a.tableDataOptions = p),
60
- title: t.i18nt("designer.setting.tableDataEdit"),
61
- onSave: i.saveTableData
62
- }, null, 8, ["modelValue", "title", "onSave"])
63
- ], 64);
64
- }
65
- const S = /* @__PURE__ */ D(h, [["render", O]]);
1
+ import f from "./dropdown-menuList-editor.vue2.js";
66
2
  export {
67
- S as default
3
+ f as default
68
4
  };
@@ -0,0 +1,42 @@
1
+ import { defineComponent as a, resolveComponent as o, createBlock as d, openBlock as p, unref as e, withCtx as r, createVNode as u, createTextVNode as l, toDisplayString as _ } from "vue";
2
+ import { useI18n as c } from "../../../../../utils/i18n.js";
3
+ import { useEmitter as f } from "../../../../../utils/useEmitter.js";
4
+ const v = /* @__PURE__ */ a({
5
+ name: "menuList-editor",
6
+ __name: "dropdown-menuList-editor",
7
+ props: {
8
+ optionModel: { default: {
9
+ onCreated: ""
10
+ } }
11
+ },
12
+ setup(g) {
13
+ const { i18nt: t } = c(), { onChangeEditEventHandler: i } = f();
14
+ return (C, n) => {
15
+ const s = o("a-button"), m = o("a-form-item");
16
+ return p(), d(m, {
17
+ label: e(t)("designer.setting.menuList")
18
+ }, {
19
+ default: r(() => [
20
+ u(s, {
21
+ type: "primary",
22
+ shape: "round",
23
+ onClick: n[0] || (n[0] = (L) => e(i)({
24
+ title: e(t)("designer.setting.menuList"),
25
+ attr: "menuList",
26
+ mode: "json"
27
+ }))
28
+ }, {
29
+ default: r(() => [
30
+ l(_(e(t)("designer.setting.editAction")), 1)
31
+ ]),
32
+ _: 1
33
+ })
34
+ ]),
35
+ _: 1
36
+ }, 8, ["label"]);
37
+ };
38
+ }
39
+ });
40
+ export {
41
+ v as default
42
+ };
@@ -1,8 +1,9 @@
1
1
  import m from "../../../../../utils/i18n.js";
2
- import { resolveComponent as l, createElementBlock as d, openBlock as s, Fragment as c, createVNode as t, withCtx as p } from "vue";
2
+ import { resolveComponent as l, createElementBlock as s, openBlock as d, Fragment as c, createVNode as t, withCtx as p } from "vue";
3
3
  /* empty css */
4
4
  import _ from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
5
  const f = {
6
+ inheritAttrs: !1,
6
7
  name: "htmlContent-editor",
7
8
  mixins: [m],
8
9
  props: {
@@ -11,9 +12,9 @@ const f = {
11
12
  optionModel: Object
12
13
  }
13
14
  };
14
- function u(r, e, o, b, h, C) {
15
+ function u(r, e, o, h, b, C) {
15
16
  const n = l("a-form-item"), a = l("a-textarea");
16
- return s(), d(c, null, [
17
+ return d(), s(c, null, [
17
18
  t(n, {
18
19
  label: r.i18nt("designer.setting.htmlContent")
19
20
  }, null, 8, ["label"]),
@@ -30,7 +31,7 @@ function u(r, e, o, b, h, C) {
30
31
  })
31
32
  ], 64);
32
33
  }
33
- const w = /* @__PURE__ */ _(f, [["render", u], ["__scopeId", "data-v-be634f5e"]]);
34
+ const w = /* @__PURE__ */ _(f, [["render", u], ["__scopeId", "data-v-4319ebf0"]]);
34
35
  export {
35
36
  w as default
36
37
  };
@@ -1,9 +1,10 @@
1
1
  import p from "../../../../utils/i18n.js";
2
2
  import h from "./event-handler/eventMixin.js";
3
- import { resolveComponent as l, createElementBlock as f, openBlock as s, Fragment as _, createVNode as n, createBlock as g, createCommentVNode as k, withCtx as o, normalizeClass as b, createTextVNode as M, toDisplayString as v } from "vue";
3
+ import { resolveComponent as l, createElementBlock as f, openBlock as c, Fragment as _, createVNode as n, createBlock as g, createCommentVNode as k, withCtx as o, normalizeClass as b, createTextVNode as M, toDisplayString as v } from "vue";
4
4
  import H from "../../../../../_virtual/_plugin-vue_export-helper.js";
5
5
  const C = {
6
6
  name: "hidden-editor",
7
+ inheritAttrs: !1,
7
8
  mixins: [p, h],
8
9
  props: {
9
10
  designer: Object,
@@ -17,9 +18,9 @@ const C = {
17
18
  }
18
19
  };
19
20
  function x(d, e, t, j, m, w) {
20
- const a = l("a-switch"), u = l("a-button"), r = l("a-space"), c = l("a-form-item");
21
- return s(), f(_, null, [
22
- n(c, {
21
+ const a = l("a-switch"), u = l("a-button"), r = l("a-space"), s = l("a-form-item");
22
+ return c(), f(_, null, [
23
+ n(s, {
23
24
  label: d.i18nt("designer.setting.hidden")
24
25
  }, {
25
26
  default: o(() => [
@@ -45,7 +46,7 @@ function x(d, e, t, j, m, w) {
45
46
  ]),
46
47
  _: 1
47
48
  }, 8, ["label"]),
48
- t.optionModel.hidden ? (s(), g(c, {
49
+ t.optionModel.hidden ? (c(), g(s, {
49
50
  key: 0,
50
51
  label: d.i18nt("designer.setting.holdHidden")
51
52
  }, {