super-page-designer 2.0.78 → 2.0.82

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 (68) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +23 -23
  2. package/dist/es/components/design/utils/form-design-util.d.ts +2 -1
  3. package/dist/es/components/design/utils/form-design-util.js +76 -4
  4. package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +1 -0
  5. package/dist/es/components/design/utils/page-design-util.d.ts +1 -0
  6. package/dist/es/components/design/utils/page-design-util.js +27 -0
  7. package/dist/es/components/design/utils/page-table-util.js +19 -3
  8. package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue2.js +3 -18
  9. package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +10 -9
  10. package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +13 -6
  11. package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +2 -0
  12. package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +4 -0
  13. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +1 -1
  14. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
  15. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +9 -6
  16. package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +3 -20
  17. package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +3 -20
  18. package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +3 -20
  19. package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +3 -20
  20. package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +3 -20
  21. package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +4 -20
  22. package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +3 -20
  23. package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +1 -1
  24. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
  25. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -2
  26. package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +3 -5
  27. package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +16 -16
  28. package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
  29. package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +5 -3
  30. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +5 -1560
  31. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1860 -1
  32. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue3.js +1 -0
  33. package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +9 -12
  34. package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +11 -7
  35. package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
  36. package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +36 -92
  37. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +2 -1
  38. package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +13 -14
  39. package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +5 -0
  40. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +9 -12
  41. package/dist/es/components/design/views/assemblys/form/divider/divider-attr-base.vue.js +2 -1
  42. package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +5 -10
  43. package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +7 -11
  44. package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +7 -11
  45. package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +7 -11
  46. package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +7 -11
  47. package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-base.vue.js +5 -10
  48. package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +7 -11
  49. package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +7 -11
  50. package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +7 -11
  51. package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +7 -11
  52. package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +7 -11
  53. package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +7 -11
  54. package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.d.ts +9 -0
  55. package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +21 -10
  56. package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +8 -3
  57. package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +9 -7
  58. package/dist/es/components/design/views/design/page-design.vue.js +4 -0
  59. package/dist/es/components/design/views/design/page-event/config.vue.js +1 -7
  60. package/dist/es/components/design/views/design/page-event/config.vue2.js +7 -1
  61. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +33 -4
  62. package/dist/es/components/design/views/design/view/attr-container.vue.js +1 -1
  63. package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
  64. package/dist/es/components/design/views/design/view/page-switch.vue2.js +1 -3
  65. package/dist/es/components/design/views/design/view/view-design-display.vue.js +4 -21
  66. package/dist/es/stores/table-store.js +2 -3
  67. package/dist/es/style.css +73 -68
  68. package/package.json +4 -4
@@ -1,14 +1,13 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
2
2
  import { Search } from "@element-plus/icons-vue";
3
3
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
4
- import { resetConfigIndo } from "../../../../utils/form-design-util.js";
4
+ import { componentNameChange } from "../../../../utils/form-design-util.js";
5
5
  import _sfc_main$4 from "../../common/common-attr-size.vue.js";
6
6
  import BindVariable from "../../common/common-variable-bind.vue.js";
7
7
  import _sfc_main$2 from "./depttree-autoset.vue.js";
8
8
  import { OrganizationInput } from "agilebuilder-ui";
9
9
  import _sfc_main$1 from "../../common/common-function-code.vue.js";
10
10
  import _sfc_main$3 from "../common/title-suffix.vue.js";
11
- import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
12
11
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
13
12
  const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
14
13
  const _hoisted_3 = { style: { "padding": "8px 0px 0px 0px" } };
@@ -24,6 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
23
  emits: ["changeAssembly"],
25
24
  setup(__props, { emit: __emit }) {
26
25
  const props = __props;
26
+ const componentName = ref(props.configure.name);
27
27
  const emit = __emit;
28
28
  const openCollapseItems = ref(["base"]);
29
29
  const isTable = ref(false);
@@ -31,12 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
31
  isTable.value = true;
32
32
  }
33
33
  function nameChange(val) {
34
- if (props.configure.isTable) {
35
- tableResetConfigIndo(props.configure, val);
36
- } else {
37
- resetConfigIndo(props.configure, val);
38
- }
39
- emit("changeAssembly", props.configure);
34
+ componentNameChange(props.configure, val, emit);
40
35
  }
41
36
  function afterBindVariable(modelValue, alias) {
42
37
  props.configure.props.base.prop = modelValue;
@@ -91,8 +86,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
91
86
  }, {
92
87
  default: withCtx(() => [
93
88
  createVNode(_component_el_select, {
94
- modelValue: __props.configure.name,
95
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
89
+ modelValue: componentName.value,
90
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
96
91
  onChange: nameChange,
97
92
  placeholder: "请选择"
98
93
  }, {
@@ -178,10 +173,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
178
173
  }, {
179
174
  default: withCtx(() => [
180
175
  (openBlock(), createBlock(BindVariable, {
176
+ isTable: __props.configure.isTable,
181
177
  key: __props.configure.uuid,
182
178
  modelValue: __props.configure.props.base.defaultValue,
183
179
  "onUpdate:modelValue": afterBindDefaultValue
184
- }, null, 8, ["modelValue"]))
180
+ }, null, 8, ["isTable", "modelValue"]))
185
181
  ]),
186
182
  _: 1
187
183
  }),
@@ -393,10 +389,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
393
389
  ]),
394
390
  default: withCtx(() => [
395
391
  createVNode(BindVariable, {
392
+ isTable: __props.configure.isTable,
396
393
  showLabel: __props.configure.props.base.deptScope != "field",
397
394
  modelValue: __props.configure.props.base.deptScopeField,
398
395
  "onUpdate:modelValue": afterBindDeptScopeField
399
- }, null, 8, ["showLabel", "modelValue"])
396
+ }, null, 8, ["isTable", "showLabel", "modelValue"])
400
397
  ]),
401
398
  _: 1
402
399
  }),
@@ -63,10 +63,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
63
63
  }, {
64
64
  default: withCtx(() => [
65
65
  (openBlock(), createBlock(BindVariable, {
66
+ isTable: __props.configure.isTable,
66
67
  key: __props.configure.uuid,
67
68
  modelValue: __props.configure.props.base.defaultValue,
68
69
  "onUpdate:modelValue": afterBindDefaultValue
69
- }, null, 8, ["modelValue"]))
70
+ }, null, 8, ["isTable", "modelValue"]))
70
71
  ]),
71
72
  _: 1
72
73
  }),
@@ -1,11 +1,10 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
2
2
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
- import { resetConfigIndo } from "../../../../utils/form-design-util.js";
3
+ import { componentNameChange } from "../../../../utils/form-design-util.js";
4
4
  import _sfc_main$3 from "../../common/common-attr-size.vue.js";
5
5
  import _sfc_main$2 from "../common/uploading.vue.js";
6
6
  import BindVariable from "../../common/common-variable-bind.vue.js";
7
7
  import _sfc_main$1 from "../../common/common-function-code.vue.js";
8
- import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
9
8
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
10
9
  const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
11
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -20,6 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
19
  emits: ["changeAssembly"],
21
20
  setup(__props, { emit: __emit }) {
22
21
  const props = __props;
22
+ const componentName = ref(props.configure.name);
23
23
  const emit = __emit;
24
24
  if (!props.configure.props) {
25
25
  props.configure.props = {};
@@ -43,12 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
43
  }
44
44
  }
45
45
  function nameChange(val) {
46
- if (props.configure.isTable) {
47
- tableResetConfigIndo(props.configure, val);
48
- } else {
49
- resetConfigIndo(props.configure, val);
50
- }
51
- emit("changeAssembly", props.configure);
46
+ componentNameChange(props.configure, val, emit);
52
47
  }
53
48
  return (_ctx, _cache) => {
54
49
  const _component_el_option = resolveComponent("el-option");
@@ -90,8 +85,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
85
  }, {
91
86
  default: withCtx(() => [
92
87
  createVNode(_component_el_select, {
93
- modelValue: __props.configure.name,
94
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
88
+ modelValue: componentName.value,
89
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
95
90
  onChange: nameChange,
96
91
  placeholder: "请选择"
97
92
  }, {
@@ -1,11 +1,10 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
2
2
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
- import { resetConfigIndo } from "../../../../utils/form-design-util.js";
3
+ import { componentNameChange } from "../../../../utils/form-design-util.js";
4
4
  import _sfc_main$3 from "../../common/common-attr-size.vue.js";
5
5
  import BindVariable from "../../common/common-variable-bind.vue.js";
6
6
  import _sfc_main$1 from "../../common/common-function-code.vue.js";
7
7
  import _sfc_main$2 from "../common/title-suffix.vue.js";
8
- import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
9
8
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
10
9
  const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
11
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -20,6 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
19
  emits: ["changeAssembly"],
21
20
  setup(__props, { emit: __emit }) {
22
21
  const props = __props;
22
+ const componentName = ref(props.configure.name);
23
23
  const openCollapseItems = ref(["base"]);
24
24
  const emit = __emit;
25
25
  const isTable = ref(false);
@@ -33,12 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
33
  }
34
34
  }
35
35
  function nameChange(val) {
36
- if (props.configure.isTable) {
37
- tableResetConfigIndo(props.configure, val);
38
- } else {
39
- resetConfigIndo(props.configure, val);
40
- }
41
- emit("changeAssembly", props.configure);
36
+ componentNameChange(props.configure, val, emit);
42
37
  }
43
38
  function afterBindDefaultValue(modelValue) {
44
39
  props.configure.props.base.defaultValue = modelValue;
@@ -81,8 +76,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
81
76
  }, {
82
77
  default: withCtx(() => [
83
78
  createVNode(_component_el_select, {
84
- modelValue: __props.configure.name,
85
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
79
+ modelValue: componentName.value,
80
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
86
81
  onChange: nameChange,
87
82
  placeholder: "请选择"
88
83
  }, {
@@ -135,10 +130,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
135
130
  }, {
136
131
  default: withCtx(() => [
137
132
  (openBlock(), createBlock(BindVariable, {
133
+ isTable: __props.configure.isTable,
138
134
  key: __props.configure.uuid,
139
135
  modelValue: __props.configure.props.base.defaultValue,
140
136
  "onUpdate:modelValue": afterBindDefaultValue
141
- }, null, 8, ["modelValue"]))
137
+ }, null, 8, ["isTable", "modelValue"]))
142
138
  ]),
143
139
  _: 1
144
140
  }),
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
2
2
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
- import { resetConfigIndo } from "../../../../utils/form-design-util.js";
3
+ import { componentNameChange } from "../../../../utils/form-design-util.js";
4
4
  import _sfc_main$5 from "../common/verification.vue.js";
5
5
  import _sfc_main$6 from "../../common/common-attr-size.vue.js";
6
6
  import _sfc_main$3 from "../common/pre-suffix.vue.js";
@@ -9,7 +9,6 @@ import BindVariable from "../../common/common-variable-bind.vue.js";
9
9
  import _sfc_main$1 from "../../common/common-function-code.vue.js";
10
10
  import _sfc_main$4 from "../common/suffixmodule.vue.js";
11
11
  import _sfc_main$2 from "../common/title-suffix.vue.js";
12
- import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
13
12
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
14
13
  const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
15
14
  const _hoisted_3 = { style: { "padding": "8px 0px 0px 0px" } };
@@ -31,6 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
30
  emits: ["changeAssembly"],
32
31
  setup(__props, { emit: __emit }) {
33
32
  const props = __props;
33
+ const componentName = ref(props.configure.name);
34
34
  const emit = __emit;
35
35
  if (!props.configure.props.base) {
36
36
  props.configure.props.base = { prop: "" };
@@ -49,12 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
49
  isTable.value = true;
50
50
  }
51
51
  function nameChange(val) {
52
- if (props.configure.isTable) {
53
- tableResetConfigIndo(props.configure, val);
54
- } else {
55
- resetConfigIndo(props.configure, val);
56
- }
57
- emit("changeAssembly", props.configure);
52
+ componentNameChange(props.configure, val, emit);
58
53
  }
59
54
  const openCollapseItems = ref(["base"]);
60
55
  const BarCodeRuleOff = ref(false);
@@ -110,8 +105,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
110
105
  }, {
111
106
  default: withCtx(() => [
112
107
  createVNode(_component_el_select, {
113
- modelValue: __props.configure.name,
114
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
108
+ modelValue: componentName.value,
109
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
115
110
  onChange: nameChange,
116
111
  placeholder: "请选择"
117
112
  }, {
@@ -164,10 +159,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
164
159
  }, {
165
160
  default: withCtx(() => [
166
161
  (openBlock(), createBlock(BindVariable, {
162
+ isTable: __props.configure.isTable,
167
163
  key: __props.configure.uuid,
168
164
  modelValue: __props.configure.props.base.defaultValue,
169
165
  "onUpdate:modelValue": afterBindDefaultValue
170
- }, null, 8, ["modelValue"]))
166
+ }, null, 8, ["isTable", "modelValue"]))
171
167
  ]),
172
168
  _: 1
173
169
  }),
@@ -1,12 +1,11 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
2
2
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
- import { resetConfigIndo } from "../../../../utils/form-design-util.js";
3
+ import { componentNameChange } from "../../../../utils/form-design-util.js";
4
4
  import _sfc_main$4 from "../../common/common-attr-size.vue.js";
5
5
  import _sfc_main$3 from "../common/pre-suffix.vue.js";
6
6
  import BindVariable from "../../common/common-variable-bind.vue.js";
7
7
  import _sfc_main$2 from "../common/data-format.vue.js";
8
8
  import _sfc_main$1 from "../../common/common-function-code.vue.js";
9
- import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
10
9
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
11
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
11
  __name: "label-attr-base",
@@ -23,6 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
22
  if (!props.configure.props.preSuffix) {
24
23
  props.configure.props.preSuffix = {};
25
24
  }
25
+ const componentName = ref(props.configure.name);
26
26
  const emit = __emit;
27
27
  const openCollapseItems = ref(["base"]);
28
28
  const isTable = ref(false);
@@ -36,12 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
36
  }
37
37
  }
38
38
  function nameChange(val) {
39
- if (props.configure.isTable) {
40
- tableResetConfigIndo(props.configure, val);
41
- } else {
42
- resetConfigIndo(props.configure, val);
43
- }
44
- emit("changeAssembly", props.configure);
39
+ componentNameChange(props.configure, val, emit);
45
40
  }
46
41
  function afterBindDefaultValue(modelValue) {
47
42
  props.configure.props.base.defaultValue = modelValue;
@@ -81,8 +76,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
81
76
  }, {
82
77
  default: withCtx(() => [
83
78
  createVNode(_component_el_select, {
84
- modelValue: __props.configure.name,
85
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
79
+ modelValue: componentName.value,
80
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
86
81
  onChange: nameChange,
87
82
  placeholder: "请选择"
88
83
  }, {
@@ -135,10 +130,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
135
130
  }, {
136
131
  default: withCtx(() => [
137
132
  (openBlock(), createBlock(BindVariable, {
133
+ isTable: __props.configure.isTable,
138
134
  key: __props.configure.uuid,
139
135
  modelValue: __props.configure.props.base.defaultValue,
140
136
  "onUpdate:modelValue": afterBindDefaultValue
141
- }, null, 8, ["modelValue"]))
137
+ }, null, 8, ["isTable", "modelValue"]))
142
138
  ]),
143
139
  _: 1
144
140
  }),
@@ -1,13 +1,12 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
2
2
  import _sfc_main$3 from "../common/suffixmodule.vue.js";
3
3
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
4
- import { resetConfigIndo } from "../../../../utils/form-design-util.js";
4
+ import { componentNameChange } from "../../../../utils/form-design-util.js";
5
5
  import IconSetDialog from "../common/icon-set-dialog.vue.js";
6
6
  import _sfc_main$4 from "../../common/common-attr-size.vue.js";
7
7
  import BindVariable from "../../common/common-variable-bind.vue.js";
8
8
  import _sfc_main$2 from "../common/condition.vue.js";
9
9
  import _sfc_main$1 from "../../common/common-function-code.vue.js";
10
- import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
11
10
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
12
11
  const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
13
12
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -19,6 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
18
  emits: ["changeAssembly"],
20
19
  setup(__props, { emit: __emit }) {
21
20
  const props = __props;
21
+ const componentName = ref(props.configure.name);
22
22
  const emit = __emit;
23
23
  if (!props.configure.props) {
24
24
  props.configure.props = {};
@@ -32,12 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
32
  isTable.value = true;
33
33
  }
34
34
  function nameChange(val) {
35
- if (props.configure.isTable) {
36
- tableResetConfigIndo(props.configure, val);
37
- } else {
38
- resetConfigIndo(props.configure, val);
39
- }
40
- emit("changeAssembly", props.configure);
35
+ componentNameChange(props.configure, val, emit);
41
36
  }
42
37
  function afterBindVariable(modelValue, alias) {
43
38
  props.configure.props.base.prop = modelValue;
@@ -84,8 +79,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
79
  }, {
85
80
  default: withCtx(() => [
86
81
  createVNode(_component_el_select, {
87
- modelValue: _ctx.configure.name,
88
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.configure.name = $event),
82
+ modelValue: componentName.value,
83
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
89
84
  onChange: nameChange,
90
85
  placeholder: "请选择"
91
86
  }, {
@@ -138,10 +133,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
138
133
  }, {
139
134
  default: withCtx(() => [
140
135
  (openBlock(), createBlock(BindVariable, {
136
+ isTable: _ctx.configure.isTable,
141
137
  key: _ctx.configure.uuid,
142
138
  modelValue: _ctx.configure.props.base.defaultValue,
143
139
  "onUpdate:modelValue": afterBindDefaultValue
144
- }, null, 8, ["modelValue"]))
140
+ }, null, 8, ["isTable", "modelValue"]))
145
141
  ]),
146
142
  _: 1
147
143
  }),
@@ -1,8 +1,7 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode } from "vue";
2
2
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
3
  import _sfc_main$1 from "../../common/common-attr-size.vue.js";
4
- import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
5
- import { resetConfigIndo } from "../../../../utils/form-design-util.js";
4
+ import { componentNameChange } from "../../../../utils/form-design-util.js";
6
5
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
7
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
7
  __name: "placeholder-attr-base",
@@ -16,6 +15,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
15
  emits: ["changeAssembly"],
17
16
  setup(__props, { emit: __emit }) {
18
17
  const props = __props;
18
+ const componentName = ref(props.configure.name);
19
19
  const emit = __emit;
20
20
  const openCollapseItems = ref(["base"]);
21
21
  const isTable = ref(false);
@@ -23,12 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
23
  isTable.value = true;
24
24
  }
25
25
  function nameChange(val) {
26
- if (props.configure.isTable) {
27
- tableResetConfigIndo(props.configure, val);
28
- } else {
29
- resetConfigIndo(props.configure, val);
30
- }
31
- emit("changeAssembly", props.configure);
26
+ componentNameChange(props.configure, val, emit);
32
27
  }
33
28
  return (_ctx, _cache) => {
34
29
  const _component_el_option = resolveComponent("el-option");
@@ -62,8 +57,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
62
57
  }, {
63
58
  default: withCtx(() => [
64
59
  createVNode(_component_el_select, {
65
- modelValue: __props.configure.name,
66
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
60
+ modelValue: componentName.value,
61
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
67
62
  onChange: nameChange,
68
63
  placeholder: "请选择"
69
64
  }, {
@@ -1,12 +1,11 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
2
2
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
- import { resetConfigIndo } from "../../../../utils/form-design-util.js";
3
+ import { componentNameChange } from "../../../../utils/form-design-util.js";
4
4
  import _sfc_main$4 from "../../common/common-attr-size.vue.js";
5
5
  import DataOrigin from "../common/data-origin.vue.js";
6
6
  import _sfc_main$2 from "../common/data-linkage.vue.js";
7
7
  import BindVariable from "../../common/common-variable-bind.vue.js";
8
8
  import _sfc_main$1 from "../../common/common-function-code.vue.js";
9
- import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
10
9
  import _sfc_main$3 from "../common/verification-custom.vue.js";
11
10
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
12
11
  const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
@@ -24,6 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
23
  emits: ["changeAssembly"],
25
24
  setup(__props, { emit: __emit }) {
26
25
  const props = __props;
26
+ const componentName = ref(props.configure.name);
27
27
  const emit = __emit;
28
28
  const openCollapseItems = ref("base");
29
29
  const isTable = ref(false);
@@ -40,12 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
40
  props.configure.props.base.defaultValue = modelValue;
41
41
  }
42
42
  function nameChange(val) {
43
- if (props.configure.isTable) {
44
- tableResetConfigIndo(props.configure, val);
45
- } else {
46
- resetConfigIndo(props.configure, val);
47
- }
48
- emit("changeAssembly", props.configure);
43
+ componentNameChange(props.configure, val, emit);
49
44
  }
50
45
  return (_ctx, _cache) => {
51
46
  const _component_el_option = resolveComponent("el-option");
@@ -83,8 +78,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
83
78
  }, {
84
79
  default: withCtx(() => [
85
80
  createVNode(_component_el_select, {
86
- modelValue: __props.configure.name,
87
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
81
+ modelValue: componentName.value,
82
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
88
83
  onChange: nameChange,
89
84
  placeholder: "请选择"
90
85
  }, {
@@ -137,10 +132,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
137
132
  }, {
138
133
  default: withCtx(() => [
139
134
  (openBlock(), createBlock(BindVariable, {
135
+ isTable: __props.configure.isTable,
140
136
  key: __props.configure.uuid,
141
137
  modelValue: __props.configure.props.base.defaultValue,
142
138
  "onUpdate:modelValue": afterBindDefaultValue
143
- }, null, 8, ["modelValue"]))
139
+ }, null, 8, ["isTable", "modelValue"]))
144
140
  ]),
145
141
  _: 1
146
142
  }),
@@ -1,10 +1,9 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
2
2
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
- import { resetConfigIndo } from "../../../../utils/form-design-util.js";
3
+ import { componentNameChange } from "../../../../utils/form-design-util.js";
4
4
  import _sfc_main$2 from "../../common/common-attr-size.vue.js";
5
5
  import BindVariable from "../../common/common-variable-bind.vue.js";
6
6
  import _sfc_main$1 from "../../common/common-function-code.vue.js";
7
- import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
8
7
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
9
8
  const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
10
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -19,6 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
18
  emits: ["changeAssembly"],
20
19
  setup(__props, { emit: __emit }) {
21
20
  const props = __props;
21
+ const componentName = ref(props.configure.name);
22
22
  const openCollapseItems = ref(["base"]);
23
23
  const emit = __emit;
24
24
  const isTable = ref(false);
@@ -32,12 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
32
  }
33
33
  }
34
34
  function nameChange(val) {
35
- if (props.configure.isTable) {
36
- tableResetConfigIndo(props.configure, val);
37
- } else {
38
- resetConfigIndo(props.configure, val);
39
- }
40
- emit("changeAssembly", props.configure);
35
+ componentNameChange(props.configure, val, emit);
41
36
  }
42
37
  function afterBindDefaultValue(modelValue) {
43
38
  props.configure.props.base.defaultValue = modelValue;
@@ -80,8 +75,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
75
  }, {
81
76
  default: withCtx(() => [
82
77
  createVNode(_component_el_select, {
83
- modelValue: __props.configure.name,
84
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
78
+ modelValue: componentName.value,
79
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
85
80
  onChange: nameChange,
86
81
  placeholder: "请选择"
87
82
  }, {
@@ -134,10 +129,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
134
129
  }, {
135
130
  default: withCtx(() => [
136
131
  (openBlock(), createBlock(BindVariable, {
132
+ isTable: __props.configure.isTable,
137
133
  key: __props.configure.uuid,
138
134
  modelValue: __props.configure.props.base.defaultValue,
139
135
  "onUpdate:modelValue": afterBindDefaultValue
140
- }, null, 8, ["modelValue"]))
136
+ }, null, 8, ["isTable", "modelValue"]))
141
137
  ]),
142
138
  _: 1
143
139
  }),
@@ -1,13 +1,12 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
2
2
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
- import { resetConfigIndo } from "../../../../utils/form-design-util.js";
3
+ import { componentNameChange } from "../../../../utils/form-design-util.js";
4
4
  import _sfc_main$5 from "../../common/common-attr-size.vue.js";
5
5
  import DataOrigin from "../common/data-origin.vue.js";
6
6
  import _sfc_main$2 from "../common/data-linkage.vue.js";
7
7
  import BindVariable from "../../common/common-variable-bind.vue.js";
8
8
  import _sfc_main$1 from "../../common/common-function-code.vue.js";
9
9
  import _sfc_main$3 from "../common/title-suffix.vue.js";
10
- import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
11
10
  import _sfc_main$4 from "../common/verification-custom.vue.js";
12
11
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
13
12
  const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
@@ -28,6 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
27
  emits: ["changeAssembly"],
29
28
  setup(__props, { emit: __emit }) {
30
29
  const props = __props;
30
+ const componentName = ref(props.configure.name);
31
31
  const emit = __emit;
32
32
  const openCollapseItems = ref(["base"]);
33
33
  const isTable = ref(false);
@@ -47,12 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
47
47
  props.configure.props.base.defaultValue = modelValue;
48
48
  }
49
49
  function nameChange(val) {
50
- if (props.configure.isTable) {
51
- tableResetConfigIndo(props.configure, val);
52
- } else {
53
- resetConfigIndo(props.configure, val);
54
- }
55
- emit("changeAssembly", props.configure);
50
+ componentNameChange(props.configure, val, emit);
56
51
  }
57
52
  return (_ctx, _cache) => {
58
53
  const _component_el_option = resolveComponent("el-option");
@@ -90,8 +85,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
85
  }, {
91
86
  default: withCtx(() => [
92
87
  createVNode(_component_el_select, {
93
- modelValue: __props.configure.name,
94
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.name = $event),
88
+ modelValue: componentName.value,
89
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
95
90
  onChange: nameChange,
96
91
  placeholder: "请选择"
97
92
  }, {
@@ -172,10 +167,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
172
167
  }, {
173
168
  default: withCtx(() => [
174
169
  (openBlock(), createBlock(BindVariable, {
170
+ isTable: __props.configure.isTable,
175
171
  key: __props.configure.uuid,
176
172
  modelValue: __props.configure.props.base.defaultValue,
177
173
  "onUpdate:modelValue": afterBindDefaultValue
178
- }, null, 8, ["modelValue"]))
174
+ }, null, 8, ["isTable", "modelValue"]))
179
175
  ]),
180
176
  _: 1
181
177
  }),