super-page-designer 2.0.34 → 2.0.39

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 (63) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +378 -88
  2. package/dist/es/components/design/utils/container-design-util.js +6 -8
  3. package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +3 -2
  4. package/dist/es/components/design/utils/page-table-util.js +4 -2
  5. package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +6 -3
  6. package/dist/es/components/design/views/assemblys/button/button/button-attr.vue.js +0 -1
  7. package/dist/es/components/design/views/assemblys/common/common-style-border.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/common/common-style-margin.vue.js +9 -9
  9. package/dist/es/components/design/views/assemblys/common/common-style-padding.vue.js +9 -9
  10. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
  11. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +691 -1
  12. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +1 -686
  13. package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +77 -31
  14. package/dist/es/components/design/views/assemblys/container/card/card-attr-style.vue.js +4 -1
  15. package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +12 -11
  16. package/dist/es/components/design/views/assemblys/container/collapse/collapse-attr-style.vue.js +4 -1
  17. package/dist/es/components/design/views/assemblys/container/container/container-attr-style.vue.js +4 -1
  18. package/dist/es/components/design/views/assemblys/container/flex/flex-attr-style.vue.js +4 -1
  19. package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +31 -15
  20. package/dist/es/components/design/views/assemblys/container/form/form-attr-base.vue.js +2 -2
  21. package/dist/es/components/design/views/assemblys/container/form/form-attr-style.vue.js +21 -16
  22. package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +16 -19
  23. package/dist/es/components/design/views/assemblys/container/iframe/iframe-attr-style.vue.js +4 -1
  24. package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr-style.vue.js +4 -1
  25. package/dist/es/components/design/views/assemblys/container/tools/tools-attr-style.vue.js +4 -1
  26. package/dist/es/components/design/views/assemblys/data/component/attr-header.vue.js +46 -5
  27. package/dist/es/components/design/views/assemblys/data/component/attr-header.vue2.js +1 -45
  28. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
  29. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +3 -58
  30. package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +10 -10
  31. package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +4 -1
  32. package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +2 -2
  33. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +1 -152
  34. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +152 -1
  35. package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +8 -8
  36. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +4 -1
  37. package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +5 -2
  38. package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +4 -1
  39. package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +4 -1
  40. package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +4 -1
  41. package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +4 -1
  42. package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +4 -1
  43. package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +4 -1
  44. package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +4 -1
  45. package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +4 -1
  46. package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +4 -1
  47. package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +4 -1
  48. package/dist/es/components/design/views/assemblys/object-design.vue.js +6 -1
  49. package/dist/es/components/design/views/design/page-event/config.vue.js +7 -1
  50. package/dist/es/components/design/views/design/page-event/config.vue2.js +1 -7
  51. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +594 -5
  52. package/dist/es/components/design/views/design/page-event/page-event-content.vue2.js +1 -594
  53. package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +2 -2
  54. package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +13 -4
  55. package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +0 -1
  56. package/dist/es/components/design/views/design/view/view-design-display.vue.js +88 -81
  57. package/dist/es/components/design/views/design/view/view-design-preview.vue.js +21 -2
  58. package/dist/es/stores/page-store.js +2 -1
  59. package/dist/es/style.css +1143 -1386
  60. package/package.json +4 -4
  61. package/dist/es/components/design/views/assemblys/button/button/button-attr.vue3.js +0 -1
  62. package/dist/es/components/design/views/assemblys/data/component/attr-header.vue3.js +0 -1
  63. package/dist/es/components/design/views/design/page-event/page-event-content.vue3.js +0 -1
@@ -1,48 +1,4 @@
1
- import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, normalizeClass } from "vue";
2
- const _hoisted_1 = { class: "amb-design-attr-header" };
3
- const _hoisted_2 = { class: "amb-design-attr-header-type" };
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "attr-header",
6
- props: {
7
- modelValue: {
8
- type: String,
9
- default: "base"
10
- // 设置默认值
11
- }
12
- },
13
- emits: ["update:modelValue"],
14
- setup(__props, { emit: __emit }) {
15
- const props = __props;
16
- const emit = __emit;
17
- const clickType = ref(props.modelValue);
18
- function changeType(type) {
19
- clickType.value = type;
20
- emit("update:modelValue", type);
21
- }
22
- return (_ctx, _cache) => {
23
- return openBlock(), createElementBlock("div", _hoisted_1, [
24
- createElementVNode("div", _hoisted_2, [
25
- createElementVNode("label", {
26
- class: normalizeClass({ selected: clickType.value === "base" }),
27
- onClick: _cache[0] || (_cache[0] = ($event) => changeType("base"))
28
- }, "属性", 2),
29
- createElementVNode("label", {
30
- class: normalizeClass({ selected: clickType.value === "advanced" }),
31
- onClick: _cache[1] || (_cache[1] = ($event) => changeType("advanced"))
32
- }, "高级", 2),
33
- createElementVNode("label", {
34
- class: normalizeClass({ selected: clickType.value === "style" }),
35
- onClick: _cache[2] || (_cache[2] = ($event) => changeType("style"))
36
- }, "样式", 2),
37
- createElementVNode("label", {
38
- class: normalizeClass({ selected: clickType.value === "event" }),
39
- onClick: _cache[3] || (_cache[3] = ($event) => changeType("event"))
40
- }, "事件", 2)
41
- ])
42
- ]);
43
- };
44
- }
45
- });
1
+ import _sfc_main from "./attr-header.vue.js";
46
2
  export {
47
3
  _sfc_main as default
48
4
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, unref, createCommentVNode, withDirectives, vShow, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, renderSlot } from "vue";
2
- import _sfc_main$1 from "../../form/common/dataorigin-input-table.vue.js";
2
+ import _sfc_main$1 from "../../form/common/dataorigin-input-table.vue2.js";
3
3
  import { Codemirror } from "vue-codemirror";
4
4
  import _sfc_main$6 from "../../workflow/component/combination.vue.js";
5
5
  import _sfc_main$5 from "./return-set-table.vue.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, createCommentVNode } from "vue";
2
- import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
2
+ import { getTableOperateConf, getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
3
  import DataOrigin from "../component/data-origin.vue.js";
4
4
  import _sfc_main$3 from "../../common/common-attr-size.vue.js";
5
5
  import _sfc_main$2 from "../../form/common/data-linkage.vue.js";
@@ -7,7 +7,7 @@ import "@element-plus/icons-vue";
7
7
  import "agilebuilder-ui/src/utils/request";
8
8
  import { getUuidv4 } from "../../../../utils/common-util.js";
9
9
  import "../../../../../../stores/page-store.js";
10
- import "../../common/common-variable-bind.vue2.js";
10
+ import "../../common/common-variable-bind.vue3.js";
11
11
  import "../../../../utils/eventBus.js";
12
12
  import _sfc_main$1 from "../../common/common-function-code.vue.js";
13
13
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
@@ -192,62 +192,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
192
192
  () => props.configure.props.base.showOperation,
193
193
  (newVal) => {
194
194
  if (newVal) {
195
- let selectColumn = {
196
- uuid: getUuidv4(),
197
- name: "",
198
- props: {
199
- base: {
200
- name: "操作",
201
- title: "操作",
202
- prop: "operation",
203
- columnWidth: 150,
204
- sortable: true,
205
- visible: true,
206
- alignTittle: "center",
207
- alignContent: "center"
208
- },
209
- size: {},
210
- editLine: {},
211
- scan: {},
212
- preSuffix: {},
213
- verification: {},
214
- dataOrigin: {
215
- sortField: [{ name: "", type: "" }],
216
- staticState: [{ label: "选项1", vaule: 1 }],
217
- displayQuantity: 20
218
- },
219
- defaultValue: {},
220
- inParameter: {},
221
- title: {},
222
- definition: {},
223
- uploadConfig: {},
224
- singleWidth: {},
225
- suffixModule: {},
226
- querySetting: {},
227
- formatting: {
228
- type: "",
229
- suffixModule: {
230
- jumpPageAdditional: [],
231
- icon: ""
232
- }
233
- }
234
- },
235
- events: [
236
- { name: "show", label: "列表显示", tip: "列表显示回调方法" },
237
- { name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" }
238
- ],
239
- style: {
240
- titleFont: {},
241
- contentFont: {},
242
- width: {},
243
- background: {},
244
- conentPadding: {},
245
- tittlePadding: {},
246
- border: {},
247
- shadow: {},
248
- tittleClass: ""
249
- }
250
- };
195
+ let selectColumn = getTableOperateConf();
251
196
  props.configure.items.push(selectColumn);
252
197
  } else {
253
198
  let delIndex = null;
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, ref, openBlock, createElementBlock, createVNode, unref, isRef, createElementVNode, withDirectives, createBlock, vShow } from "vue";
2
- import _sfc_main$4 from "./table-attr-base.vue.js";
3
- import _sfc_main$5 from "./table-attr-advanced.vue.js";
4
- import _sfc_main$6 from "./table-attr-style.vue.js";
5
- import AttrHeader$1 from "../component/attr-header.vue.js";
6
- import _sfc_main$7 from "./table-attr-event.vue.js";
2
+ import _sfc_main$5 from "./table-attr-base.vue.js";
3
+ import _sfc_main$6 from "./table-attr-advanced.vue.js";
4
+ import _sfc_main$7 from "./table-attr-style.vue.js";
5
+ import _sfc_main$4 from "../component/attr-header.vue.js";
6
+ import _sfc_main$8 from "./table-attr-event.vue.js";
7
7
  import AttrHeader from "../../form/common/attr-header.vue.js";
8
8
  import _sfc_main$1 from "./tablecolumn-attr-base.vue.js";
9
9
  import _sfc_main$2 from "./tablecolumn-attr-style.vue.js";
@@ -67,28 +67,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
67
67
  ])
68
68
  ])
69
69
  ])) : (openBlock(), createElementBlock("div", _hoisted_3, [
70
- createVNode(AttrHeader$1, {
70
+ createVNode(_sfc_main$4, {
71
71
  modelValue: unref(currentConfigType),
72
72
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(currentConfigType) ? currentConfigType.value = $event : currentConfigType = $event)
73
73
  }, null, 8, ["modelValue"]),
74
74
  createElementVNode("div", _hoisted_4, [
75
- withDirectives(createVNode(_sfc_main$4, {
75
+ withDirectives(createVNode(_sfc_main$5, {
76
76
  pageDesign: __props.pageDesign,
77
77
  configure: __props.configure
78
78
  }, null, 8, ["pageDesign", "configure"]), [
79
79
  [vShow, unref(currentConfigType) === "base"]
80
80
  ]),
81
- withDirectives(createVNode(_sfc_main$5, {
81
+ withDirectives(createVNode(_sfc_main$6, {
82
82
  pageDesign: __props.pageDesign,
83
83
  configure: __props.configure,
84
84
  tableConfigure: tableConfigure.value
85
85
  }, null, 8, ["pageDesign", "configure", "tableConfigure"]), [
86
86
  [vShow, unref(currentConfigType) === "advanced"]
87
87
  ]),
88
- withDirectives(createVNode(_sfc_main$6, { configure: __props.configure }, null, 8, ["configure"]), [
88
+ withDirectives(createVNode(_sfc_main$7, { configure: __props.configure }, null, 8, ["configure"]), [
89
89
  [vShow, unref(currentConfigType) === "style"]
90
90
  ]),
91
- withDirectives(createVNode(_sfc_main$7, { configure: __props.configure }, null, 8, ["configure"]), [
91
+ withDirectives(createVNode(_sfc_main$8, { configure: __props.configure }, null, 8, ["configure"]), [
92
92
  [vShow, unref(currentConfigType) === "event"]
93
93
  ])
94
94
  ])
@@ -23,8 +23,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
23
  if (props.configure.isTable) {
24
24
  isTable.value = true;
25
25
  }
26
- function afterBindVariable(modelValue) {
26
+ function afterBindVariable(modelValue, alias) {
27
27
  props.configure.props.base.prop = modelValue;
28
+ if (alias) {
29
+ props.configure.props.base.title = alias;
30
+ }
28
31
  }
29
32
  function afterBindDefaultValue(modelValue) {
30
33
  props.configure.props.base.defaultValue = modelValue;
@@ -1,12 +1,12 @@
1
1
  import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, unref, createCommentVNode, withDirectives, createElementBlock, Fragment, renderList, vShow, createTextVNode, normalizeClass } from "vue";
2
- import _sfc_main$3 from "./dataorigin-input-table.vue.js";
2
+ import _sfc_main$3 from "./dataorigin-input-table.vue2.js";
3
3
  import _sfc_main$2 from "./condition.vue.js";
4
4
  import _sfc_main$1 from "./row-ul-li.vue.js";
5
5
  import "uuid";
6
6
  import "@element-plus/icons-vue";
7
7
  import http from "agilebuilder-ui/src/utils/request";
8
8
  import { usePageContextStore } from "../../../../../../stores/page-store.js";
9
- import "../../common/common-variable-bind.vue2.js";
9
+ import "../../common/common-variable-bind.vue3.js";
10
10
  import _sfc_main$4 from "./data-origin-service-in.vue.js";
11
11
  import { queryTableFields } from "../../../../utils/page-table-util.js";
12
12
  import _sfc_main$5 from "../../common/common-select-table.vue.js";
@@ -1,155 +1,4 @@
1
- import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, createTextVNode } from "vue";
2
- import { Search } from "@element-plus/icons-vue";
3
- const _hoisted_1 = { class: "dialog-footer" };
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "dataorigin-input-table",
6
- props: {
7
- modelValue: {
8
- type: String,
9
- default: ""
10
- }
11
- },
12
- emits: ["update:modelValue"],
13
- setup(__props, { emit: __emit }) {
14
- const props = __props;
15
- const inputValue = ref(props.modelValue);
16
- const emit = __emit;
17
- const tableData = [
18
- {
19
- id: 1,
20
- date: "2016-05-03",
21
- name: "Tom",
22
- address: "No. 189, Grove St, Los Angeles"
23
- },
24
- {
25
- id: 2,
26
- date: "2016-05-02",
27
- name: "Tom",
28
- address: "No. 189, Grove St, Los Angeles"
29
- },
30
- {
31
- id: 3,
32
- date: "2016-05-04",
33
- name: "Tom",
34
- address: "No. 189, Grove St, Los Angeles"
35
- },
36
- {
37
- id: 4,
38
- date: "2016-05-01",
39
- name: "Tom",
40
- address: "No. 189, Grove St, Los Angeles"
41
- }
42
- ];
43
- const dialogVisible = ref(false);
44
- const selectData = ref([]);
45
- watch(() => props.modelValue, (newVal) => {
46
- inputValue.value = newVal;
47
- });
48
- function confirm() {
49
- if (selectData.value.length > 0) {
50
- let str = "";
51
- selectData.value.forEach((item) => {
52
- str = str + item.name + ",";
53
- });
54
- str = str.substring(0, str.length - 1);
55
- emit("update:modelValue", str);
56
- dialogVisible.value = false;
57
- } else {
58
- dialogVisible.value = false;
59
- }
60
- }
61
- function handleSelectionChange(selection) {
62
- selectData.value = selection;
63
- }
64
- function inputClick() {
65
- dialogVisible.value = true;
66
- }
67
- return (_ctx, _cache) => {
68
- const _component_el_icon = resolveComponent("el-icon");
69
- const _component_el_input = resolveComponent("el-input");
70
- const _component_el_table_column = resolveComponent("el-table-column");
71
- const _component_el_table = resolveComponent("el-table");
72
- const _component_el_button = resolveComponent("el-button");
73
- const _component_el_dialog = resolveComponent("el-dialog");
74
- return openBlock(), createElementBlock(Fragment, null, [
75
- createVNode(_component_el_input, {
76
- modelValue: inputValue.value,
77
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
78
- placeholder: "请选择",
79
- onClick: inputClick
80
- }, {
81
- suffix: withCtx(() => [
82
- createVNode(_component_el_icon, { onClick: inputClick }, {
83
- default: withCtx(() => [
84
- createVNode(unref(Search))
85
- ]),
86
- _: 1
87
- })
88
- ]),
89
- _: 1
90
- }, 8, ["modelValue"]),
91
- createVNode(_component_el_dialog, {
92
- modelValue: dialogVisible.value,
93
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dialogVisible.value = $event),
94
- title: "Tips",
95
- width: "500"
96
- }, {
97
- footer: withCtx(() => [
98
- createElementVNode("div", _hoisted_1, [
99
- createVNode(_component_el_button, {
100
- onClick: _cache[1] || (_cache[1] = ($event) => dialogVisible.value = false)
101
- }, {
102
- default: withCtx(() => [
103
- createTextVNode("取消")
104
- ]),
105
- _: 1
106
- }),
107
- createVNode(_component_el_button, {
108
- type: "primary",
109
- onClick: confirm
110
- }, {
111
- default: withCtx(() => [
112
- createTextVNode(" 确定 ")
113
- ]),
114
- _: 1
115
- })
116
- ])
117
- ]),
118
- default: withCtx(() => [
119
- createVNode(_component_el_table, {
120
- data: tableData,
121
- style: { "width": "100%" },
122
- onSelectionChange: handleSelectionChange
123
- }, {
124
- default: withCtx(() => [
125
- createVNode(_component_el_table_column, {
126
- type: "selection",
127
- width: "55"
128
- }),
129
- createVNode(_component_el_table_column, {
130
- prop: "date",
131
- label: "Date",
132
- width: "180"
133
- }),
134
- createVNode(_component_el_table_column, {
135
- prop: "name",
136
- label: "Name",
137
- width: "180"
138
- }),
139
- createVNode(_component_el_table_column, {
140
- prop: "address",
141
- label: "Address"
142
- })
143
- ]),
144
- _: 1
145
- })
146
- ]),
147
- _: 1
148
- }, 8, ["modelValue"])
149
- ], 64);
150
- };
151
- }
152
- });
1
+ import _sfc_main from "./dataorigin-input-table.vue2.js";
153
2
  export {
154
3
  _sfc_main as default
155
4
  };
@@ -1,4 +1,155 @@
1
- import _sfc_main from "./dataorigin-input-table.vue.js";
1
+ import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, createTextVNode } from "vue";
2
+ import { Search } from "@element-plus/icons-vue";
3
+ const _hoisted_1 = { class: "dialog-footer" };
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "dataorigin-input-table",
6
+ props: {
7
+ modelValue: {
8
+ type: String,
9
+ default: ""
10
+ }
11
+ },
12
+ emits: ["update:modelValue"],
13
+ setup(__props, { emit: __emit }) {
14
+ const props = __props;
15
+ const inputValue = ref(props.modelValue);
16
+ const emit = __emit;
17
+ const tableData = [
18
+ {
19
+ id: 1,
20
+ date: "2016-05-03",
21
+ name: "Tom",
22
+ address: "No. 189, Grove St, Los Angeles"
23
+ },
24
+ {
25
+ id: 2,
26
+ date: "2016-05-02",
27
+ name: "Tom",
28
+ address: "No. 189, Grove St, Los Angeles"
29
+ },
30
+ {
31
+ id: 3,
32
+ date: "2016-05-04",
33
+ name: "Tom",
34
+ address: "No. 189, Grove St, Los Angeles"
35
+ },
36
+ {
37
+ id: 4,
38
+ date: "2016-05-01",
39
+ name: "Tom",
40
+ address: "No. 189, Grove St, Los Angeles"
41
+ }
42
+ ];
43
+ const dialogVisible = ref(false);
44
+ const selectData = ref([]);
45
+ watch(() => props.modelValue, (newVal) => {
46
+ inputValue.value = newVal;
47
+ });
48
+ function confirm() {
49
+ if (selectData.value.length > 0) {
50
+ let str = "";
51
+ selectData.value.forEach((item) => {
52
+ str = str + item.name + ",";
53
+ });
54
+ str = str.substring(0, str.length - 1);
55
+ emit("update:modelValue", str);
56
+ dialogVisible.value = false;
57
+ } else {
58
+ dialogVisible.value = false;
59
+ }
60
+ }
61
+ function handleSelectionChange(selection) {
62
+ selectData.value = selection;
63
+ }
64
+ function inputClick() {
65
+ dialogVisible.value = true;
66
+ }
67
+ return (_ctx, _cache) => {
68
+ const _component_el_icon = resolveComponent("el-icon");
69
+ const _component_el_input = resolveComponent("el-input");
70
+ const _component_el_table_column = resolveComponent("el-table-column");
71
+ const _component_el_table = resolveComponent("el-table");
72
+ const _component_el_button = resolveComponent("el-button");
73
+ const _component_el_dialog = resolveComponent("el-dialog");
74
+ return openBlock(), createElementBlock(Fragment, null, [
75
+ createVNode(_component_el_input, {
76
+ modelValue: inputValue.value,
77
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
78
+ placeholder: "请选择",
79
+ onClick: inputClick
80
+ }, {
81
+ suffix: withCtx(() => [
82
+ createVNode(_component_el_icon, { onClick: inputClick }, {
83
+ default: withCtx(() => [
84
+ createVNode(unref(Search))
85
+ ]),
86
+ _: 1
87
+ })
88
+ ]),
89
+ _: 1
90
+ }, 8, ["modelValue"]),
91
+ createVNode(_component_el_dialog, {
92
+ modelValue: dialogVisible.value,
93
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dialogVisible.value = $event),
94
+ title: "Tips",
95
+ width: "500"
96
+ }, {
97
+ footer: withCtx(() => [
98
+ createElementVNode("div", _hoisted_1, [
99
+ createVNode(_component_el_button, {
100
+ onClick: _cache[1] || (_cache[1] = ($event) => dialogVisible.value = false)
101
+ }, {
102
+ default: withCtx(() => [
103
+ createTextVNode("取消")
104
+ ]),
105
+ _: 1
106
+ }),
107
+ createVNode(_component_el_button, {
108
+ type: "primary",
109
+ onClick: confirm
110
+ }, {
111
+ default: withCtx(() => [
112
+ createTextVNode(" 确定 ")
113
+ ]),
114
+ _: 1
115
+ })
116
+ ])
117
+ ]),
118
+ default: withCtx(() => [
119
+ createVNode(_component_el_table, {
120
+ data: tableData,
121
+ style: { "width": "100%" },
122
+ onSelectionChange: handleSelectionChange
123
+ }, {
124
+ default: withCtx(() => [
125
+ createVNode(_component_el_table_column, {
126
+ type: "selection",
127
+ width: "55"
128
+ }),
129
+ createVNode(_component_el_table_column, {
130
+ prop: "date",
131
+ label: "Date",
132
+ width: "180"
133
+ }),
134
+ createVNode(_component_el_table_column, {
135
+ prop: "name",
136
+ label: "Name",
137
+ width: "180"
138
+ }),
139
+ createVNode(_component_el_table_column, {
140
+ prop: "address",
141
+ label: "Address"
142
+ })
143
+ ]),
144
+ _: 1
145
+ })
146
+ ]),
147
+ _: 1
148
+ }, 8, ["modelValue"])
149
+ ], 64);
150
+ };
151
+ }
152
+ });
2
153
  export {
3
154
  _sfc_main as default
4
155
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, withDirectives, vShow, createTextVNode } from "vue";
1
+ import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, withDirectives, vShow, createTextVNode } from "vue";
2
2
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
3
  import { getCustomFuncs } from "../../../../utils/page-event-util.js";
4
4
  import _sfc_main$2 from "../../common/common-attr-size.vue.js";
@@ -10,7 +10,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "datepicker-attr-base",
11
11
  props: {
12
12
  configure: {
13
- type: Object
13
+ type: Object,
14
+ required: true
14
15
  },
15
16
  default: () => ({ props: {} })
16
17
  },
@@ -26,12 +27,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
27
  const isScope = (!propBase.type || propBase.type != "week" && propBase.type != "year") && propBase.dateScope;
27
28
  return isScope ? "默认值1" : "默认值";
28
29
  });
29
- computed(() => {
30
- const propBase = props.configure.props.base;
31
- return (!propBase.type || propBase.type != "week" && propBase.type != "year") && propBase.dateScope;
32
- });
33
- function afterBindVariable(modelValue) {
30
+ function afterBindVariable(modelValue, alias) {
34
31
  props.configure.props.base.prop = modelValue;
32
+ if (alias) {
33
+ props.configure.props.base.title = alias;
34
+ }
35
35
  }
36
36
  function afterBindDefaultValue(modelValue, fieldName) {
37
37
  if (fieldName === "defaultValue2") {
@@ -127,7 +127,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
127
127
  _: 1
128
128
  })) : createCommentVNode("", true),
129
129
  createVNode(_component_el_form_item, {
130
- label: unref(labelName),
130
+ label: labelName.value,
131
131
  class: "amb-design-attr-item"
132
132
  }, {
133
133
  default: withCtx(() => [
@@ -25,8 +25,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  if (props.configure.isTable) {
26
26
  isTable.value = true;
27
27
  }
28
- function afterBindVariable(modelValue) {
28
+ function afterBindVariable(modelValue, alias) {
29
29
  props.configure.props.base.prop = modelValue;
30
+ if (alias) {
31
+ props.configure.props.base.title = alias;
32
+ }
30
33
  }
31
34
  function afterBindDefaultValue(modelValue) {
32
35
  props.configure.props.base.defaultValue = modelValue;
@@ -28,12 +28,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  if (props.configure.isTable) {
29
29
  isTable.value = true;
30
30
  }
31
- function afterBindVariable(modelValue, fieldName) {
31
+ function afterBindVariable(modelValue, fieldName, alias) {
32
32
  if (fieldName == "prop") {
33
33
  props.configure.props.base.prop = modelValue;
34
34
  } else {
35
35
  props.configure.props.base.propName = modelValue;
36
36
  }
37
+ if (alias) {
38
+ props.configure.props.base.title = alias;
39
+ }
37
40
  }
38
41
  return (_ctx, _cache) => {
39
42
  const _component_el_option = resolveComponent("el-option");
@@ -116,7 +119,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
116
119
  key: __props.configure.uuid,
117
120
  modelValue: __props.configure.props.base.prop,
118
121
  paramTypes: ["data"],
119
- "onUpdate:modelValue": _cache[2] || (_cache[2] = (value) => afterBindVariable(value, "prop"))
122
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = (value, alias) => afterBindVariable(value, "prop", alias))
120
123
  }, null, 8, ["modelValue"]))
121
124
  ]),
122
125
  _: 1
@@ -21,8 +21,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  if (props.configure.isTable) {
22
22
  isTable.value = true;
23
23
  }
24
- function afterBindVariable(modelValue) {
24
+ function afterBindVariable(modelValue, alias) {
25
25
  props.configure.props.base.prop = modelValue;
26
+ if (alias) {
27
+ props.configure.props.base.title = alias;
28
+ }
26
29
  }
27
30
  function afterBindDefaultValue(modelValue) {
28
31
  props.configure.props.base.defaultValue = modelValue;
@@ -51,8 +51,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
51
51
  function barCodeRuleRemove(row) {
52
52
  props.configure.props.scan.ruleList = props.configure.props.scan.ruleList.filter((item) => item !== row);
53
53
  }
54
- function afterBindVariable(modelValue) {
54
+ function afterBindVariable(modelValue, alias) {
55
55
  props.configure.props.base.prop = modelValue;
56
+ if (alias) {
57
+ props.configure.props.base.title = alias;
58
+ }
56
59
  }
57
60
  function afterBindDefaultValue(modelValue) {
58
61
  props.configure.props.base.defaultValue = modelValue;
@@ -25,8 +25,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  if (props.configure.isTable) {
26
26
  isTable.value = true;
27
27
  }
28
- function afterBindVariable(modelValue) {
28
+ function afterBindVariable(modelValue, alias) {
29
29
  props.configure.props.base.prop = modelValue;
30
+ if (alias) {
31
+ props.configure.props.base.title = alias;
32
+ }
30
33
  }
31
34
  function afterBindDefaultValue(modelValue) {
32
35
  props.configure.props.base.defaultValue = modelValue;
@@ -27,8 +27,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  if (props.configure.isTable) {
28
28
  isTable.value = true;
29
29
  }
30
- function afterBindVariable(modelValue) {
30
+ function afterBindVariable(modelValue, alias) {
31
31
  props.configure.props.base.prop = modelValue;
32
+ if (alias) {
33
+ props.configure.props.base.title = alias;
34
+ }
32
35
  }
33
36
  function afterBindDefaultValue(modelValue) {
34
37
  props.configure.props.base.defaultValue = modelValue;