super-page-designer 2.3.3-design1 → 2.3.3-sit1-design1

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 (38) hide show
  1. package/dist/es/components/design/utils/page-event-util.js +0 -1
  2. package/dist/es/components/design/utils/page-i18n-util.js +5 -6
  3. package/dist/es/components/design/utils/page-table-util.js +2 -2
  4. package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +16 -16
  5. package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
  6. package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +12 -13
  7. package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +4 -4
  8. package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-base.vue.js +4 -5
  9. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +17 -17
  10. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +0 -3
  11. package/dist/es/components/design/views/assemblys/common/common-style-background.vue.js +2 -3
  12. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
  13. package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue3.js → common-variable-bind.vue2.js} +13 -13
  14. package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +4 -4
  15. package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr.vue2.js +2 -3
  16. package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +22 -22
  17. package/dist/es/components/design/views/assemblys/data/bar-code/barcode-design.vue2.js +3 -3
  18. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +1 -1
  19. package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +10 -10
  20. package/dist/es/components/design/views/assemblys/data/component/import-header.vue.js +2 -2
  21. package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +8 -8
  22. package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +4 -4
  23. package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +3 -3
  24. package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +1 -1
  25. package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +6 -6
  26. package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +16 -16
  27. package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +11 -11
  28. package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +13 -14
  29. package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +2 -2
  30. package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +1 -1
  31. package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-design.vue2.js +1 -1
  32. package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js +3 -3
  33. package/dist/es/components/design/views/design/page-design.vue2.js +1 -1
  34. package/dist/es/components/design/views/design/page-event/config.vue3.js +17 -18
  35. package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +0 -1
  36. package/dist/es/components/design/views/design/view/page-switch.vue2.js +2 -3
  37. package/dist/es/stores/undo-redo-store.js +1 -1
  38. package/package.json +4 -4
@@ -6,7 +6,6 @@ function t() {
6
6
  try {
7
7
  for (let e2 of o) "customFunc" == e2.name && r.push({ value: e2.eventName, label: e2.eventName + (e2.remark ? "-" + e2.remark : "") });
8
8
  } catch (e2) {
9
- console.error("获取自定义方法失败", e2);
10
9
  }
11
10
  return r;
12
11
  }
@@ -1,20 +1,19 @@
1
1
  const e = ["tools", "form"];
2
- function s(r, a) {
2
+ function s(l, o) {
3
3
  var _a;
4
4
  try {
5
- r.name || r.label && o(r.label, a), ((_a = r.props) == null ? void 0 : _a.base) && !e.includes(r.name) && (r.props.base.title && o(r.props.base.title, a), r.props.base.placeholder && o(r.props.base.placeholder, a), r.props.base.label && o(r.props.base.label, a)), r.items && r.items.length > 0 && r.items.forEach((e2) => {
6
- s(e2, a);
5
+ l.name || l.label && a(l.label, o), ((_a = l.props) == null ? void 0 : _a.base) && !e.includes(l.name) && (l.props.base.title && a(l.props.base.title, o), l.props.base.placeholder && a(l.props.base.placeholder, o), l.props.base.label && a(l.props.base.label, o)), l.items && l.items.length > 0 && l.items.forEach((e2) => {
6
+ s(e2, o);
7
7
  });
8
8
  } catch (e2) {
9
- console.error(e2);
10
9
  }
11
10
  }
12
- function o(e2, s2) {
11
+ function a(e2, s2) {
13
12
  Array.isArray(e2) || (e2 = [e2]), e2.forEach((e3) => {
14
13
  s2.i18nKeys.includes(e3) || s2.i18nKeys.push(e3);
15
14
  });
16
15
  }
17
16
  export {
18
- o as addI18nKey,
17
+ a as addI18nKey,
19
18
  s as setPagetemI18nKey
20
19
  };
@@ -167,11 +167,11 @@ function b(e2) {
167
167
  if ("select" === e2.name) {
168
168
  const r2 = e2.props.base, a2 = r2.allowCreate, i2 = r2.clearable;
169
169
  let s2 = false;
170
- "normal" === e2.props.dataOrigin.filterType && (s2 = true), t2 = { automaticDropdown: false, clearable: i2, filterable: s2, allowCreate: a2 };
170
+ ("normal" === e2.props.dataOrigin.filterType || a2) && (s2 = true), t2 = { automaticDropdown: false, clearable: i2, filterable: s2, allowCreate: a2 };
171
171
  } else if ("input-text" === e2.name) {
172
172
  const r2 = !!((_a = e2.props.scan) == null ? void 0 : _a.enable), a2 = (_b = e2.props.scan) == null ? void 0 : _b.ruleList;
173
173
  t2 = { scanEnable: r2, scanRuleList: a2 };
174
- } else "custom" === e2.name ? t2.parameter = e2.props.parameter : "datePicker" === e2.name ? t2 = { format: e2.props.base.format, valueFormat: e2.props.base.valueFormat } : "dept-tree" === e2.name && (t2.limitFilterColumn = e2.props.base.limitFilterColumn, t2.deptScope = e2.props.base.deptScope, t2.deptScopeField = e2.props.base.deptScopeField, t2.deptScopeDepts = e2.props.base.deptScopeDepts);
174
+ } else "custom" === e2.name ? t2.customParams = e2.props.parameter : "datePicker" === e2.name ? t2 = { format: e2.props.base.format, valueFormat: e2.props.base.valueFormat } : "dept-tree" === e2.name && (t2.limitFilterColumn = e2.props.base.limitFilterColumn, t2.deptScope = e2.props.base.deptScope, t2.deptScopeField = e2.props.base.deptScopeField, t2.deptScopeDepts = e2.props.base.deptScopeDepts);
175
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;
176
176
  }
177
177
  function g(e2) {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as o, watch as l, resolveComponent as a, createBlock as i, openBlock as n, withCtx as t, createVNode as s, createCommentVNode as u, createElementVNode as r, createElementBlock as p, Fragment as f, renderList as c, createTextVNode as g, withDirectives as d, vShow as m } from "vue";
1
+ import { defineComponent as e, ref as l, watch as o, resolveComponent as a, createBlock as i, openBlock as n, withCtx as t, createVNode as s, createCommentVNode as u, createElementVNode as r, createElementBlock as p, Fragment as f, renderList as c, createTextVNode as g, withDirectives as d, vShow as m } from "vue";
2
2
  import b from "../component/condition-dialog.vue.js";
3
3
  import v from "../component/set-dialog.vue.js";
4
4
  import y from "../component/combination.vue.js";
@@ -11,7 +11,7 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, D = e({ __name: "button-att
11
11
  } }, pageDesign: { type: Object, default: () => {
12
12
  } } }, setup(e2) {
13
13
  var _a;
14
- const D2 = e2, O = o(["base"]), j = o(false), M = o([]), x = (_a = D2.pageDesign) == null ? void 0 : _a.systemVersion, L = o(h(D2.pageDesign, D2.configure));
14
+ const D2 = e2, O = l(["base"]), j = l(false), M = l([]), x = (_a = D2.pageDesign) == null ? void 0 : _a.systemVersion, L = l(h(D2.pageDesign, D2.configure));
15
15
  function R() {
16
16
  j.value = false;
17
17
  }
@@ -21,39 +21,39 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, D = e({ __name: "button-att
21
21
  V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${D2.pageDesign.systemCode}/${x}`).then((e3) => {
22
22
  M.value = e3;
23
23
  });
24
- const N = o(false);
24
+ const N = l(false);
25
25
  function U() {
26
26
  N.value = false;
27
27
  }
28
- const z = o(false);
28
+ const z = l(false);
29
29
  function A() {
30
30
  z.value = false;
31
31
  }
32
32
  function $(e3) {
33
- D2.configure.props.setValueList = e3, D2.configure.props.setValueList;
33
+ D2.configure.props.setValueList = e3;
34
34
  }
35
- const F = o(false);
35
+ const F = l(false);
36
36
  function P() {
37
37
  F.value = false;
38
38
  }
39
39
  function W(e3) {
40
40
  D2.configure.props.base.showConditions = JSON.stringify(e3);
41
41
  }
42
- const q = o(J("opinion")), I = o(J("wfRemark"));
42
+ const q = l(J("opinion")), I = l(J("wfRemark"));
43
43
  function J(e3) {
44
- let o2 = false;
45
- const l2 = D2.configure.events.filter((e4) => "click" === e4.name && e4.eventName);
46
- if (l2 && l2.length > 0) {
47
- const a2 = l2[0].eventName;
48
- o2 = k(a2, e3);
44
+ let l2 = false;
45
+ const o2 = D2.configure.events.filter((e4) => "click" === e4.name && e4.eventName);
46
+ if (o2 && o2.length > 0) {
47
+ const a2 = o2[0].eventName;
48
+ l2 = k(a2, e3);
49
49
  }
50
- return o2;
50
+ return l2;
51
51
  }
52
- return l(D2.configure.events, (e3) => {
52
+ return o(D2.configure.events, (e3) => {
53
53
  q.value = J("opinion"), I.value = J("wfRemark"), q.value || (D2.configure.props.base.isMustOpinion = false);
54
- }, { immediate: true }), (o2, l2) => {
54
+ }, { immediate: true }), (l2, o2) => {
55
55
  const k2 = a("el-option"), V2 = a("el-select"), h2 = a("el-form-item"), D3 = a("el-button"), x2 = a("el-text"), J2 = a("el-switch"), B = a("el-collapse-item"), E = a("el-collapse"), G = a("el-form");
56
- return n(), i(G, { "label-width": "80px", size: "small" }, { default: t(() => [s(E, { modelValue: O.value, "onUpdate:modelValue": l2[7] || (l2[7] = (e3) => O.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [s(B, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", w, [s(h2, { label: "成功后", class: "amb-design-attr-item" }, { default: t(() => [s(V2, { modelValue: e2.configure.props.base.successOperation, "onUpdate:modelValue": l2[0] || (l2[0] = (o3) => e2.configure.props.base.successOperation = o3), class: "ml-4" }, { default: t(() => [s(k2, { label: "无操作", value: "noOperation" }), s(k2, { label: "刷新", value: "refresh" }), s(k2, { label: "关闭窗口", value: "closeWindow" }), s(k2, { label: "关闭窗口并刷新列表", value: "closeWindowAndRefresh" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(h2, { label: "转换规则", class: "amb-design-attr-item" }, { default: t(() => [s(V2, { modelValue: e2.configure.props.base.conversionCodes, "onUpdate:modelValue": l2[1] || (l2[1] = (o3) => e2.configure.props.base.conversionCodes = o3), multiple: "", class: "ml-4" }, { default: t(() => [(n(true), p(f, null, c(M.value, (e3) => (n(), i(k2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(h2, { label: "执行条件", class: "amb-design-attr-item" }, { default: t(() => [s(D3, { type: "primary", onClick: l2[2] || (l2[2] = (e3) => N.value = true) }, { default: t(() => l2[8] || (l2[8] = [g("编辑")])), _: 1 })]), _: 1 }), s(h2, { label: "启用条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_edit", configure: e2.configure, title: "启用条件", tableConfigure: L.value, type: "editConditions" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(h2, { label: "自动设值", class: "amb-design-attr-item" }, { default: t(() => [s(D3, { type: "primary", onClick: l2[3] || (l2[3] = (e3) => z.value = true) }, { default: t(() => l2[9] || (l2[9] = [g("编辑")])), _: 1 }), d(s(x2, { type: "success" }, { default: t(() => l2[10] || (l2[10] = [g("  已设置条件. ")])), _: 1 }, 512), [[m, e2.configure.props && e2.configure.props.setValueList && e2.configure.props.setValueList.length > 0]])]), _: 1 }), s(h2, { label: "显示条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_show", configure: e2.configure, type: "showConditions", tableConfigure: L.value }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(h2, { label: "日志设置", class: "amb-design-attr-item" }, { default: t(() => [s(D3, { type: "primary", onClick: l2[4] || (l2[4] = (e3) => j.value = true) }, { default: t(() => l2[11] || (l2[11] = [g("编辑")])), _: 1 })]), _: 1 }), q.value ? (n(), i(h2, { key: 0, label: "意见必填", class: "amb-design-attr-item" }, { default: t(() => [s(J2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": l2[5] || (l2[5] = (o3) => e2.configure.props.base.isMustOpinion = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustOpinion ? (n(), i(h2, { key: 1, label: "意见必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", tableConfigure: L.value, title: "意见必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true), I.value ? (n(), i(h2, { key: 2, label: "备注必填", class: "amb-design-attr-item" }, { default: t(() => [s(J2, { modelValue: e2.configure.props.base.isMustRemark, "onUpdate:modelValue": l2[6] || (l2[6] = (o3) => e2.configure.props.base.isMustRemark = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustRemark ? (n(), i(h2, { key: 3, label: "备注必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_remark", configure: e2.configure, type: "mustRemarkConditions", tableConfigure: L.value, title: "办理备注必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true)])]), _: 1 }), N.value ? (n(), i(b, { key: 0, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: L.value, onClose: U }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), z.value ? (n(), i(v, { key: 1, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: L.value, onSave: $, onClose: A }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), F.value ? (n(), i(y, { key: 2, conditionList: e2.configure.props.base.showConditions, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: L.value, onSave: W, onClose: P }, null, 8, ["conditionList", "fieldNameList", "fieldMap", "tableConfigure"])) : u("", true), j.value ? (n(), i(C, { key: 3, modelValue: e2.configure.props.base.logSetting, onClose: R, onSave: S }, null, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
56
+ return n(), i(G, { "label-width": "80px", size: "small" }, { default: t(() => [s(E, { modelValue: O.value, "onUpdate:modelValue": o2[7] || (o2[7] = (e3) => O.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [s(B, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", w, [s(h2, { label: "成功后", class: "amb-design-attr-item" }, { default: t(() => [s(V2, { modelValue: e2.configure.props.base.successOperation, "onUpdate:modelValue": o2[0] || (o2[0] = (l3) => e2.configure.props.base.successOperation = l3), class: "ml-4" }, { default: t(() => [s(k2, { label: "无操作", value: "noOperation" }), s(k2, { label: "刷新", value: "refresh" }), s(k2, { label: "关闭窗口", value: "closeWindow" }), s(k2, { label: "关闭窗口并刷新列表", value: "closeWindowAndRefresh" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(h2, { label: "转换规则", class: "amb-design-attr-item" }, { default: t(() => [s(V2, { modelValue: e2.configure.props.base.conversionCodes, "onUpdate:modelValue": o2[1] || (o2[1] = (l3) => e2.configure.props.base.conversionCodes = l3), multiple: "", class: "ml-4" }, { default: t(() => [(n(true), p(f, null, c(M.value, (e3) => (n(), i(k2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(h2, { label: "执行条件", class: "amb-design-attr-item" }, { default: t(() => [s(D3, { type: "primary", onClick: o2[2] || (o2[2] = (e3) => N.value = true) }, { default: t(() => o2[8] || (o2[8] = [g("编辑")])), _: 1 })]), _: 1 }), s(h2, { label: "启用条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_edit", configure: e2.configure, title: "启用条件", tableConfigure: L.value, type: "editConditions" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(h2, { label: "自动设值", class: "amb-design-attr-item" }, { default: t(() => [s(D3, { type: "primary", onClick: o2[3] || (o2[3] = (e3) => z.value = true) }, { default: t(() => o2[9] || (o2[9] = [g("编辑")])), _: 1 }), d(s(x2, { type: "success" }, { default: t(() => o2[10] || (o2[10] = [g("  已设置条件. ")])), _: 1 }, 512), [[m, e2.configure.props && e2.configure.props.setValueList && e2.configure.props.setValueList.length > 0]])]), _: 1 }), s(h2, { label: "显示条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_show", configure: e2.configure, type: "showConditions", tableConfigure: L.value }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(h2, { label: "日志设置", class: "amb-design-attr-item" }, { default: t(() => [s(D3, { type: "primary", onClick: o2[4] || (o2[4] = (e3) => j.value = true) }, { default: t(() => o2[11] || (o2[11] = [g("编辑")])), _: 1 })]), _: 1 }), q.value ? (n(), i(h2, { key: 0, label: "意见必填", class: "amb-design-attr-item" }, { default: t(() => [s(J2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": o2[5] || (o2[5] = (l3) => e2.configure.props.base.isMustOpinion = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustOpinion ? (n(), i(h2, { key: 1, label: "意见必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", tableConfigure: L.value, title: "意见必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true), I.value ? (n(), i(h2, { key: 2, label: "备注必填", class: "amb-design-attr-item" }, { default: t(() => [s(J2, { modelValue: e2.configure.props.base.isMustRemark, "onUpdate:modelValue": o2[6] || (o2[6] = (l3) => e2.configure.props.base.isMustRemark = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustRemark ? (n(), i(h2, { key: 3, label: "备注必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_remark", configure: e2.configure, type: "mustRemarkConditions", tableConfigure: L.value, title: "办理备注必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true)])]), _: 1 }), N.value ? (n(), i(b, { key: 0, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: L.value, onClose: U }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), z.value ? (n(), i(v, { key: 1, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: L.value, onSave: $, onClose: A }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), F.value ? (n(), i(y, { key: 2, conditionList: e2.configure.props.base.showConditions, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: L.value, onSave: W, onClose: P }, null, 8, ["conditionList", "fieldNameList", "fieldMap", "tableConfigure"])) : u("", true), j.value ? (n(), i(C, { key: 3, modelValue: e2.configure.props.base.logSetting, onClose: R, onSave: S }, null, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
57
57
  };
58
58
  } });
59
59
  export {
@@ -21,7 +21,7 @@ const j = { style: { padding: "8px 0px 0px 0px" } }, D = { style: { padding: "8p
21
21
  }), void 0 === z2.configure.props.base.isEnableRequired && (z2.configure.props.base.isEnableRequired = true), !z2.configure.props.linkPage || z2.configure.props.linkPage instanceof Array || (z2.configure.props.linkPage = [{ linkPage: z2.configure.props.linkPage }]), A.value = true;
22
22
  const N = a([]);
23
23
  function I() {
24
- q.value, q.value.length > 0 ? (z2.configure.props.base.templateFiles || (z2.configure.props.base.templateFiles = []), F.value.filter((e3) => q.value.includes(e3.uuid)).forEach((e3) => {
24
+ q.value.length > 0 ? (z2.configure.props.base.templateFiles || (z2.configure.props.base.templateFiles = []), F.value.filter((e3) => q.value.includes(e3.uuid)).forEach((e3) => {
25
25
  z2.configure.props.base.templateFiles.push({ templateName: e3.fileName, templateUuid: e3.uuid });
26
26
  })) : z2.configure.props.base.templateFiles = [];
27
27
  }
@@ -1,22 +1,22 @@
1
- import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as n, createVNode as u, createCommentVNode as i, unref as d, createTextVNode as r, createElementBlock as p, Fragment as s, renderList as m, createElementVNode as f } from "vue";
1
+ import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as n, createVNode as u, createCommentVNode as i, unref as d, createTextVNode as r, createElementBlock as p, Fragment as s, renderList as f, createElementVNode as m } from "vue";
2
2
  import { formatConditionList as c } from "../../../../utils/data-table-util.js";
3
3
  import { CirclePlus as v, Delete as g } from "@element-plus/icons-vue";
4
4
  import b from "./combination.vue.js";
5
5
  import C from "../../common/common-variable-bind.vue.js";
6
6
  import { getModelOptionsByFields as y } from "../../../../utils/page-table-util.js";
7
- const F = { class: "dialog-footer" }, w = e({ __name: "set-dialog", props: { configure: { type: Object, default: () => {
7
+ const w = { class: "dialog-footer" }, F = e({ __name: "set-dialog", props: { configure: { type: Object, default: () => {
8
8
  } }, pageDesign: { type: Object, default: () => {
9
9
  } }, tableConfigure: { type: Object, default: () => {
10
- } } }, emits: ["close", "save"], setup(e2, { emit: w2 }) {
11
- const _ = e2, V = w2, D = l({}), M = l(false), k = l(""), j = l(null), h = l(null), L = l(null);
10
+ } } }, emits: ["close", "save"], setup(e2, { emit: F2 }) {
11
+ const _ = e2, V = F2, D = l({}), k = l(false), M = l(""), j = l(null), h = l(null), L = l(null);
12
12
  var N;
13
13
  (N = _.tableConfigure) && (L.value = y(N.modelFields));
14
14
  const U = l([]);
15
15
  function O() {
16
- M.value = false;
16
+ k.value = false;
17
17
  }
18
18
  function x(e3) {
19
- U.value[k.value].conditionList = e3, U.value;
19
+ U.value[M.value].conditionList = e3;
20
20
  }
21
21
  function T() {
22
22
  V("save", U.value), V("close");
@@ -34,20 +34,19 @@ const F = { class: "dialog-footer" }, w = e({ __name: "set-dialog", props: { con
34
34
  U.value.push({});
35
35
  }
36
36
  return _.configure.props.setValueList && (U.value = _.configure.props.setValueList), (l2, y2) => {
37
- const w3 = a("el-button"), D2 = a("el-row"), N2 = a("el-option"), S = a("el-select"), $ = a("el-table-column"), q = a("el-input"), A = a("el-table"), B = a("el-dialog");
38
- return t(), o(B, { "model-value": "", title: "自动设值", "append-to-body": "", onClose: y2[1] || (y2[1] = (e3) => V("close")) }, { footer: n(() => [f("div", F, [u(w3, { type: "default", onClick: y2[0] || (y2[0] = (e3) => V("close")) }, { default: n(() => y2[4] || (y2[4] = [r("取消")])), _: 1 }), u(w3, { type: "primary", onClick: T }, { default: n(() => y2[5] || (y2[5] = [r(" 确定 ")])), _: 1 })])]), default: n(() => [u(D2, { style: { "padding-bottom": "8px" } }, { default: n(() => [u(w3, { icon: d(v), plain: "", type: "primary", onClick: I }, { default: n(() => y2[2] || (y2[2] = [r(" 添加 ")])), _: 1 }, 8, ["icon"]), u(w3, { icon: d(g), plain: "", type: "primary", onClick: R }, { default: n(() => y2[3] || (y2[3] = [r(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), u(A, { ref_key: "tableRef", ref: h, "highlight-current-row": "", data: U.value, style: { width: "100%" }, onCurrentChange: E }, { default: n(() => [u($, { prop: "date", label: "填写方式", align: "center" }, { default: n((e3) => [u(S, { modelValue: e3.row.fillType, "onUpdate:modelValue": (l3) => e3.row.fillType = l3, clearable: "", size: "default", onFocus: (l3) => z(e3.row) }, { default: n(() => [u(N2, { label: "覆盖", value: "cover" }), u(N2, { label: "追加", value: "append" }), u(N2, { label: "插入最前面", value: "prepend" }), u(N2, { label: "有值跳过", value: "skipIfExists" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), u($, { prop: "date", label: "前置条件", align: "center" }, { default: n((l3) => [u(q, { "model-value": d(c)(l3.row.conditionList, e2.pageDesign.modelFields, e2.pageDesign.modelFieldsMap), size: "default", onFocus: (e3) => z(l3.row), onClick: (e3) => {
39
- return a2 = l3.row, o2 = l3.$index, j.value = a2.conditionList, k.value = o2, void (M.value = true);
37
+ const F3 = a("el-button"), D2 = a("el-row"), N2 = a("el-option"), S = a("el-select"), $ = a("el-table-column"), q = a("el-input"), A = a("el-table"), B = a("el-dialog");
38
+ return t(), o(B, { "model-value": "", title: "自动设值", "append-to-body": "", onClose: y2[1] || (y2[1] = (e3) => V("close")) }, { footer: n(() => [m("div", w, [u(F3, { type: "default", onClick: y2[0] || (y2[0] = (e3) => V("close")) }, { default: n(() => y2[4] || (y2[4] = [r("取消")])), _: 1 }), u(F3, { type: "primary", onClick: T }, { default: n(() => y2[5] || (y2[5] = [r(" 确定 ")])), _: 1 })])]), default: n(() => [u(D2, { style: { "padding-bottom": "8px" } }, { default: n(() => [u(F3, { icon: d(v), plain: "", type: "primary", onClick: I }, { default: n(() => y2[2] || (y2[2] = [r(" 添加 ")])), _: 1 }, 8, ["icon"]), u(F3, { icon: d(g), plain: "", type: "primary", onClick: R }, { default: n(() => y2[3] || (y2[3] = [r(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), u(A, { ref_key: "tableRef", ref: h, "highlight-current-row": "", data: U.value, style: { width: "100%" }, onCurrentChange: E }, { default: n(() => [u($, { prop: "date", label: "填写方式", align: "center" }, { default: n((e3) => [u(S, { modelValue: e3.row.fillType, "onUpdate:modelValue": (l3) => e3.row.fillType = l3, clearable: "", size: "default", onFocus: (l3) => z(e3.row) }, { default: n(() => [u(N2, { label: "覆盖", value: "cover" }), u(N2, { label: "追加", value: "append" }), u(N2, { label: "插入最前面", value: "prepend" }), u(N2, { label: "有值跳过", value: "skipIfExists" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), u($, { prop: "date", label: "前置条件", align: "center" }, { default: n((l3) => [u(q, { "model-value": d(c)(l3.row.conditionList, e2.pageDesign.modelFields, e2.pageDesign.modelFieldsMap), size: "default", onFocus: (e3) => z(l3.row), onClick: (e3) => {
39
+ return a2 = l3.row, o2 = l3.$index, j.value = a2.conditionList, M.value = o2, void (k.value = true);
40
40
  var a2, o2;
41
41
  } }, null, 8, ["model-value", "onFocus", "onClick"])]), _: 1 }), u($, { label: "执行方法时设置", align: "center" }, { default: n(() => [u($, { prop: "name", label: "字段", align: "center" }, { default: n((l3) => [u(S, { modelValue: l3.row.propDbName, "onUpdate:modelValue": (e3) => l3.row.propDbName = e3, clearable: "", size: "default", onFocus: (e3) => z(l3.row), onChange: (e3) => function(e4, l4) {
42
- _.pageDesign.modelFieldsMap;
43
42
  let a2 = null;
44
43
  _.pageDesign.modelFieldsMap ? a2 = _.pageDesign.modelFieldsMap[l4] : _.tableConfigure.modelFieldsMap && (a2 = _.tableConfigure.modelFieldsMap[l4]), e4.field = a2.name, e4.dataType = a2.dataType;
45
- }(l3.row, l3.row.propDbName) }, { default: n(() => [(t(true), p(s, null, m(e2.pageDesign.modelFields, (e3) => (t(), o(N2, { key: e3.id, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus", "onChange"])]), _: 1 }), u($, { prop: "address", label: "值", align: "center" }, { default: n((e3) => [u(C, { onFocus: (l3) => z(e3.row), modelValue: e3.row.autoValue, objModelOptions: L.value, "onUpdate:modelValue": (l3) => {
44
+ }(l3.row, l3.row.propDbName) }, { default: n(() => [(t(true), p(s, null, f(e2.pageDesign.modelFields, (e3) => (t(), o(N2, { key: e3.id, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus", "onChange"])]), _: 1 }), u($, { prop: "address", label: "值", align: "center" }, { default: n((e3) => [u(C, { onFocus: (l3) => z(e3.row), modelValue: e3.row.autoValue, objModelOptions: L.value, "onUpdate:modelValue": (l3) => {
46
45
  return a2 = l3, void (e3.row.autoValue = a2);
47
46
  var a2;
48
- } }, null, 8, ["onFocus", "modelValue", "objModelOptions", "onUpdate:modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["data"]), M.value ? (t(), o(b, { key: 0, list: j.value, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: e2.tableConfigure, onSave: x, onClose: O }, null, 8, ["list", "fieldNameList", "fieldMap", "tableConfigure"])) : i("", true)]), _: 1 });
47
+ } }, null, 8, ["onFocus", "modelValue", "objModelOptions", "onUpdate:modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["data"]), k.value ? (t(), o(b, { key: 0, list: j.value, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: e2.tableConfigure, onSave: x, onClose: O }, null, 8, ["list", "fieldNameList", "fieldMap", "tableConfigure"])) : i("", true)]), _: 1 });
49
48
  };
50
49
  } });
51
50
  export {
52
- w as default
51
+ F as default
53
52
  };
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as e, ref as l, onMounted as a, resolveComponent as o, createBlock as u, openBlock as t, withCtx as i, createVNode as s, createElementVNode as n, createElementBlock as d, Fragment as p, renderList as r, unref as m, createTextVNode as c, withDirectives as f, vShow as b } from "vue";
2
2
  import { getFormComponentOptions as g } from "../../../../utils/assemblys-config.js";
3
- import v from "../../common/common-icon-bind.vue.js";
4
- import V from "../../common/common-function-code.vue.js";
3
+ import V from "../../common/common-icon-bind.vue.js";
4
+ import v from "../../common/common-function-code.vue.js";
5
5
  import _ from "agilebuilder-ui/src/utils/request";
6
6
  import y from "../../common/common-i18n-key-input.vue.js";
7
7
  import { Close as x, Check as U } from "@element-plus/icons-vue";
8
8
  const h = { style: { padding: "8px 0px 0px 0px" } }, P = { style: { padding: "8px 0px 0px 0px" } }, j = { style: { padding: "8px 0px 0px 0px" } }, k = e({ __name: "exportpdf-attr-base", props: { configure: { type: Object, default: () => ({ props: {} }) }, pageDesign: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
9
9
  const k2 = e2, w = l(["base", "appearance", "otherSettings", "linkPage"]), F = l([]), T = l([]);
10
10
  function z() {
11
- T.value, T.value.length > 0 ? (k2.configure.props.base.templateFiles || (k2.configure.props.base.templateFiles = []), F.value.filter((e3) => T.value.includes(e3.uuid)).forEach((e3) => {
11
+ T.value.length > 0 ? (k2.configure.props.base.templateFiles || (k2.configure.props.base.templateFiles = []), F.value.filter((e3) => T.value.includes(e3.uuid)).forEach((e3) => {
12
12
  k2.configure.props.base.templateFiles.push({ templateName: e3.fileName, templateUuid: e3.uuid });
13
13
  })) : k2.configure.props.base.templateFiles = [];
14
14
  }
@@ -23,7 +23,7 @@ const h = { style: { padding: "8px 0px 0px 0px" } }, P = { style: { padding: "8p
23
23
  }();
24
24
  }), (l2, a2) => {
25
25
  const _2 = o("el-option"), N = o("el-select"), A = o("el-form-item"), C = o("el-input"), D = o("el-radio"), E = o("el-radio-group"), O = o("el-collapse-item"), S = o("el-radio-button"), $ = o("el-switch"), q = o("el-collapse"), I = o("el-form");
26
- return t(), u(I, { "label-width": "80px", size: "small" }, { default: i(() => [s(q, { modelValue: w.value, "onUpdate:modelValue": a2[17] || (a2[17] = (e3) => w.value = e3), style: { "margin-top": "6px" } }, { default: i(() => [s(O, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: i(() => [n("div", h, [s(A, { label: "组件类型", class: "amb-design-attr-item" }, { default: i(() => [s(N, { modelValue: e2.configure.name, "onUpdate:modelValue": a2[0] || (a2[0] = (l3) => e2.configure.name = l3), placeholder: "请选择" }, { default: i(() => [(t(true), d(p, null, r(m(g)(), (e3) => (t(), u(_2, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(A, { label: "唯一编码", class: "amb-design-attr-item" }, { default: i(() => [s(C, { modelValue: e2.configure.uuid, "onUpdate:modelValue": a2[1] || (a2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), s(A, { label: "自定义编码", class: "amb-design-attr-item" }, { default: i(() => [s(C, { modelValue: e2.configure.code, "onUpdate:modelValue": a2[2] || (a2[2] = (l3) => e2.configure.code = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), s(A, { label: "绑定权限", class: "amb-design-attr-item" }, { default: i(() => [(t(), u(V, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 }), s(A, { label: "标题", class: "amb-design-attr-item" }, { default: i(() => [s(y, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": a2[3] || (a2[3] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }), s(A, { label: "尺寸", class: "amb-design-attr-item" }, { default: i(() => [s(E, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": a2[4] || (a2[4] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: i(() => [s(D, { value: "large" }, { default: i(() => a2[18] || (a2[18] = [c("大")])), _: 1 }), s(D, { value: "default" }, { default: i(() => a2[19] || (a2[19] = [c("中")])), _: 1 }), s(D, { value: "small" }, { default: i(() => a2[20] || (a2[20] = [c("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(A, { label: "状态", class: "amb-design-attr-item" }, { default: i(() => [s(E, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": a2[5] || (a2[5] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: i(() => [s(D, { value: "default" }, { default: i(() => a2[21] || (a2[21] = [c("普通")])), _: 1 }), s(D, { value: "disabled" }, { default: i(() => a2[22] || (a2[22] = [c("禁用")])), _: 1 }), s(D, { value: "hidden" }, { default: i(() => a2[23] || (a2[23] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(A, { label: "模板", class: "amb-design-attr-item" }, { default: i(() => [s(N, { modelValue: T.value, "onUpdate:modelValue": a2[6] || (a2[6] = (e3) => T.value = e3), multiple: "", onChange: z }, { default: i(() => [(t(true), d(p, null, r(F.value, (e3) => (t(), u(_2, { key: e3.uuid, label: e3.fileName, value: e3.uuid }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), s(O, { title: "外观", name: "appearance", class: "amb-design-attr-group-header" }, { default: i(() => [n("div", P, [s(A, { label: "按钮类型", class: "amb-design-attr-item" }, { default: i(() => [s(N, { modelValue: e2.configure.props.base.type, "onUpdate:modelValue": a2[7] || (a2[7] = (l3) => e2.configure.props.base.type = l3), class: "ml-4", clearable: "" }, { default: i(() => [s(_2, { label: "primary", value: "primary" }), s(_2, { label: "success", value: "success" }), s(_2, { label: "warning", value: "warning" }), s(_2, { label: "danger", value: "danger" }), s(_2, { label: "info", value: "info" }), s(_2, { label: "default", value: "default" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(A, { label: "图标", class: "amb-design-attr-item" }, { default: i(() => [(t(), u(v, { key: e2.configure.uuid, iconType: e2.configure.props.base.iconType, iconValue: e2.configure.props.base.iconValue, "onUpdate:modelValue": a2[8] || (a2[8] = (e3, l3) => function(e4, l4) {
26
+ return t(), u(I, { "label-width": "80px", size: "small" }, { default: i(() => [s(q, { modelValue: w.value, "onUpdate:modelValue": a2[17] || (a2[17] = (e3) => w.value = e3), style: { "margin-top": "6px" } }, { default: i(() => [s(O, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: i(() => [n("div", h, [s(A, { label: "组件类型", class: "amb-design-attr-item" }, { default: i(() => [s(N, { modelValue: e2.configure.name, "onUpdate:modelValue": a2[0] || (a2[0] = (l3) => e2.configure.name = l3), placeholder: "请选择" }, { default: i(() => [(t(true), d(p, null, r(m(g)(), (e3) => (t(), u(_2, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(A, { label: "唯一编码", class: "amb-design-attr-item" }, { default: i(() => [s(C, { modelValue: e2.configure.uuid, "onUpdate:modelValue": a2[1] || (a2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), s(A, { label: "自定义编码", class: "amb-design-attr-item" }, { default: i(() => [s(C, { modelValue: e2.configure.code, "onUpdate:modelValue": a2[2] || (a2[2] = (l3) => e2.configure.code = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), s(A, { label: "绑定权限", class: "amb-design-attr-item" }, { default: i(() => [(t(), u(v, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 }), s(A, { label: "标题", class: "amb-design-attr-item" }, { default: i(() => [s(y, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": a2[3] || (a2[3] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }), s(A, { label: "尺寸", class: "amb-design-attr-item" }, { default: i(() => [s(E, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": a2[4] || (a2[4] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: i(() => [s(D, { value: "large" }, { default: i(() => a2[18] || (a2[18] = [c("大")])), _: 1 }), s(D, { value: "default" }, { default: i(() => a2[19] || (a2[19] = [c("中")])), _: 1 }), s(D, { value: "small" }, { default: i(() => a2[20] || (a2[20] = [c("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(A, { label: "状态", class: "amb-design-attr-item" }, { default: i(() => [s(E, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": a2[5] || (a2[5] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: i(() => [s(D, { value: "default" }, { default: i(() => a2[21] || (a2[21] = [c("普通")])), _: 1 }), s(D, { value: "disabled" }, { default: i(() => a2[22] || (a2[22] = [c("禁用")])), _: 1 }), s(D, { value: "hidden" }, { default: i(() => a2[23] || (a2[23] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(A, { label: "模板", class: "amb-design-attr-item" }, { default: i(() => [s(N, { modelValue: T.value, "onUpdate:modelValue": a2[6] || (a2[6] = (e3) => T.value = e3), multiple: "", onChange: z }, { default: i(() => [(t(true), d(p, null, r(F.value, (e3) => (t(), u(_2, { key: e3.uuid, label: e3.fileName, value: e3.uuid }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), s(O, { title: "外观", name: "appearance", class: "amb-design-attr-group-header" }, { default: i(() => [n("div", P, [s(A, { label: "按钮类型", class: "amb-design-attr-item" }, { default: i(() => [s(N, { modelValue: e2.configure.props.base.type, "onUpdate:modelValue": a2[7] || (a2[7] = (l3) => e2.configure.props.base.type = l3), class: "ml-4", clearable: "" }, { default: i(() => [s(_2, { label: "primary", value: "primary" }), s(_2, { label: "success", value: "success" }), s(_2, { label: "warning", value: "warning" }), s(_2, { label: "danger", value: "danger" }), s(_2, { label: "info", value: "info" }), s(_2, { label: "default", value: "default" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(A, { label: "图标", class: "amb-design-attr-item" }, { default: i(() => [(t(), u(V, { key: e2.configure.uuid, iconType: e2.configure.props.base.iconType, iconValue: e2.configure.props.base.iconValue, "onUpdate:modelValue": a2[8] || (a2[8] = (e3, l3) => function(e4, l4) {
27
27
  k2.configure.props.base.iconType = e4, k2.configure.props.base.iconValue = l4;
28
28
  }(e3, l3)) }, null, 8, ["iconType", "iconValue"]))]), _: 1 }), f(s(A, { label: "图标位置", class: "amb-design-attr-item" }, { default: i(() => [s(E, { modelValue: e2.configure.props.base.iconPosition, "onUpdate:modelValue": a2[9] || (a2[9] = (l3) => e2.configure.props.base.iconPosition = l3), class: "ml-4" }, { default: i(() => [s(S, { value: "left" }, { default: i(() => a2[24] || (a2[24] = [c("标题前")])), _: 1 }), s(S, { value: "right" }, { default: i(() => a2[25] || (a2[25] = [c("标题后")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.iconValue]]), s(A, { label: "文字按钮", class: "amb-design-attr-item" }, { default: i(() => [s($, { modelValue: e2.configure.props.base.text, "onUpdate:modelValue": a2[10] || (a2[10] = (l3) => e2.configure.props.base.text = l3), disabled: !!e2.configure.props.base.plain || !!e2.configure.props.base.plain, "inline-prompt": "", "active-icon": m(U), "inactive-icon": m(x) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), s(A, { label: "朴素按钮", class: "amb-design-attr-item" }, { default: i(() => [s($, { modelValue: e2.configure.props.base.plain, "onUpdate:modelValue": a2[11] || (a2[11] = (l3) => e2.configure.props.base.plain = l3), disabled: !!e2.configure.props.base.text, "inline-prompt": "", "active-icon": m(U), "inactive-icon": m(x) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), s(A, { label: "圆角按钮", class: "amb-design-attr-item" }, { default: i(() => [s($, { modelValue: e2.configure.props.base.round, "onUpdate:modelValue": a2[12] || (a2[12] = (l3) => e2.configure.props.base.round = l3), disabled: !!e2.configure.props.base.text, "inline-prompt": "", "active-icon": m(U), "inactive-icon": m(x) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), s(A, { label: "加载状态", class: "amb-design-attr-item" }, { default: i(() => [s(E, { modelValue: e2.configure.props.base.loading, "onUpdate:modelValue": a2[13] || (a2[13] = (l3) => e2.configure.props.base.loading = l3), class: "ml-4" }, { default: i(() => [s(D, { value: true }, { default: i(() => a2[26] || (a2[26] = [c("是")])), _: 1 }), s(D, { value: false }, { default: i(() => a2[27] || (a2[27] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(A, { label: "默认聚焦", class: "amb-design-attr-item" }, { default: i(() => [s(E, { modelValue: e2.configure.props.base.focus, "onUpdate:modelValue": a2[14] || (a2[14] = (l3) => e2.configure.props.base.focus = l3), class: "ml-4" }, { default: i(() => [s(D, { value: true }, { default: i(() => a2[28] || (a2[28] = [c("是")])), _: 1 }), s(D, { value: false }, { default: i(() => a2[29] || (a2[29] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(A, { label: "原生type", class: "amb-design-attr-item" }, { default: i(() => [s(E, { modelValue: e2.configure.props.base.originalType, "onUpdate:modelValue": a2[15] || (a2[15] = (l3) => e2.configure.props.base.originalType = l3), class: "ml-4" }, { default: i(() => [s(D, { value: "button" }, { default: i(() => a2[30] || (a2[30] = [c("button")])), _: 1 }), s(D, { value: "submit" }, { default: i(() => a2[31] || (a2[31] = [c("submit")])), _: 1 }), s(D, { value: "reset" }, { default: i(() => a2[32] || (a2[32] = [c("reset")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), s(O, { title: "其他设置", name: "otherSettings", class: "amb-design-attr-group-header" }, { default: i(() => [n("div", j, [s(A, { label: "权限保护", class: "amb-design-attr-item" }, { default: i(() => [s($, { modelValue: e2.configure.props.base.isPermission, "onUpdate:modelValue": a2[16] || (a2[16] = (l3) => e2.configure.props.base.isPermission = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 });
29
29
  };
@@ -2,13 +2,12 @@ import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a
2
2
  import m from "../../common-series/common-attr-dataset-columnline.vue.js";
3
3
  import d from "../../common-series/common-attr-dynamic.vue.js";
4
4
  import c from "../../common-series/common-attr-testdatas.vue.js";
5
- import g from "../../../form/common/suffixmodule.vue.js";
6
- const f = { style: { padding: "8px 0px 0px 0px" } }, x = { style: { padding: "8px 0px 0px 0px" } }, y = e({ __name: "column-line-series-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
7
- e2.pageDesign;
5
+ import f from "../../../form/common/suffixmodule.vue.js";
6
+ const g = { style: { padding: "8px 0px 0px 0px" } }, x = { style: { padding: "8px 0px 0px 0px" } }, y = e({ __name: "column-line-series-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
8
7
  const y2 = l(["1", "dataList", "propsDynamic", "clicklinkage", "propsTestDatas"]);
9
8
  return (l2, b) => {
10
- const V = o("el-option"), v = o("el-select"), _ = o("el-form-item"), h = o("el-switch"), D = o("el-input"), j = o("el-radio-button"), k = o("el-radio-group"), U = o("el-collapse-item"), S = o("el-collapse"), w = o("el-form");
11
- return t(), a(w, { "label-width": "80px", size: "small" }, { default: u(() => [i(S, { modelValue: y2.value, "onUpdate:modelValue": b[4] || (b[4] = (e3) => y2.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [i(U, { title: "基本", name: "1", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", f, [i(_, { label: "系列类型", style: { "margin-top": "4px" } }, { default: u(() => [i(v, { modelValue: e2.configure.type, "onUpdate:modelValue": b[0] || (b[0] = (l3) => e2.configure.type = l3) }, { default: u(() => [i(V, { label: "柱状图", value: "bar" }), i(V, { label: "折线图", value: "line" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(i(_, { label: "曲线", style: { "margin-top": "-10px" } }, { default: u(() => [i(h, { modelValue: e2.configure.style.isSmooth, "onUpdate:modelValue": b[1] || (b[1] = (l3) => e2.configure.style.isSmooth = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[p, "line" == e2.configure.type]]), i(_, { label: "系列名称", style: { "margin-top": "-10px" } }, { default: u(() => [i(D, { modelValue: e2.configure.props.title, "onUpdate:modelValue": b[2] || (b[2] = (l3) => e2.configure.props.title = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), i(_, { label: "Y坐标参照", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: u(() => [i(k, { modelValue: e2.configure.props.yAxisIndex, "onUpdate:modelValue": b[3] || (b[3] = (l3) => e2.configure.props.yAxisIndex = l3) }, { default: u(() => [i(j, { value: "0" }, { default: u(() => b[5] || (b[5] = [s("左坐标")])), _: 1 }), i(j, { value: "1" }, { default: u(() => b[6] || (b[6] = [s("右坐标")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(m, { configure: e2.configure }, null, 8, ["configure"]), r(i(d, { configure: e2.configure }, null, 8, ["configure"]), [[p, !e2.configure.props.yaxisSource || "variable" === e2.configure.props.yaxisSource]]), i(U, { title: "Click跳转配置", name: "clicklinkage", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", x, [(t(), a(g, { key: e2.configure.uuid, configure: e2.configure, pageDesign: e2.pageDesign, isButton: false }, null, 8, ["configure", "pageDesign"]))])]), _: 1 }), i(c, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
9
+ const V = o("el-option"), v = o("el-select"), _ = o("el-form-item"), h = o("el-switch"), j = o("el-input"), k = o("el-radio-button"), D = o("el-radio-group"), U = o("el-collapse-item"), S = o("el-collapse"), w = o("el-form");
10
+ return t(), a(w, { "label-width": "80px", size: "small" }, { default: u(() => [i(S, { modelValue: y2.value, "onUpdate:modelValue": b[4] || (b[4] = (e3) => y2.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [i(U, { title: "基本", name: "1", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", g, [i(_, { label: "系列类型", style: { "margin-top": "4px" } }, { default: u(() => [i(v, { modelValue: e2.configure.type, "onUpdate:modelValue": b[0] || (b[0] = (l3) => e2.configure.type = l3) }, { default: u(() => [i(V, { label: "柱状图", value: "bar" }), i(V, { label: "折线图", value: "line" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(i(_, { label: "曲线", style: { "margin-top": "-10px" } }, { default: u(() => [i(h, { modelValue: e2.configure.style.isSmooth, "onUpdate:modelValue": b[1] || (b[1] = (l3) => e2.configure.style.isSmooth = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[p, "line" == e2.configure.type]]), i(_, { label: "系列名称", style: { "margin-top": "-10px" } }, { default: u(() => [i(j, { modelValue: e2.configure.props.title, "onUpdate:modelValue": b[2] || (b[2] = (l3) => e2.configure.props.title = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), i(_, { label: "Y坐标参照", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: u(() => [i(D, { modelValue: e2.configure.props.yAxisIndex, "onUpdate:modelValue": b[3] || (b[3] = (l3) => e2.configure.props.yAxisIndex = l3) }, { default: u(() => [i(k, { value: "0" }, { default: u(() => b[5] || (b[5] = [s("左坐标")])), _: 1 }), i(k, { value: "1" }, { default: u(() => b[6] || (b[6] = [s("右坐标")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(m, { configure: e2.configure }, null, 8, ["configure"]), r(i(d, { configure: e2.configure }, null, 8, ["configure"]), [[p, !e2.configure.props.yaxisSource || "variable" === e2.configure.props.yaxisSource]]), i(U, { title: "Click跳转配置", name: "clicklinkage", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", x, [(t(), a(f, { key: e2.configure.uuid, configure: e2.configure, pageDesign: e2.pageDesign, isButton: false }, null, 8, ["configure", "pageDesign"]))])]), _: 1 }), i(c, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
12
11
  };
13
12
  } });
14
13
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as o, onMounted as n, onUnmounted as i, watch as l, resolveComponent as t, createElementBlock as r, openBlock as u, createVNode as s, createElementVNode as a, withDirectives as c, normalizeStyle as d, normalizeClass as p, withCtx as g, Fragment as m, renderList as f, createBlock as b, createCommentVNode as v, createTextVNode as y, unref as h, vShow as C } from "vue";
1
+ import { defineComponent as e, ref as o, onMounted as n, onUnmounted as i, watch as t, resolveComponent as l, createElementBlock as r, openBlock as u, createVNode as s, createElementVNode as a, withDirectives as c, normalizeStyle as d, normalizeClass as p, withCtx as g, Fragment as m, renderList as f, createBlock as b, createCommentVNode as v, createTextVNode as y, unref as h, vShow as C } from "vue";
2
2
  import j from "../../../../utils/eventBus.js";
3
3
  import { useDraggable as x } from "vue-draggable-plus";
4
4
  import { caculateComponentProps as D } from "../../../../utils/form-design-util.js";
@@ -37,9 +37,9 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
37
37
  M(G.configure);
38
38
  }), j.$on("setHiddenColumsUuid", (e3) => {
39
39
  e3.value ? U.value = U.value.filter((o2) => o2 != e3.uuid) : U.value.push(e3.uuid);
40
- }), l(G.configure.style, () => {
40
+ }), t(G.configure.style, () => {
41
41
  G.configure.runtime.style = G.configure.style;
42
- }, { immediate: true }), l(G.configure.props, () => {
42
+ }, { immediate: true }), t(G.configure.props, () => {
43
43
  D(G.configure, P), function() {
44
44
  let e3 = G.configure.props;
45
45
  if (!e3.base) return;
@@ -49,13 +49,13 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
49
49
  const e3 = W(G.configure, null);
50
50
  G.configure.runtime.dataConfig = e3;
51
51
  }();
52
- }, { immediate: true }), l(G.configure.items, (e3) => {
52
+ }, { immediate: true }), t(G.configure.items, (e3) => {
53
53
  X.addFieldList(e3), G.configure.runtime.items = G.configure.items;
54
- }, { immediate: true }), l(() => G.configure.props.isChangeGroupHeader, () => {
54
+ }, { immediate: true }), t(() => G.configure.props.isChangeGroupHeader, () => {
55
55
  G.configure.props.isChangeGroupHeader && (q.value = E(G.configure), K.value && K.value.doLayout());
56
56
  }), j.$on("reloadTable-" + G.configure.uuid, (e3) => {
57
57
  e3 && (G.configure.items = e3, q.value = E(G.configure)), K.value && K.value.doLayout();
58
- }), l(() => q.value, (e3) => {
58
+ }), t(() => q.value, (e3) => {
59
59
  e3.forEach((e4) => {
60
60
  e4.props && e4.props.base && !e4.props.base.visible && U.value.push(e4.uuid);
61
61
  });
@@ -70,8 +70,8 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
70
70
  (o2 || window.event).preventDefault(), n2 = e3, G.configure.items.forEach((e4, o3) => {
71
71
  e4.props.base.name == n2.label && (oe.value = e4, ne.value = o3);
72
72
  }), R.value = true;
73
- const i2 = document.querySelector("#tableDesignMenu"), l2 = document.documentElement.scrollTop || document.body.scrollTop;
74
- i2.style.display = "block", i2.style.left = o2.clientX + 30 + "px", i2.style.top = o2.clientY + l2 - 22 + "px";
73
+ const i2 = document.querySelector("#tableDesignMenu"), t2 = document.documentElement.scrollTop || document.body.scrollTop;
74
+ i2.style.display = "block", i2.style.left = o2.clientX + 30 + "px", i2.style.top = o2.clientY + t2 - 22 + "px";
75
75
  }
76
76
  function Z() {
77
77
  R.value = false;
@@ -85,7 +85,7 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
85
85
  e5.props.base.displayOrder && e5.props.base.displayOrder == o3 || (e5.props.base.displayOrder = o3);
86
86
  }), G.configure.props.base.isEnableGroupHeader && (w(G.configure.items[ne.value + 1], null, G.configure.props.groupHeaders), q.value = E(G.configure), j.$emit("synchroGroupHeadersData"));
87
87
  } else "deleteNode" === e3 && S.confirm("当前操作会删除当前列", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
88
- G.configure.props, oe.value, G.configure.items.splice(ne.value, 1);
88
+ G.configure.items.splice(ne.value, 1);
89
89
  }).catch(() => {
90
90
  });
91
91
  }
@@ -93,19 +93,19 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
93
93
  function ie(e3) {
94
94
  oe.value = e3;
95
95
  }
96
- function le(e3, o2, n2, i2) {
97
- te(q.value, n2.columnKey).props.base.columnWidth = e3;
96
+ function te(e3, o2, n2, i2) {
97
+ le(q.value, n2.columnKey).props.base.columnWidth = e3;
98
98
  }
99
- function te(e3, o2) {
99
+ function le(e3, o2) {
100
100
  let n2 = {};
101
101
  return e3.forEach((e4) => {
102
102
  if (e4.uuid && e4.uuid === o2) return n2 = e4;
103
- e4.children && e4.children.length > 0 && (n2 = te(e4.children, o2));
103
+ e4.children && e4.children.length > 0 && (n2 = le(e4.children, o2));
104
104
  }), n2;
105
105
  }
106
106
  function re({ row: e3, column: o2, rowIndex: n2, columnIndex: i2 }) {
107
- let l2 = "";
108
- return U.value.includes(o2.label) && (l2 = "hiddenBorder"), o2.label === z.value && (l2 = "addBorder"), l2;
107
+ let t2 = "";
108
+ return U.value.includes(o2.label) && (t2 = "hiddenBorder"), o2.label === z.value && (t2 = "addBorder"), t2;
109
109
  }
110
110
  function ue(e3) {
111
111
  z.value = e3.uuid;
@@ -118,8 +118,8 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
118
118
  }
119
119
  return x(".el-table__header-wrapper tr", G.configure.items, { animation: 150, ghostClass: "ghost", onStart(e3) {
120
120
  } }), (e3, o2) => {
121
- const n2 = t("el-table"), i2 = t("el-icon");
122
- return u(), r("div", null, [s(n2, { ref_key: "tableRef", ref: K, "cell-class-name": re, "header-cell-class-name": re, border: "", class: p(I.value), data: A.value, onHeaderDragend: le, onHeaderContextmenu: Q, onRowClick: J, onCellMouseEnter: se, onCellMouseLeave: ae, style: d(V.value) }, { default: g(() => [(u(true), r(m, null, f(q.value, (o3) => (u(), b(_, { key: o3, listColumns: o3, designProperty: P.value, configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, onSetClickColumn: ue, onOnSelectWidget: Y, onSetColumnData: ie, onCloseMenuVisible: Z, selectWidget: e3.selectWidget }, null, 8, ["listColumns", "designProperty", "configure", "pageDesign", "indexObj", "selectWidget"]))), 128))]), _: 1 }, 8, ["class", "data", "style"]), a("div", { onClick: J, style: { width: "100%", height: "30px" } }), c(a("div", null, [a("ul", N, [a("li", { tabindex: "-1", onClick: o2[0] || (o2[0] = () => ee("createCombinedHeader")) }, [s(i2, null, { default: g(() => [s(h(k))]), _: 1 }), o2[2] || (o2[2] = y(" 创建 "))]), oe.value.props && oe.value.props.base && "$selection" !== oe.value.props.base.prop && "$index" !== oe.value.props.base.prop ? (u(), r("li", { key: 0, tabindex: "-1", onClick: o2[1] || (o2[1] = () => ee("deleteNode")) }, [s(i2, null, { default: g(() => [s(h(H))]), _: 1 }), o2[3] || (o2[3] = y(" 删除 "))])) : v("", true)], 512)], 512), [[C, R.value]])]);
121
+ const n2 = l("el-table"), i2 = l("el-icon");
122
+ return u(), r("div", null, [s(n2, { ref_key: "tableRef", ref: K, "cell-class-name": re, "header-cell-class-name": re, border: "", class: p(I.value), data: A.value, onHeaderDragend: te, onHeaderContextmenu: Q, onRowClick: J, onCellMouseEnter: se, onCellMouseLeave: ae, style: d(V.value) }, { default: g(() => [(u(true), r(m, null, f(q.value, (o3) => (u(), b(_, { key: o3, listColumns: o3, designProperty: P.value, configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, onSetClickColumn: ue, onOnSelectWidget: Y, onSetColumnData: ie, onCloseMenuVisible: Z, selectWidget: e3.selectWidget }, null, 8, ["listColumns", "designProperty", "configure", "pageDesign", "indexObj", "selectWidget"]))), 128))]), _: 1 }, 8, ["class", "data", "style"]), a("div", { onClick: J, style: { width: "100%", height: "30px" } }), c(a("div", null, [a("ul", N, [a("li", { tabindex: "-1", onClick: o2[0] || (o2[0] = () => ee("createCombinedHeader")) }, [s(i2, null, { default: g(() => [s(h(k))]), _: 1 }), o2[2] || (o2[2] = y(" 创建 "))]), oe.value.props && oe.value.props.base && "$selection" !== oe.value.props.base.prop && "$index" !== oe.value.props.base.prop ? (u(), r("li", { key: 0, tabindex: "-1", onClick: o2[1] || (o2[1] = () => ee("deleteNode")) }, [s(i2, null, { default: g(() => [s(h(H))]), _: 1 }), o2[3] || (o2[3] = y(" 删除 "))])) : v("", true)], 512)], 512), [[C, R.value]])]);
123
123
  };
124
124
  } });
125
125
  export {
@@ -26,7 +26,6 @@ const O = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" }, j =
26
26
  for (let e4 of l2) o2.push({ value: e4.iconName, label: e4.iconName });
27
27
  X.value.customOptions = o2, H.value = o2;
28
28
  } catch (e3) {
29
- console.error(e3);
30
29
  }
31
30
  le.value = false;
32
31
  }
@@ -43,7 +42,6 @@ const O = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" }, j =
43
42
  const l3 = await fetch(e4, { mode: "cors" }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [] } = l3 ?? {};
44
43
  G.value = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
45
44
  } catch (e4) {
46
- console.error(e4);
47
45
  }
48
46
  le.value = false;
49
47
  }
@@ -57,7 +55,6 @@ const O = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" }, j =
57
55
  const l3 = await fetch(e4, { mode: "cors", headers: { "Content-Type": "application/json" } }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [] } = l3 ?? {};
58
56
  W.value = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
59
57
  } catch (e4) {
60
- console.error(e4);
61
58
  }
62
59
  le.value = false;
63
60
  }
@@ -2,20 +2,19 @@ import { defineComponent as e, ref as o, resolveComponent as a, createBlock as t
2
2
  import { Plus as g } from "@element-plus/icons-vue";
3
3
  import { getToken as d } from "agilebuilder-ui/src/utils/auth";
4
4
  const m = { style: { padding: "8px 0px 0px 0px" } }, f = ["src"], b = e({ __name: "common-style-background", props: { configure: { type: Object, required: true } }, setup(e2) {
5
- const b2 = e2, v = o(window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads"), h = d(), y = o(window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/show-image?jwt=" + h + "&serverPath=");
5
+ const b2 = e2, h = o(window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads"), v = d(), y = o(window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/show-image?jwt=" + v + "&serverPath=");
6
6
  function k() {
7
7
  b2.configure.style.backgroundImageServerPath = void 0;
8
8
  }
9
9
  function x(e3) {
10
10
  if (e3.size > 3145728) return this.$message({ type: "warning", message: this.$t("imatrixUIMessage.exceedFileSize", { fileSize: 3 }), showClose: true }), false;
11
11
  }
12
- v.value;
13
12
  const w = (e3, o2) => {
14
13
  b2.configure.style.backgroundImageServerPath = e3.serverPath;
15
14
  };
16
15
  return (o2, d2) => {
17
16
  const b3 = a("el-color-picker"), P = a("el-form-item"), _ = a("CloseBold"), I = a("el-icon"), S = a("el-upload"), z = a("el-collapse-item");
18
- return r(), t(z, { title: "背景", name: "styleBackground", class: "amb-design-attr-group-header" }, { default: l(() => [s("div", m, [i(P, { label: "颜色", style: { "margin-top": "4px" } }, { default: l(() => [i(b3, { modelValue: e2.configure.style.backgroundColor, "onUpdate:modelValue": d2[0] || (d2[0] = (o3) => e2.configure.style.backgroundColor = o3) }, null, 8, ["modelValue"])]), _: 1 }), i(P, { label: "图片", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: l(() => [i(S, { class: "avatar-uploader", accept: "image/png, image/jpeg", "with-credentials": true, headers: { Authorization: n(h) }, action: v.value, "show-file-list": false, "on-success": w, "before-upload": x, style: { position: "relative" }, name: "file" }, { default: l(() => [e2.configure.style.backgroundImageServerPath ? (r(), u("img", { key: 0, src: y.value + e2.configure.style.backgroundImageServerPath + "&_tt=" + (/* @__PURE__ */ new Date()).getTime(), class: "avatar" }, null, 8, f)) : c("", true), e2.configure.style.backgroundImageServerPath ? (r(), t(I, { key: 1, style: { position: "absolute", top: "4px", right: "4px", "font-size": "15px", "background-color": "red" }, onClick: p(k, ["stop"]) }, { default: l(() => [i(_)]), _: 1 })) : (r(), t(I, { key: 2, class: "avatar-uploader-icon" }, { default: l(() => [i(n(g))]), _: 1 }))]), _: 1 }, 8, ["headers", "action"])]), _: 1 })])]), _: 1 });
17
+ return r(), t(z, { title: "背景", name: "styleBackground", class: "amb-design-attr-group-header" }, { default: l(() => [s("div", m, [i(P, { label: "颜色", style: { "margin-top": "4px" } }, { default: l(() => [i(b3, { modelValue: e2.configure.style.backgroundColor, "onUpdate:modelValue": d2[0] || (d2[0] = (o3) => e2.configure.style.backgroundColor = o3) }, null, 8, ["modelValue"])]), _: 1 }), i(P, { label: "图片", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: l(() => [i(S, { class: "avatar-uploader", accept: "image/png, image/jpeg", "with-credentials": true, headers: { Authorization: n(v) }, action: h.value, "show-file-list": false, "on-success": w, "before-upload": x, style: { position: "relative" }, name: "file" }, { default: l(() => [e2.configure.style.backgroundImageServerPath ? (r(), u("img", { key: 0, src: y.value + e2.configure.style.backgroundImageServerPath + "&_tt=" + (/* @__PURE__ */ new Date()).getTime(), class: "avatar" }, null, 8, f)) : c("", true), e2.configure.style.backgroundImageServerPath ? (r(), t(I, { key: 1, style: { position: "absolute", top: "4px", right: "4px", "font-size": "15px", "background-color": "red" }, onClick: p(k, ["stop"]) }, { default: l(() => [i(_)]), _: 1 })) : (r(), t(I, { key: 2, class: "avatar-uploader-icon" }, { default: l(() => [i(n(g))]), _: 1 }))]), _: 1 }, 8, ["headers", "action"])]), _: 1 })])]), _: 1 });
19
18
  };
20
19
  } });
21
20
  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"]]);