super-page-designer 2.2.91-sit7 → 2.2.92-sit6

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 (30) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +1 -1
  2. package/dist/es/components/design/utils/page-design-util.d.ts +3 -1
  3. package/dist/es/components/design/utils/page-design-util.js +23 -22
  4. package/dist/es/components/design/utils/page-table-util.js +62 -54
  5. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +1 -1
  6. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +50 -48
  7. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/container/card/card-design.vue.js +2 -2
  9. package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +1 -1
  10. package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +4 -4
  11. package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +1 -1
  12. package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +4 -4
  13. package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +6 -6
  14. package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -1
  15. package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +6 -6
  16. package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +8 -8
  17. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
  18. package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
  19. package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +1 -1
  20. package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
  21. package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
  22. package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +24 -24
  23. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +2 -26
  24. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +26 -2
  25. package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +1 -1
  26. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
  27. package/dist/es/components/design/views/design/view/view-design-display.vue.js +2 -2
  28. package/dist/es/style.css +34 -34
  29. package/package.json +4 -4
  30. /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue3.js → common-variable-bind.vue2.js} +0 -0
@@ -3,41 +3,44 @@ import { getFormPropName as t } from "./page-helper-util.js";
3
3
  import { getDesignEvents as r } from "./assemblys-config.js";
4
4
  import { addI18nKey as a } from "./page-i18n-util.js";
5
5
  import { findDesignItemByUuid as i } from "./common-util.js";
6
- function s(t2, r2, a2) {
6
+ import { getComponentOptionConfigsBase as s } from "super-page-runtime";
7
+ function o(t2, r2, a2) {
7
8
  let i2 = window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/table-columns";
8
9
  return i2 += "?systemCode=" + (t2 || ""), i2 += "&publishVersion=" + (r2 || ""), i2 += "&tableName=" + (a2 || ""), e.get(i2);
9
10
  }
10
- function o(t2, r2, a2) {
11
+ function n(t2, r2, a2) {
11
12
  const i2 = { systemCode: t2, formVersion: r2, publishVersion: a2 };
12
13
  return e.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/list-view-children/forms", i2);
13
14
  }
14
- function n(e2, r2) {
15
+ function p(e2, r2) {
15
16
  const i2 = JSON.stringify(e2), s2 = JSON.parse(i2);
16
- if (r2.tableRuntimes || (r2.tableRuntimes = {}), r2.tableRuntimes[s2.uuid] = function(e3, r3, i3) {
17
+ r2.tableRuntimes || (r2.tableRuntimes = {}), r2.tableRuntimes[s2.uuid] = function(e3, r3, i3) {
17
18
  var _a;
18
- const s3 = "V" + r3.version + "__" + r3.code + "__" + e3.uuid, o2 = { configure: i3, code: s3, name: e3.title, totalType: e3.props.base ? e3.props.base.totalType : null, remark: e3.props.base ? e3.props.base.remark : null, pagination: e3.props.base ? e3.props.base.subPaging : null, rowNum: e3.props.base ? e3.props.base.pageSize : null, optionalRows: e3.props.base ? e3.props.base.pageSizes : null, layout: e3.props.base ? JSON.stringify(e3.props.base.layout) : null, startQuery: e3.props.base ? e3.props.base.startQuery : null, popUp: e3.props.base ? e3.props.base.popUp : null, isInitializationQuery: e3.props.dataOrigin.initializationQuery, defaultQueryCriteria: e3.props.dataOrigin.defaultQueryCriteria, queryLabelPosition: e3.props.base ? e3.props.base.queryLabelPosition : null, editable: e3.props.base ? e3.props.base.editable : null, urlToListData: e3.props.base ? e3.props.base.urlToListData : null, isSql: true, customConfig: e3.props.base ? e3.props.base.customConfig : null, tableName: e3.props.dataOrigin.tableName, totalable: e3.props.title.totalable, defaultSortField: JSON.stringify(e3.props.dataOrigin.sortField), titleAlign: e3.props.base ? e3.props.base.alignTitle : null, contAlign: e3.props.base ? e3.props.base.alignContent : null, displayEffect: e3.props.base ? e3.props.base.displayEffect : null, textOverflow: (_a = e3.props.base) == null ? void 0 : _a.textOverflow, isDragColumn: e3.props.base ? e3.props.base.isDragColumn : null, border: e3.props.base ? e3.props.base.border : null, customImportColumns: e3.props.importSetting.importFields };
19
- return o2.items = function(e4, r4) {
19
+ const s3 = "V" + r3.version + "__" + r3.code + "__" + e3.uuid, o3 = { configure: i3, code: s3, name: e3.title, totalType: e3.props.base ? e3.props.base.totalType : null, remark: e3.props.base ? e3.props.base.remark : null, pagination: e3.props.base ? e3.props.base.subPaging : null, rowNum: e3.props.base ? e3.props.base.pageSize : null, optionalRows: e3.props.base ? e3.props.base.pageSizes : null, layout: e3.props.base ? JSON.stringify(e3.props.base.layout) : null, startQuery: e3.props.base ? e3.props.base.startQuery : null, popUp: e3.props.base ? e3.props.base.popUp : null, isInitializationQuery: e3.props.dataOrigin.initializationQuery, defaultQueryCriteria: e3.props.dataOrigin.defaultQueryCriteria, queryLabelPosition: e3.props.base ? e3.props.base.queryLabelPosition : null, editable: e3.props.base ? e3.props.base.editable : null, urlToListData: e3.props.base ? e3.props.base.urlToListData : null, isSql: true, customConfig: e3.props.base ? e3.props.base.customConfig : null, tableName: e3.props.dataOrigin.tableName, totalable: e3.props.title.totalable, defaultSortField: JSON.stringify(e3.props.dataOrigin.sortField), titleAlign: e3.props.base ? e3.props.base.alignTitle : null, contAlign: e3.props.base ? e3.props.base.alignContent : null, displayEffect: e3.props.base ? e3.props.base.displayEffect : null, textOverflow: (_a = e3.props.base) == null ? void 0 : _a.textOverflow, isDragColumn: e3.props.base ? e3.props.base.isDragColumn : null, border: e3.props.base ? e3.props.base.border : null, customImportColumns: e3.props.importSetting.importFields };
20
+ return o3.items = function(e4, r4) {
20
21
  var _a2;
21
22
  const i4 = [];
22
23
  return (_a2 = e4.items) == null ? void 0 : _a2.forEach((e5) => {
23
- const s4 = { controlName: u(e5) };
24
- let o3 = { headerName: e5.props.base.name, prop: t(e5.props.base.prop), width: e5.props.base.columnWidth, listColumnSort: e5.props.base.sortable, filterable: e5.props.base.filterable, visible: e5.props.base.visible, exportable: e5.props.base.exportable, total: e5.props.base.total, listColumnFixed: e5.props.base.listColumnFixed, format: f(e5), valueSet: p(e5), querySettingName: e5.props.base.querySettingName ? e5.props.base.querySettingName : "no", queryMatching: e5.props.base.queryMatching, querySetting: e5.props.querySetting ? JSON.stringify(e5.props.querySetting) : null, editable: e5.props.editLine.editable, defaultValue: e5.props.base.defaultValue, controlName: s4.controlName, controlConfig: d(e5), eventType: g(e5), displayOrder: e5.props.base.displayOrder, fileSet: c(e5), orgTreeSet: m(e5), dynamicColumnJson: y(e5), valueSetOptions: l(e5), required: e5.props.verification.required, pattern: e5.props.verification.verifyRegex, checkType: S(e5.props.verification.type), contAlign: e5.props.base ? e5.props.base.alignContent : null, titleAlign: e5.props.base ? e5.props.base.alignTitle : null, i18nKey: e5.props.base.name };
25
- r4.i18nKeys && a(e5.props.base.name, r4), i4.push(o3);
24
+ const s4 = { controlName: c(e5) };
25
+ let o4 = { headerName: e5.props.base.name, prop: t(e5.props.base.prop), width: e5.props.base.columnWidth, listColumnSort: e5.props.base.sortable, filterable: e5.props.base.filterable, visible: e5.props.base.visible, exportable: e5.props.base.exportable, total: e5.props.base.total, listColumnFixed: e5.props.base.listColumnFixed, format: g(e5), valueSet: l(e5), querySettingName: e5.props.base.querySettingName ? e5.props.base.querySettingName : "no", queryMatching: e5.props.base.queryMatching, querySetting: e5.props.querySetting ? JSON.stringify(e5.props.querySetting) : null, editable: e5.props.editLine.editable, defaultValue: e5.props.base.defaultValue, controlName: s4.controlName, controlConfig: b(e5), eventType: S(e5), displayOrder: e5.props.base.displayOrder, fileSet: f(e5), orgTreeSet: d(e5), dynamicColumnJson: C(e5), valueSetOptions: u(e5, r4.systemCode, r4.systemVersion), required: e5.props.verification.required, pattern: e5.props.verification.verifyRegex, checkType: h(e5.props.verification.type), contAlign: e5.props.base ? e5.props.base.alignContent : null, titleAlign: e5.props.base ? e5.props.base.alignTitle : null, i18nKey: e5.props.base.name };
26
+ r4.i18nKeys && a(e5.props.base.name, r4), i4.push(o4);
26
27
  }), i4;
27
- }(e3, r3), o2.groupHeaders = function(e4) {
28
+ }(e3, r3), o3.groupHeaders = function(e4) {
28
29
  const t2 = [];
29
30
  e4.props.base.isEnableGroupHeader && e4.props.groupHeaders && e4.props.groupHeaders.forEach((e5) => {
30
31
  const r4 = { titleText: e5.titleText, parentCode: e5.parentUuid, displayOrder: e5.displayOrder, prop: e5.prop, uuid: e5.uuid };
31
32
  t2.push(r4);
32
33
  });
33
34
  return t2.sort((e5, t3) => e5.displayOrder - t3.displayOrder), t2;
34
- }(e3), o2;
35
- }(s2, r2, i2), delete e2.btnList, delete e2.items, delete e2.modelFields, e2.runtime && e2.runtime.events) {
36
- const { events: t2 } = e2.runtime;
37
- e2.runtime = { events: t2 };
35
+ }(e3), o3;
36
+ }(s2, r2, i2), delete e2.btnList, delete e2.items, delete e2.modelFields;
37
+ const o2 = s2.runtime;
38
+ if (o2 && (o2.events || o2.common)) {
39
+ const { events: t2, common: r3 } = o2;
40
+ e2.runtime = { events: t2, common: r3 };
38
41
  } else delete e2.runtime;
39
42
  }
40
- function p(e2, t2) {
43
+ function l(e2, t2) {
41
44
  const r2 = e2.props;
42
45
  if ("inputNumber" === e2.name) return null;
43
46
  if (r2.dataOrigin && r2.dataOrigin.optionValueSetType && "none" !== r2.dataOrigin.optionValueSetType) {
@@ -51,25 +54,30 @@ function p(e2, t2) {
51
54
  if ("service" === e3) return `${e3}:${r2.dataOrigin.serveName}`;
52
55
  }
53
56
  }
54
- function l(e2) {
55
- const t2 = e2.props;
57
+ function u(e2, t2, r2) {
58
+ const a2 = e2.props;
56
59
  if ("inputNumber" === e2.name) {
57
- const e3 = { step: t2.base.step, precision: t2.base.precision };
58
- return e3.min = t2.base.min || 0 === t2.base.min ? t2.base.min : null, e3.max = t2.base.max || 0 === t2.base.max ? t2.base.max : null, JSON.stringify(e3);
60
+ const e3 = { step: a2.base.step, precision: a2.base.precision };
61
+ return e3.min = a2.base.min || 0 === a2.base.min ? a2.base.min : null, e3.max = a2.base.max || 0 === a2.base.max ? a2.base.max : null, JSON.stringify(e3);
59
62
  }
60
- if ("switch" === e2.name) return JSON.stringify({ activeText: t2.base.activeText, activeValue: t2.base.activeValue, inactiveText: t2.base.inactiveText, inactiveValue: t2.base.inactiveValue, offColor: t2.base.offColor, onColor: t2.base.onColor });
61
- if (t2.dataOrigin && t2.dataOrigin.optionValueSetType) {
62
- if ("dynamicData" === t2.dataOrigin.optionValueSetType) {
63
- const e3 = [];
64
- return t2.dataOrigin.autoSets.forEach((t3) => {
65
- const r2 = b(t3.target);
66
- e3.push({ columnName: b(t3.source), valueField: r2, valueColumn: { name: r2, dbColumnName: r2.toUpperCase() } });
67
- }), JSON.stringify({ dynamicDataSourceCode: t2.dataOrigin.dynamicDataSourceCode, valueSetOptions: e3 });
63
+ if ("switch" === e2.name) return JSON.stringify({ activeText: a2.base.activeText, activeValue: a2.base.activeValue, inactiveText: a2.base.inactiveText, inactiveValue: a2.base.inactiveValue, offColor: a2.base.offColor, onColor: a2.base.onColor });
64
+ if (a2.dataOrigin && a2.dataOrigin.optionValueSetType) {
65
+ const i2 = a2.dataOrigin.optionValueSetType, o2 = a2.dataOrigin;
66
+ if ("dynamicData" === i2) return JSON.stringify({ type: "dynamicData", dynamicDataSourceCode: o2.dynamicDataSourceCode, filterType: o2.filterType, valueSetOptions: m(o2), valueLabelSwitch: !!o2.valueLabelSwitch });
67
+ {
68
+ const a3 = s(e2, t2, r2);
69
+ return a3 ? (a3.valueSetOptions = m(o2), JSON.stringify(a3)) : null;
68
70
  }
69
- return null;
70
71
  }
71
72
  }
72
- function u(e2) {
73
+ function m(e2) {
74
+ const t2 = [];
75
+ return e2.autoSets.forEach((e3) => {
76
+ const r2 = y(e3.target);
77
+ t2.push({ columnName: y(e3.source), valueField: r2, valueColumn: { name: r2, dbColumnName: r2.toUpperCase() } });
78
+ }), t2;
79
+ }
80
+ function c(e2) {
73
81
  if (!e2.name) return null;
74
82
  switch (e2.name) {
75
83
  case "input-text":
@@ -136,25 +144,25 @@ function u(e2) {
136
144
  return "custom:" + e2.props.base.customComponent;
137
145
  }
138
146
  }
139
- function m(e2) {
147
+ function d(e2) {
140
148
  if ("dept-tree" === e2.name) {
141
149
  const t2 = [];
142
150
  return e2.props.base.otherFieldSets && e2.props.base.otherFieldSets.length > 0 && e2.props.base.otherFieldSets.forEach((e3) => {
143
- t2.push({ type: e3.source, model: b(e3.target) });
151
+ t2.push({ type: e3.source, model: y(e3.target) });
144
152
  }), JSON.stringify({ orgTreeSetArr: t2 });
145
153
  }
146
154
  return null;
147
155
  }
148
- function c(e2) {
156
+ function f(e2) {
149
157
  if ("file-upload" === e2.name) {
150
- const t2 = b(e2.props.base.prop), r2 = b(e2.props.format ? e2.props.format.fileUuid : null);
158
+ const t2 = y(e2.props.base.prop), r2 = y(e2.props.format ? e2.props.format.fileUuid : null);
151
159
  let a2 = {};
152
160
  return t2 && (a2.showNameData = { name: t2, dbName: t2.toUpperCase() }), r2 && (a2.serverNameData = { name: r2, dbName: r2.toUpperCase() }), e2.props.uploadConfig && (e2.props.uploadConfig.multiple ? a2.multiple = true : a2.multiple = false, e2.props.uploadConfig.accept ? a2.accept = e2.props.uploadConfig.accept : a2.accept = null, e2.props.uploadConfig.limitFileSize ? a2.limitFileSize = e2.props.uploadConfig.limitFileSize : a2.limitFileSize = null, e2.props.uploadConfig.openCameraOrChoosePhoto ? a2.openCameraOrChoosePhoto = e2.props.uploadConfig.openCameraOrChoosePhoto : a2.openCameraOrChoosePhoto = null), JSON.stringify(a2);
153
161
  }
154
162
  return null;
155
163
  }
156
- function d(e2) {
157
- var _a, _b, _c, _d;
164
+ function b(e2) {
165
+ var _a, _b, _c, _d, _e, _f;
158
166
  let t2 = {};
159
167
  if ("select" === e2.name) {
160
168
  const r2 = e2.props.base, a2 = r2.allowCreate, i2 = r2.clearable;
@@ -164,9 +172,9 @@ function d(e2) {
164
172
  const r2 = !!((_a = e2.props.scan) == null ? void 0 : _a.enable), a2 = (_b = e2.props.scan) == null ? void 0 : _b.ruleList;
165
173
  t2 = { scanEnable: r2, scanRuleList: a2 };
166
174
  } else "custom" === e2.name ? t2.parameter = e2.props.parameter : "datePicker" === e2.name && (t2 = { format: e2.props.base.format, valueFormat: e2.props.base.valueFormat });
167
- return ((_c = e2.style) == null ? void 0 : _c.cellStyle) && (t2.cellStyle = e2.style.cellStyle), ((_d = e2.style) == null ? void 0 : _d.titleStyle) && (t2 || (t2 = {}), t2.titleStyle = e2.style.titleStyle), t2 ? JSON.stringify(t2) : null;
175
+ return ((_c = e2.style) == null ? void 0 : _c.cellStyle) && (t2.cellStyle = e2.style.cellStyle), ((_d = e2.style) == null ? void 0 : _d.titleStyle) && (t2.titleStyle = e2.style.titleStyle), ((_f = (_e = e2.props) == null ? void 0 : _e.base) == null ? void 0 : _f.editConditions) && e2.props.base.editConditions.length > 0 && (t2.editConditions = e2.props.base.editConditions), t2 ? JSON.stringify(t2) : null;
168
176
  }
169
- function f(e2) {
177
+ function g(e2) {
170
178
  var _a, _b, _c;
171
179
  if (e2.props.format) {
172
180
  if ("hyperlinks" === e2.props.format.type && ((_a = e2.props.linkPage) == null ? void 0 : _a.length) > 0) {
@@ -189,23 +197,23 @@ function f(e2) {
189
197
  }
190
198
  return null;
191
199
  }
192
- function b(e2) {
200
+ function y(e2) {
193
201
  if (e2) {
194
202
  const t2 = e2.match(/\${(.*?)\.(.*?)}/);
195
203
  if (t2) return t2[2];
196
204
  }
197
205
  return e2;
198
206
  }
199
- function g(e2, t2) {
207
+ function S(e2, t2) {
200
208
  let r2 = null;
201
209
  return e2.events && (e2.events.forEach((e3) => {
202
210
  e3.jsContent && e3.jsContent.trim() && (r2 || (r2 = {}), r2[e3.name] = e3.componentUuid + "_" + e3.name);
203
211
  }), r2) ? JSON.stringify(r2) : r2;
204
212
  }
205
- function y(e2) {
213
+ function C(e2) {
206
214
  return e2.props.base.prop && "dynamicColumnSelect" === e2.props.base.prop ? JSON.stringify(e2.props.dynamicColumnData) : null;
207
215
  }
208
- function S(e2) {
216
+ function h(e2) {
209
217
  if (Array.isArray(e2) && e2.length > 0) {
210
218
  const t2 = [];
211
219
  return e2.forEach((e3) => {
@@ -214,38 +222,38 @@ function S(e2) {
214
222
  }
215
223
  return Array.isArray(e2) && 0 === e2.length ? null : e2;
216
224
  }
217
- function C(e2, t2) {
225
+ function O(e2, t2) {
218
226
  let a2 = { uuid: e2.uuid, base: e2.props.base, dataOrigin: e2.props.dataOrigin, dynamicColumnData: e2.props.dynamicColumnData, editLine: e2.props.editLine, format: e2.props.format, verification: e2.props.verification, definition: e2.props.definition, size: e2.props.size };
219
227
  e2.props = {}, e2.uuid = a2.uuid, e2.props.base = a2.base, e2.props.dataOrigin = a2.dataOrigin, e2.props.dynamicColumnData = a2.dynamicColumnData, e2.props.editLine = a2.editLine, e2.props.format = a2.format, e2.props.verification = a2.verification, e2.props.definition = a2.definition, e2.props.size = a2.size, e2.events = r(t2), e2.name = t2;
220
228
  }
221
- function O(e2, t2) {
229
+ function T(e2, t2) {
222
230
  return e2 = {}, t2.forEach((t3) => {
223
231
  e2[t3.dbColumnName] = t3;
224
232
  }), e2;
225
233
  }
226
- function h(e2, t2) {
234
+ function N(e2, t2) {
227
235
  let r2, a2 = e2.tableName;
228
236
  return a2 || (e2.tableRuntimes && t2 && e2.tableRuntimes[t2] && e2.pageType && "list" === e2.pageType && (r2 = JSON.parse(e2.tableRuntimes[t2].configure)), r2 && r2.props && r2.props.dataOrigin ? r2.props.dataOrigin.tableName : null);
229
237
  }
230
- function T(e2) {
238
+ function v(e2) {
231
239
  let t2 = [];
232
240
  return e2 && e2.forEach((e3) => {
233
241
  t2.push({ value: e3.dbColumnName, label: e3.alias, alias: e3.alias, dataType: e3.dataType });
234
242
  }), t2;
235
243
  }
236
- function N(e2, t2, r2) {
244
+ function D(e2, t2, r2) {
237
245
  var _a;
238
246
  const a2 = e2 ? e2.pageType : null;
239
247
  let s2, o2;
240
248
  return r2 ? s2 = r2 : (t2 == null ? void 0 : t2.props.base.tableUuid) ? (o2 = t2.props.base.tableUuid, s2 = i(e2, o2)) : a2 && "list" === a2 && ((_a = e2 == null ? void 0 : e2.tableUuids) == null ? void 0 : _a.length) > 0 ? (o2 = e2 == null ? void 0 : e2.tableUuids[0], s2 = i(e2, o2)) : (e2 == null ? void 0 : e2.currentTableConfig) && (s2 = e2.currentTableConfig), s2;
241
249
  }
242
250
  export {
243
- O as changeFeieldToMap,
244
- T as getModelOptionsByFields,
245
- N as getTableConfigByTableUuid,
246
- h as getTableNameByTableUuid,
247
- o as querySublist,
248
- s as queryTableFields,
249
- n as setTableRuntimesFromConfigure,
250
- C as tableResetConfigIndo
251
+ T as changeFeieldToMap,
252
+ v as getModelOptionsByFields,
253
+ D as getTableConfigByTableUuid,
254
+ N as getTableNameByTableUuid,
255
+ n as querySublist,
256
+ o as queryTableFields,
257
+ p as setTableRuntimesFromConfigure,
258
+ O as tableResetConfigIndo
251
259
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./common-icon-bind.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const i = e(o, [["__scopeId", "data-v-0f7ddbc5"]]);
4
+ const i = e(o, [["__scopeId", "data-v-3be9b759"]]);
5
5
  export {
6
6
  i as default
7
7
  };
@@ -2,91 +2,93 @@ import { defineComponent as e, ref as l, computed as o, resolveComponent as a, r
2
2
  import { Close as k, Check as I, Search as x, Plus as $, InfoFilled as C, CircleClose as A } from "@element-plus/icons-vue";
3
3
  import * as V from "@element-plus/icons";
4
4
  import O from "agilebuilder-ui/src/utils/request";
5
- const U = { key: 0 }, j = { class: "amb-component-popover-left-menu-main" }, z = ["onClick"], P = { key: 1, style: { display: "flex", gap: "10px", "align-items": "center" } }, E = { key: 2 }, L = { key: 3, class: "amb-component-popover-icon-list-scroll", style: { overflow: "auto" } }, S = { class: "amb-component-popover-icon-grid" }, T = ["onClick"], N = { key: 4, style: { "text-align": "right" } }, q = e({ __name: "common-icon-bind", props: { iconType: String, iconValue: String, size: { type: String, default: "small" }, showLabel: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(e2, { emit: q2 }) {
5
+ const U = { key: 0 }, j = { class: "amb-component-popover-left-menu-main" }, z = ["onClick"], P = { key: 1, style: { display: "flex", gap: "10px", "align-items": "center" } }, E = { key: 2 }, S = { key: 3, class: "amb-component-popover-icon-list-scroll", style: { overflow: "auto" } }, L = { class: "amb-component-popover-icon-grid" }, T = ["onClick"], N = { key: 4, style: { "text-align": "right" } }, q = e({ __name: "common-icon-bind", props: { iconType: String, iconValue: String, size: { type: String, default: "small" }, showLabel: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(e2, { emit: q2 }) {
6
6
  var _a, _b;
7
- const M = q2, B = e2, R = l([]), D = l([]), F = l([]), G = l([{ value: "ElementUI", label: "ElementUI" }, { value: "ambIcon", label: "Amb图标库" }, { value: "ambColorIcon", label: "Amb彩色图标库", dataList: [] }, { value: "custom", label: "自定义" }]);
7
+ const M = q2, B = e2, R = l([]), D = l([]), F = l([]), G = l([]), H = l([{ value: "ElementUI", label: "ElementUI" }, { value: "ambIcon", label: "Amb图标库" }, { value: "ambColorIcon", label: "Amb彩色图标库", dataList: [] }, { value: "svgIcon", label: "Svg图标库" }, { value: "custom", label: "自定义" }]);
8
8
  l(false);
9
- const H = l(1), J = l(B.iconType ?? ((_b = (_a = G.value) == null ? void 0 : _a[0]) == null ? void 0 : _b.value)), K = l("");
10
- K.value = B.iconValue;
11
- const Q = l({}), W = l(""), X = l(), Y = l(false), Z = o(() => ["ElementUI"].includes(J.value) ? R.value : ["ambIcon"].includes(J.value) ? D.value : F.value), ee = o(() => {
12
- let e3 = Z.value ?? [];
13
- return W.value && (e3 = e3.filter((e4) => [e4.label ?? "", e4.value ?? ""].some((e5) => {
9
+ const J = l(1), K = l(B.iconType ?? ((_b = (_a = H.value) == null ? void 0 : _a[0]) == null ? void 0 : _b.value)), Q = l("");
10
+ Q.value = B.iconValue;
11
+ const W = l({}), X = l(""), Y = l(), Z = l(false), ee = o(() => ["ElementUI"].includes(K.value) ? R.value : ["ambIcon"].includes(K.value) ? D.value : ["ambColorIcon"].includes(K.value) ? F.value : G.value), le = o(() => {
12
+ let e3 = ee.value ?? [];
13
+ return X.value && (e3 = e3.filter((e4) => [e4.label ?? "", e4.value ?? ""].some((e5) => {
14
14
  var _a2;
15
- return (_a2 = e5.toLowerCase()) == null ? void 0 : _a2.includes(W.value.toLowerCase());
16
- }))), e3.slice(0, 50 * H.value);
17
- }), le = () => {
18
- ee.value.length > 0 && !Y.value && Z.value.length > ee.value.length && !W.value && H.value++;
15
+ return (_a2 = e5.toLowerCase()) == null ? void 0 : _a2.includes(X.value.toLowerCase());
16
+ }))), e3.slice(0, 50 * J.value);
17
+ }), oe = () => {
18
+ le.value.length > 0 && !Z.value && ee.value.length > le.value.length && !X.value && J.value++;
19
19
  };
20
- const oe = async () => {
21
- if (!(F.value.length > 0)) {
20
+ const ae = async () => {
21
+ if (!(G.value.length > 0)) {
22
22
  try {
23
- Y.value = true;
23
+ Z.value = true;
24
24
  const e3 = await O.post(window.$vueApp.config.globalProperties.baseAPI + "/component/general-icon/query", { pageSize: 200, pageNo: 1 }), l2 = (e3 == null ? void 0 : e3.data) ?? [], o2 = [];
25
25
  for (let e4 of l2) o2.push({ value: e4.iconName, label: e4.iconName });
26
- Q.value.customOptions = o2, F.value = o2;
26
+ W.value.customOptions = o2, G.value = o2;
27
27
  } catch (e3) {
28
28
  }
29
- Y.value = false;
29
+ Z.value = false;
30
30
  }
31
31
  };
32
- function ae(e3) {
32
+ function ne(e3) {
33
33
  var l2;
34
- H.value = 1, J.value = e3, "ElementUI" === (l2 = J.value) ? R.value = Q.value.elementUIOptions : "custom" === l2 ? oe() : ["ambIcon"].includes(l2) ? (async () => {
34
+ J.value = 1, K.value = e3, "ElementUI" === (l2 = K.value) ? R.value = W.value.elementUIOptions : "custom" === l2 ? ae() : ["ambIcon"].includes(l2) ? (async () => {
35
35
  var _a2, _b2, _c;
36
36
  if (!(D.value.length > 0)) {
37
37
  try {
38
- Y.value = true;
38
+ Z.value = true;
39
39
  let e4 = `${window.location.origin}${window.location.pathname}font-icon/iconfont.json`;
40
40
  ((_c = (_b2 = (_a2 = window.$vueApp) == null ? void 0 : _a2.config) == null ? void 0 : _b2.globalProperties) == null ? void 0 : _c.fontIconAddress) && (e4 = `${window.$vueApp.config.globalProperties.fontIconAddress}/iconfont.json`);
41
41
  const l3 = await fetch(e4, { mode: "cors" }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [] } = l3 ?? {};
42
42
  D.value = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
43
43
  } catch (e4) {
44
44
  }
45
- Y.value = false;
45
+ Z.value = false;
46
46
  }
47
47
  })() : ["ambColorIcon"].includes(l2) && async function() {
48
48
  var _a2, _b2, _c;
49
- try {
50
- Y.value = true;
51
- let e4 = `${window.location.origin}${window.location.pathname}font-icon/iconfont.json`;
52
- ((_c = (_b2 = (_a2 = window.$vueApp) == null ? void 0 : _a2.config) == null ? void 0 : _b2.globalProperties) == null ? void 0 : _c.fontIconAddress) && (e4 = `${window.$vueApp.config.globalProperties.fontIconAddress}-color/iconfont.json`);
53
- const l3 = await fetch(e4, { mode: "cors", headers: { "Content-Type": "application/json" } }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [], font_family: n2 } = l3;
54
- G.value[G.value.findIndex((e5) => "ambColorIcon" === e5.value)].dataList = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
55
- } catch (e4) {
49
+ if (!(F.value.length > 0)) {
50
+ try {
51
+ Z.value = true;
52
+ let e4 = `${window.location.origin}${window.location.pathname}font-icon/iconfont.json`;
53
+ ((_c = (_b2 = (_a2 = window.$vueApp) == null ? void 0 : _a2.config) == null ? void 0 : _b2.globalProperties) == null ? void 0 : _c.fontIconAddress) && (e4 = `${window.$vueApp.config.globalProperties.fontIconAddress}-color/iconfont.json`);
54
+ const l3 = await fetch(e4, { mode: "cors", headers: { "Content-Type": "application/json" } }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [] } = l3 ?? {};
55
+ F.value = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
56
+ } catch (e4) {
57
+ }
58
+ Z.value = false;
56
59
  }
57
- Y.value = false;
58
60
  }();
59
61
  }
60
- function ne() {
61
- var _a2, _b2;
62
- (_b2 = (_a2 = X.value) == null ? void 0 : _a2.hide) == null ? void 0 : _b2.call(_a2);
63
- }
64
62
  function te() {
65
- K.value = "", M("update:modelValue", "", ""), X.value.hide();
63
+ var _a2, _b2;
64
+ (_b2 = (_a2 = Y.value) == null ? void 0 : _a2.hide) == null ? void 0 : _b2.call(_a2);
66
65
  }
67
66
  function ue() {
68
- if (W.value = W.value.trim(), !W.value) return void ElMessage.warning("请输入图标名!");
69
- const e3 = Q.value.customOptions || [];
67
+ Q.value = "", M("update:modelValue", "", ""), Y.value.hide();
68
+ }
69
+ function ie() {
70
+ if (X.value = X.value.trim(), !X.value) return void ElMessage.warning("请输入图标名!");
71
+ const e3 = W.value.customOptions || [];
70
72
  let l2 = false;
71
- for (let o3 of e3) if (o3.value === W.value) {
73
+ for (let o3 of e3) if (o3.value === X.value) {
72
74
  l2 = true;
73
75
  break;
74
76
  }
75
- J.value = "custom", K.value = W.value;
76
- const o2 = W.value;
77
- if (W.value = "", M("update:modelValue", J.value, K.value), X.value.hide(), !l2) {
77
+ K.value = "custom", Q.value = X.value;
78
+ const o2 = X.value;
79
+ if (X.value = "", M("update:modelValue", K.value, Q.value), Y.value.hide(), !l2) {
78
80
  const e4 = { iconName: o2 };
79
81
  O.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/general-icon/get-or-create", e4).then((e5) => {
80
- "custom" == J.value && oe();
82
+ "custom" == K.value && ae();
81
83
  }).catch((e5) => {
82
84
  ElMessage.warning("保存图标失败!");
83
85
  });
84
86
  }
85
87
  }
86
- function ie() {
88
+ function ce() {
87
89
  _(() => {
88
90
  !function() {
89
- if (!Q.value.elementUIOptions) {
91
+ if (!W.value.elementUIOptions) {
90
92
  if (!window.temp_Icon_Options) {
91
93
  const e3 = [];
92
94
  for (const [l2, o2] of Object.entries(V)) e3.push({ value: l2, label: l2, component: o2 });
@@ -95,17 +97,17 @@ const U = { key: 0 }, j = { class: "amb-component-popover-left-menu-main" }, z =
95
97
  return o2.localeCompare(a2);
96
98
  }), window.temp_Icon_Options = e3;
97
99
  }
98
- Q.value.elementUIOptions = window.temp_Icon_Options;
100
+ W.value.elementUIOptions = window.temp_Icon_Options;
99
101
  }
100
- }(), ae(J.value);
102
+ }(), ne(K.value);
101
103
  });
102
104
  }
103
105
  return l(), (l2, o2) => {
104
- const _2 = a("el-icon"), V2 = a("el-input"), O2 = a("el-button"), q3 = a("el-tooltip"), B2 = a("el-scrollbar"), R2 = a("el-col"), D2 = a("el-empty"), F2 = a("el-tag"), H2 = a("SuperIcon"), Q2 = a("el-row"), oe2 = a("el-popover"), ce = n("infinite-scroll"), se = n("loading");
105
- return e2.showLabel ? (i(), t("span", U, c(K.value), 1)) : (i(), u(oe2, { key: 1, ref_key: "popoverRef", ref: X, "popper-class": "amb-component-popover-main", trigger: "click", width: 540 }, { reference: s(() => [v(V2, { readonly: "", size: e2.size, onClick: ie, modelValue: K.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => K.value = e3), placeholder: "请选择" }, { suffix: s(() => [p(v(_2, { style: { cursor: "pointer" }, onClick: h(te, ["stop"]) }, { default: s(() => [v(r(A))]), _: 1 }, 512), [[b, K.value]])]), _: 1 }, 8, ["size", "modelValue"])]), default: s(() => [v(Q2, null, { default: s(() => [v(q3, { effect: "dark", content: "关闭", placement: "top-end" }, { default: s(() => [v(O2, { type: "text", class: "amb-component-popover-close-btn", icon: r(k), onClick: ne }, null, 8, ["icon"])]), _: 1 }), v(R2, { span: 8 }, { default: s(() => [m("div", j, [v(B2, { "max-height": "100%" }, { default: s(() => [(i(true), t(d, null, f(G.value, (e3) => (i(), t("div", { class: g(["amb-popover-menu-item", e3.value == J.value ? "is-active" : ""]), onClick: (l3) => ae(e3.value) }, [v(_2, null, { default: s(() => [p(v(r(I), null, null, 512), [[b, e3.value == J.value]])]), _: 2 }, 1024), m("span", null, c(e3.label), 1)], 10, z))), 256))]), _: 1 })])]), _: 1 }), p((i(), u(R2, { span: 16, style: { "padding-left": "10px" }, class: "amb-component-popover-icon-list-view" }, { default: s(() => [J.value ? y("", true) : (i(), u(D2, { key: 0, description: "请选择类型", "image-size": 80 })), J.value ? (i(), t("div", P, [v(V2, { modelValue: W.value, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => W.value = e3), placeholder: "搜索", size: "default", "prefix-icon": r(x), clearable: "", style: { flex: "1 1 auto" } }, null, 8, ["modelValue", "prefix-icon"]), ["custom"].includes(J.value) && W.value && !ee.value.length ? (i(), u(q3, { key: 0, effect: "dark", content: "创建该图标", placement: "top-end" }, { default: s(() => [v(O2, { type: "primary", circle: "", icon: r($), onClick: ue }, null, 8, ["icon"])]), _: 1 })) : y("", true)])) : y("", true), ["custom"].includes(J.value) ? (i(), t("div", E, [v(_2, null, { default: s(() => [v(r(C))]), _: 1 }), o2[4] || (o2[4] = m("span", { style: { "margin-left": "5px" } }, "输入图标名后点击加号按钮添加", -1)), o2[5] || (o2[5] = w("   ")), v(q3, null, { content: s(() => o2[2] || (o2[2] = [w(" 1.支持fa图标,图标名称详见官网:https://fontawesome.com.cn/v4/icons-ui/; "), m("br", null, null, -1), w(" 2.支持svg图标,需以svg-开头,接svg内容,如:svg-xxxxxx. ")])), default: s(() => [v(F2, { type: "primary" }, { default: s(() => o2[3] || (o2[3] = [w("更多")])), _: 1 })]), _: 1 })])) : y("", true), J.value ? p((i(), t("div", L, [ee.value.length || Y.value ? y("", true) : (i(), u(D2, { key: 0, description: "没有相关图标", "image-size": 80 })), m("div", S, [(i(true), t(d, null, f(ee.value, (e3) => (i(), u(q3, { key: e3.value, effect: "dark", content: e3.label, placement: "top" }, { default: s(() => [m("div", { class: "amb-component-popover-icon-grid-item", onClick: (l3) => {
106
- return o3 = e3, K.value = o3.value, M("update:modelValue", J.value, K.value), void X.value.hide();
106
+ const _2 = a("el-icon"), V2 = a("el-input"), O2 = a("el-button"), q3 = a("el-tooltip"), B2 = a("el-scrollbar"), R2 = a("el-col"), D2 = a("el-empty"), F2 = a("el-tag"), G2 = a("SuperIcon"), J2 = a("el-row"), W2 = a("el-popover"), ae2 = n("infinite-scroll"), se = n("loading");
107
+ return e2.showLabel ? (i(), t("span", U, c(Q.value), 1)) : (i(), u(W2, { key: 1, ref_key: "popoverRef", ref: Y, "popper-class": "amb-component-popover-main", trigger: "click", width: 540 }, { reference: s(() => [v(V2, { readonly: "", size: e2.size, onClick: ce, modelValue: Q.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => Q.value = e3), placeholder: "请选择" }, { suffix: s(() => [p(v(_2, { style: { cursor: "pointer" }, onClick: h(ue, ["stop"]) }, { default: s(() => [v(r(A))]), _: 1 }, 512), [[b, Q.value]])]), _: 1 }, 8, ["size", "modelValue"])]), default: s(() => [v(J2, null, { default: s(() => [v(q3, { effect: "dark", content: "关闭", placement: "top-end" }, { default: s(() => [v(O2, { type: "text", class: "amb-component-popover-close-btn", icon: r(k), onClick: te }, null, 8, ["icon"])]), _: 1 }), v(R2, { span: 8 }, { default: s(() => [m("div", j, [v(B2, { "max-height": "100%" }, { default: s(() => [(i(true), t(d, null, f(H.value, (e3) => (i(), t("div", { class: g(["amb-popover-menu-item", e3.value == K.value ? "is-active" : ""]), onClick: (l3) => ne(e3.value) }, [v(_2, null, { default: s(() => [p(v(r(I), null, null, 512), [[b, e3.value == K.value]])]), _: 2 }, 1024), m("span", null, c(e3.label), 1)], 10, z))), 256))]), _: 1 })])]), _: 1 }), p((i(), u(R2, { span: 16, style: { "padding-left": "10px" }, class: "amb-component-popover-icon-list-view" }, { default: s(() => [K.value ? y("", true) : (i(), u(D2, { key: 0, description: "请选择类型", "image-size": 80 })), K.value ? (i(), t("div", P, [v(V2, { modelValue: X.value, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => X.value = e3), placeholder: "搜索", size: "default", "prefix-icon": r(x), clearable: "", style: { flex: "1 1 auto" } }, null, 8, ["modelValue", "prefix-icon"]), ["custom"].includes(K.value) && X.value && !le.value.length ? (i(), u(q3, { key: 0, effect: "dark", content: "创建该图标", placement: "top-end" }, { default: s(() => [v(O2, { type: "primary", circle: "", icon: r($), onClick: ie }, null, 8, ["icon"])]), _: 1 })) : y("", true)])) : y("", true), ["custom"].includes(K.value) ? (i(), t("div", E, [v(_2, null, { default: s(() => [v(r(C))]), _: 1 }), o2[4] || (o2[4] = m("span", { style: { "margin-left": "5px" } }, "输入图标名后点击加号按钮添加", -1)), o2[5] || (o2[5] = w("   ")), v(q3, null, { content: s(() => o2[2] || (o2[2] = [w(" 1.支持fa图标,图标名称详见官网:https://fontawesome.com.cn/v4/icons-ui/; "), m("br", null, null, -1), w(" 2.支持svg图标,需以svg-img-开头,接svg内容,如:svg-img-xxxxxx. ")])), default: s(() => [v(F2, { type: "primary" }, { default: s(() => o2[3] || (o2[3] = [w("更多")])), _: 1 })]), _: 1 })])) : y("", true), K.value ? p((i(), t("div", S, [le.value.length || Z.value ? y("", true) : (i(), u(D2, { key: 0, description: "没有相关图标", "image-size": 80 })), m("div", L, [(i(true), t(d, null, f(le.value, (e3) => (i(), u(q3, { key: e3.value, effect: "dark", content: e3.label, placement: "top" }, { default: s(() => [m("div", { class: "amb-component-popover-icon-grid-item", onClick: (l3) => {
108
+ return o3 = e3, Q.value = o3.value, M("update:modelValue", K.value, Q.value), void Y.value.hide();
107
109
  var o3;
108
- } }, [v(H2, { iconType: J.value, iconValue: e3.value }, null, 8, ["iconType", "iconValue"])], 8, T)]), _: 2 }, 1032, ["content"]))), 128))])])), [[ce, le]]) : y("", true), J.value ? (i(), t("div", N, c(ee.value.length) + " / " + c(Z.value.length), 1)) : y("", true)]), _: 1 })), [[se, Y.value]])]), _: 1 })]), _: 1 }, 512));
110
+ } }, [v(G2, { iconType: K.value, iconValue: e3.value }, null, 8, ["iconType", "iconValue"])], 8, T)]), _: 2 }, 1032, ["content"]))), 128))])])), [[ae2, oe]]) : y("", true), K.value ? (i(), t("div", N, c(le.value.length) + " / " + c(ee.value.length), 1)) : y("", true)]), _: 1 })), [[se, Z.value]])]), _: 1 })]), _: 1 }, 512));
109
111
  };
110
112
  } });
111
113
  export {
@@ -1,4 +1,4 @@
1
- import o from "./common-variable-bind.vue3.js";
1
+ import o from "./common-variable-bind.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = e(o, [["__scopeId", "data-v-3324003e"]]);
@@ -1,7 +1,7 @@
1
1
  import e from "./card-design.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = r(e, [["__scopeId", "data-v-65a008af"]]);
4
+ const o = r(e, [["__scopeId", "data-v-231a66cb"]]);
5
5
  export {
6
- a as default
6
+ o as default
7
7
  };
@@ -44,7 +44,7 @@ const T = e({ __name: "card-design", props: { pageDesign: {}, configure: {}, ind
44
44
  const n2 = i2.indexOf(e3);
45
45
  if (n2 > -1) {
46
46
  const t2 = v(S(e3));
47
- t2.uuid = k(), D(t2), i2.splice(n2, 0, t2);
47
+ t2.uuid = k(), D(t2, V.pageDesign), i2.splice(n2, 0, t2);
48
48
  }
49
49
  }
50
50
  function N(e3) {
@@ -3,9 +3,9 @@ import { VueDraggable as x } from "vue-draggable-plus";
3
3
  import O from "../../object-design.vue.js";
4
4
  import { SuperIcon as V } from "agilebuilder-ui";
5
5
  import { deepCopy as j, getUuidv4 as W } from "../../../../utils/common-util.js";
6
- import { caculateComponentStyle as _ } from "../../../../utils/container-design-util.js";
6
+ import { caculateComponentStyle as D } from "../../../../utils/container-design-util.js";
7
7
  import "element-plus";
8
- import { copyHandleEvents as D, deleteDesignItem as k } from "../../../../utils/page-design-util.js";
8
+ import { copyHandleEvents as _, deleteDesignItem as k } from "../../../../utils/page-design-util.js";
9
9
  const C = e({ __name: "collapse-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: C2 }) {
10
10
  const S = e2;
11
11
  S.configure.items || (S.configure.items = [{ label: "Panel", index: 1, items: [] }, { label: "Panel", items: [], index: 2 }]);
@@ -17,7 +17,7 @@ const C = e({ __name: "collapse-design", props: { pageDesign: {}, configure: {},
17
17
  });
18
18
  const P = l(() => [...S.configure.items]);
19
19
  function w() {
20
- _(S.configure, A, U, E), S.configure.runtime.style = A.value, S.configure.runtime.class = U.value, S.configure.runtime.headerStyle = E.value;
20
+ D(S.configure, A, U, E), S.configure.runtime.style = A.value, S.configure.runtime.class = U.value, S.configure.runtime.headerStyle = E.value;
21
21
  }
22
22
  i(P, (e3, t2) => {
23
23
  e3.forEach((e4) => {
@@ -42,7 +42,7 @@ const C = e({ __name: "collapse-design", props: { pageDesign: {}, configure: {},
42
42
  const i3 = l2.items.indexOf(e3);
43
43
  if (i3 > -1) {
44
44
  const t4 = h(j(e3));
45
- return t4.uuid = W(), D(t4), void l2.items.splice(i3, 0, t4);
45
+ return t4.uuid = W(), _(t4, S.pageDesign), void l2.items.splice(i3, 0, t4);
46
46
  }
47
47
  }
48
48
  }
@@ -49,7 +49,7 @@ const j = e({ __name: "container-design", props: { pageDesign: {}, configure: {}
49
49
  const n2 = i2.indexOf(e3);
50
50
  if (-1 == n2) return void alert("无可复制对象!");
51
51
  const l2 = h(W(e3));
52
- l2.uuid = y(), A(l2), i2.splice(n2, 0, l2);
52
+ l2.uuid = y(), A(l2, D.pageDesign), i2.splice(n2, 0, l2);
53
53
  }
54
54
  function H(e3) {
55
55
  K(e3, "left");
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, watch as i, computed as n, resolveComponent as o, createBlock as l, openBlock as s, normalizeClass as u, normalizeStyle as r, withCtx as g, createElementBlock as f, Fragment as c, renderList as m, reactive as a } from "vue";
1
+ import { defineComponent as e, ref as t, watch as i, computed as n, resolveComponent as o, createBlock as l, openBlock as s, normalizeClass as u, normalizeStyle as r, withCtx as g, createElementBlock as f, Fragment as c, renderList as a, reactive as m } from "vue";
2
2
  import { useDraggable as p } from "vue-draggable-plus";
3
3
  import d from "../../object-design.vue.js";
4
4
  import { deepCopy as x, getUuidv4 as b } from "../../../../utils/common-util.js";
@@ -46,8 +46,8 @@ const O = e({ __name: "flex-design", props: { pageDesign: {}, configure: {}, ind
46
46
  let t2 = W.configure.items;
47
47
  const i2 = t2.indexOf(e3);
48
48
  if (-1 == i2) return void alert("无可复制对象!");
49
- const n2 = a(x(e3));
50
- n2.uuid = b(), y(n2), t2.splice(i2, 0, n2);
49
+ const n2 = m(x(e3));
50
+ n2.uuid = b(), y(n2, W.pageDesign), t2.splice(i2, 0, n2);
51
51
  }
52
52
  function w(e3) {
53
53
  let t2 = W.configure.items;
@@ -55,7 +55,7 @@ const O = e({ __name: "flex-design", props: { pageDesign: {}, configure: {}, ind
55
55
  }
56
56
  return (e3, t2) => {
57
57
  const i2 = o("el-row");
58
- return s(), l(i2, { title: "flex", ref_key: "ambDragParent", ref: k, style: r([{ "min-height": "40px", "padding-bottom": "20px" }, h.value]), justify: _.value.flexJustify, align: _.value.alignItems, class: u([D.value, "amb-design-item-default"]) }, { default: g(() => [(s(true), f(c, null, m(e3.configure.items, (t3, i3) => (s(), l(d, { key: t3, pageDesign: e3.pageDesign, configure: t3, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: F, onOnCustomAttrWidget: G, onOnCopy: S, onOnDelete: w }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj"]))), 128))]), _: 1 }, 8, ["justify", "align", "style", "class"]);
58
+ return s(), l(i2, { title: "flex", ref_key: "ambDragParent", ref: k, style: r([{ "min-height": "40px", "padding-bottom": "20px" }, h.value]), justify: _.value.flexJustify, align: _.value.alignItems, class: u([D.value, "amb-design-item-default"]) }, { default: g(() => [(s(true), f(c, null, a(e3.configure.items, (t3, i3) => (s(), l(d, { key: t3, pageDesign: e3.pageDesign, configure: t3, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: F, onOnCustomAttrWidget: G, onOnCopy: S, onOnDelete: w }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj"]))), 128))]), _: 1 }, 8, ["justify", "align", "style", "class"]);
59
59
  };
60
60
  } });
61
61
  export {
@@ -1,11 +1,11 @@
1
- import { defineComponent as e, ref as t, watch as i, computed as n, resolveComponent as o, createElementBlock as l, openBlock as s, createVNode as r, normalizeClass as u, normalizeStyle as c, withCtx as g, createCommentVNode as f, toDisplayString as a, Fragment as m, renderList as p, createBlock as d, reactive as b } from "vue";
1
+ import { defineComponent as e, ref as t, watch as i, computed as n, resolveComponent as o, createElementBlock as l, openBlock as s, createVNode as r, normalizeClass as u, normalizeStyle as c, withCtx as g, createCommentVNode as a, toDisplayString as f, Fragment as m, renderList as p, createBlock as d, reactive as b } from "vue";
2
2
  import { useDraggable as v } from "vue-draggable-plus";
3
3
  import y from "../../object-design.vue.js";
4
4
  import { deepCopy as O, getUuidv4 as h } from "../../../../utils/common-util.js";
5
5
  import { caculateComponentStyle as j } from "../../../../utils/container-design-util.js";
6
6
  import "element-plus";
7
7
  import { copyHandleEvents as W, deleteDesignItem as x } from "../../../../utils/page-design-util.js";
8
- const S = { class: "amb-design-item-default" }, D = e({ __name: "form-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: D2 }) {
8
+ const D = { class: "amb-design-item-default" }, S = e({ __name: "form-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: S2 }) {
9
9
  const _ = e2;
10
10
  _.configure.items || (_.configure.items = []), null == _.configure.props && (_.configure.props = {}), _.configure.runtime || (_.configure.runtime = {});
11
11
  const C = _.configure.default ? _.configure.default : {}, k = t({});
@@ -44,7 +44,7 @@ const S = { class: "amb-design-item-default" }, D = e({ __name: "form-design", p
44
44
  N(), i(_.configure.style, () => {
45
45
  N();
46
46
  });
47
- const P = t(null), { start: q } = v(P, _.configure.items, { filter: ".el-scrollbar__bar", preventOnFilter: false, group: { name: "amb-assembly-item" }, animation: 300, ghostClass: "amb-item-ghost", forceFallback: true }), B = D2;
47
+ const P = t(null), { start: q } = v(P, _.configure.items, { filter: ".el-scrollbar__bar", preventOnFilter: false, group: { name: "amb-assembly-item" }, animation: 300, ghostClass: "amb-item-ghost", forceFallback: true }), B = S2;
48
48
  function E(e3, t2) {
49
49
  B("onSelectWidget", e3, t2);
50
50
  }
@@ -55,7 +55,7 @@ const S = { class: "amb-design-item-default" }, D = e({ __name: "form-design", p
55
55
  const t2 = _.configure.items.indexOf(e3);
56
56
  if (-1 == t2) return void alert("无可复制对象!");
57
57
  const i2 = b(O(e3));
58
- i2.uuid = h(), W(i2), _.configure.items.splice(t2, 0, i2);
58
+ i2.uuid = h(), W(i2, _.pageDesign), _.configure.items.splice(t2, 0, i2);
59
59
  }
60
60
  function I(e3) {
61
61
  const t2 = _.configure.items;
@@ -63,9 +63,9 @@ const S = { class: "amb-design-item-default" }, D = e({ __name: "form-design", p
63
63
  }
64
64
  return (e3, t2) => {
65
65
  const i2 = o("el-form");
66
- return s(), l("div", S, [r(i2, { ref_key: "ambDragParent", ref: P, "label-width": k.value.labelWidth, "label-position": k.value.labelPosition, size: k.value.componentSize, style: c([z.value, { "padding-bottom": "40px" }]), class: u(A.value) }, { default: g(() => [k.value.formTitle ? (s(), l("div", { key: 0, class: "amb-widget-form-title", style: c(F.value) }, a(k.value.formTitle), 5)) : f("", true), (s(true), l(m, null, p(e3.configure.items, (t3, i3) => (s(), d(y, { key: t3, pageDesign: e3.pageDesign, configure: t3, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: E, onOnCustomAttrWidget: G, onOnCopy: H, onOnDelete: I }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
66
+ return s(), l("div", D, [r(i2, { ref_key: "ambDragParent", ref: P, "label-width": k.value.labelWidth, "label-position": k.value.labelPosition, size: k.value.componentSize, style: c([z.value, { "padding-bottom": "40px" }]), class: u(A.value) }, { default: g(() => [k.value.formTitle ? (s(), l("div", { key: 0, class: "amb-widget-form-title", style: c(F.value) }, f(k.value.formTitle), 5)) : a("", true), (s(true), l(m, null, p(e3.configure.items, (t3, i3) => (s(), d(y, { key: t3, pageDesign: e3.pageDesign, configure: t3, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: E, onOnCustomAttrWidget: G, onOnCopy: H, onOnDelete: I }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
67
67
  };
68
68
  } });
69
69
  export {
70
- D as default
70
+ S as default
71
71
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./tabs-design.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = t(e, [["__scopeId", "data-v-f64cf23d"]]);
4
+ const s = t(e, [["__scopeId", "data-v-626f9a46"]]);
5
5
  export {
6
6
  s as default
7
7
  };