super-page-designer 2.3.13-sit1-design1 → 2.3.14-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 (42) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +73 -62
  2. package/dist/es/components/design/utils/form-design-util.js +1 -1
  3. package/dist/es/components/design/utils/page-table-util.js +2 -2
  4. package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue.js +1 -1
  5. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +8 -8
  6. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +10 -10
  7. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +1 -1
  9. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue2.js +1 -1
  10. package/dist/es/components/design/views/assemblys/common/common-bind-default-value.vue.js +7 -0
  11. package/dist/es/components/design/views/assemblys/common/common-bind-default-value.vue2.js +27 -0
  12. package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +8 -8
  13. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +5 -5
  14. package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +16 -18
  15. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +43 -43
  16. package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +14 -16
  17. package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +21 -21
  18. package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +25 -27
  19. package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +16 -18
  20. package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +15 -17
  21. package/dist/es/components/design/views/assemblys/object-design.vue.js +1 -1
  22. package/dist/es/components/design/views/assemblys/object-design.vue3.js +87 -97
  23. package/dist/es/components/design/views/assemblys/page/page-attr-permissions.vue.js +37 -37
  24. package/dist/es/components/design/views/assemblys/workflow/component/condition-dialog.vue.js +28 -0
  25. package/dist/es/components/design/views/assemblys/workflow/component/condition-dialog.vue2.js +4 -0
  26. package/dist/es/components/design/views/assemblys/workflow/component/journal-set-dialog.vue.js +7 -0
  27. package/dist/es/components/design/views/assemblys/workflow/component/journal-set-dialog.vue2.js +33 -0
  28. package/dist/es/components/design/views/assemblys/workflow/component/set-dialog.vue.js +28 -0
  29. package/dist/es/components/design/views/assemblys/workflow/component/set-dialog.vue2.js +4 -0
  30. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr-advanced.vue.js +68 -0
  31. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr-advanced.vue2.js +4 -0
  32. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr-event.vue.js +14 -0
  33. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr-event.vue2.js +4 -0
  34. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr.vue.js +4 -0
  35. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr.vue2.js +15 -0
  36. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-design.vue.js +4 -0
  37. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-design.vue2.js +28 -0
  38. package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +14 -10
  39. package/dist/es/components/design/views/design/view/view-design-display.vue.js +8 -18
  40. package/dist/es/style.css +18 -3
  41. package/package.json +4 -4
  42. /package/dist/es/components/design/views/assemblys/button/component/{journal-set-dialog.vue2.js → journal-set-dialog.vue3.js} +0 -0
@@ -1,30 +1,28 @@
1
- import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as u, withCtx as t, createVNode as i, createCommentVNode as s, createElementVNode as r, withDirectives as n, createElementBlock as d, Fragment as m, renderList as p, unref as f, createTextVNode as c, vShow as g } from "vue";
1
+ import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as u, withCtx as t, createVNode as i, createCommentVNode as r, createElementVNode as s, withDirectives as n, createElementBlock as d, Fragment as m, renderList as p, unref as f, createTextVNode as c, vShow as g } from "vue";
2
2
  import { getFormComponentOptions as b } from "../../../../utils/assemblys-config.js";
3
3
  import { componentNameChange as v } from "../../../../utils/form-design-util.js";
4
- import V from "../../common/common-attr-size.vue.js";
5
- import _ from "../common/data-origin.vue.js";
4
+ import _ from "../../common/common-attr-size.vue.js";
5
+ import V from "../common/data-origin.vue.js";
6
6
  import y from "../common/data-linkage.vue.js";
7
7
  import h from "../../common/common-variable-bind.vue.js";
8
8
  import k from "../../common/common-function-code.vue.js";
9
- import x from "../common/verification-custom.vue.js";
10
- import U from "../../common/common-i18n-key-input.vue.js";
11
- const j = { style: { padding: "8px 0px 0px 0px" } }, w = { style: { padding: "8px 0px 0px 0px" } }, z = e({ __name: "radio-attr-base", props: { configure: Object, default: () => ({ props: {} }), pageDesign: { type: Object, default: () => {
12
- } } }, emits: ["changeAssembly"], setup(e2, { emit: z2 }) {
13
- const S = e2, T = l(S.configure.name), W = z2, D = l("base"), q = l(false);
14
- function O(e3, l2) {
15
- S.configure.props.base.prop = e3, l2 && (S.configure.props.base.title = l2);
16
- }
17
- function P(e3) {
18
- S.configure.props.base.defaultValue = e3;
9
+ import j from "../common/verification-custom.vue.js";
10
+ import x from "../../common/common-i18n-key-input.vue.js";
11
+ import w from "../../common/common-bind-default-value.vue.js";
12
+ const U = { style: { padding: "8px 0px 0px 0px" } }, z = { style: { padding: "8px 0px 0px 0px" } }, S = e({ __name: "radio-attr-base", props: { configure: Object, default: () => ({ props: {} }), pageDesign: { type: Object, default: () => {
13
+ } } }, emits: ["changeAssembly"], setup(e2, { emit: S2 }) {
14
+ const W = e2, D = l(W.configure.name), q = S2, O = l("base"), P = l(false);
15
+ function T(e3, l2) {
16
+ W.configure.props.base.prop = e3, l2 && (W.configure.props.base.title = l2);
19
17
  }
20
18
  function A(e3) {
21
- v(S.configure, e3, W);
19
+ v(W.configure, e3, q);
22
20
  }
23
- return S.configure.isTable && (q.value = true), (l2, v2) => {
24
- const z3 = a("el-option"), S2 = a("el-select"), W2 = a("el-form-item"), C = a("el-input"), B = a("el-radio"), E = a("el-radio-group"), F = a("el-input-number"), G = a("el-collapse-item"), H = a("el-checkbox"), I = a("el-collapse"), J = a("el-form");
25
- return u(), o(J, { "label-width": "80px", size: "small" }, { default: t(() => [i(I, { modelValue: D.value, "onUpdate:modelValue": v2[9] || (v2[9] = (e3) => D.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [i(G, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", j, [i(W2, { label: "组件类型", class: "amb-design-attr-item" }, { default: t(() => [i(S2, { modelValue: T.value, "onUpdate:modelValue": v2[0] || (v2[0] = (e3) => T.value = e3), onChange: A, placeholder: "请选择" }, { default: t(() => [(u(true), d(m, null, p(f(b)(), (e3) => (u(), o(z3, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(W2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: t(() => [i(C, { modelValue: e2.configure.uuid, "onUpdate:modelValue": v2[1] || (v2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), q.value ? s("", true) : (u(), o(W2, { key: 0, label: "绑定变量", class: "amb-design-attr-item" }, { default: t(() => [(u(), o(h, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data", "page"], "onUpdate:modelValue": O }, null, 8, ["modelValue"]))]), _: 1 })), i(W2, { label: "默认值", class: "amb-design-attr-item" }, { default: t(() => [(u(), o(h, { isTable: e2.configure.isTable, key: e2.configure.uuid, modelValue: e2.configure.props.base.defaultValue, "onUpdate:modelValue": P }, null, 8, ["isTable", "modelValue"]))]), _: 1 }), q.value ? s("", true) : (u(), o(W2, { key: 1, label: "绑定权限", class: "amb-design-attr-item" }, { default: t(() => [(u(), o(k, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), q.value ? s("", true) : (u(), o(W2, { key: 2, label: "标题显示", class: "amb-design-attr-item" }, { default: t(() => [i(E, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": v2[2] || (v2[2] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: t(() => [i(B, { value: true }, { default: t(() => v2[10] || (v2[10] = [c("显示")])), _: 1 }), i(B, { value: false }, { default: t(() => v2[11] || (v2[11] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), n(i(W2, { label: "标题", class: "amb-design-attr-item" }, { default: t(() => [i(U, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": v2[3] || (v2[3] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow]]), n(i(W2, { label: "标题宽度", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": v2[4] || (v2[4] = (l3) => e2.configure.props.base.titleWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow]]), n(i(W2, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: t(() => [i(E, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": v2[5] || (v2[5] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: t(() => [i(B, { value: "block" }, { default: t(() => v2[12] || (v2[12] = [c("换行")])), _: 1 }), i(B, { value: "inline" }, { default: t(() => v2[13] || (v2[13] = [c("不换行")])), _: 1 }), i(B, { value: "omit" }, { default: t(() => v2[14] || (v2[14] = [c("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), i(W2, { label: "尺寸", class: "amb-design-attr-item" }, { default: t(() => [i(E, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": v2[6] || (v2[6] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: t(() => [i(B, { value: "large" }, { default: t(() => v2[15] || (v2[15] = [c("大")])), _: 1 }), i(B, { value: "default" }, { default: t(() => v2[16] || (v2[16] = [c("中")])), _: 1 }), i(B, { value: "small" }, { default: t(() => v2[17] || (v2[17] = [c("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(W2, { label: "状态", class: "amb-design-attr-item" }, { default: t(() => [i(E, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": v2[7] || (v2[7] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: t(() => [i(B, { value: "default" }, { default: t(() => v2[18] || (v2[18] = [c("普通")])), _: 1 }), i(B, { value: "disabled" }, { default: t(() => v2[19] || (v2[19] = [c("禁用")])), _: 1 }), i(B, { value: "readonly" }, { default: t(() => v2[20] || (v2[20] = [c("只读")])), _: 1 }), i(B, { value: "hidden" }, { default: t(() => v2[21] || (v2[21] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), q.value ? s("", true) : (u(), o(_, { key: e2.configure.uuid, configure: e2.configure, remote: true }, null, 8, ["configure"])), (u(), o(y, { key: e2.configure.uuid, configureProps: e2.configure.props }, null, 8, ["configureProps"])), (u(), o(G, { title: "校验", key: e2.configure.uuid, name: "verification", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", w, [i(W2, { class: "amb-design-attr-item", "label-width": "0" }, { default: t(() => [i(H, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": v2[8] || (v2[8] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), i(W2, { class: "amb-design-attr-item", "label-width": "0" }, { default: t(() => [i(x, { pageDesign: e2.pageDesign, verification: e2.configure.props.verification }, null, 8, ["pageDesign", "verification"])]), _: 1 })])]), _: 1 })), q.value ? s("", true) : (u(), o(V, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
21
+ return W.configure.isTable && (P.value = true), (l2, v2) => {
22
+ const S3 = a("el-option"), W2 = a("el-select"), q2 = a("el-form-item"), C = a("el-input"), B = a("el-radio"), E = a("el-radio-group"), F = a("el-input-number"), G = a("el-collapse-item"), H = a("el-checkbox"), I = a("el-collapse"), J = a("el-form");
23
+ return u(), o(J, { "label-width": "80px", size: "small" }, { default: t(() => [i(I, { modelValue: O.value, "onUpdate:modelValue": v2[9] || (v2[9] = (e3) => O.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [i(G, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [s("div", U, [i(q2, { label: "组件类型", class: "amb-design-attr-item" }, { default: t(() => [i(W2, { modelValue: D.value, "onUpdate:modelValue": v2[0] || (v2[0] = (e3) => D.value = e3), onChange: A, placeholder: "请选择" }, { default: t(() => [(u(true), d(m, null, p(f(b)(), (e3) => (u(), o(S3, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(q2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: t(() => [i(C, { modelValue: e2.configure.uuid, "onUpdate:modelValue": v2[1] || (v2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), P.value ? r("", true) : (u(), o(q2, { key: 0, label: "绑定变量", class: "amb-design-attr-item" }, { default: t(() => [(u(), o(h, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data", "page"], "onUpdate:modelValue": T }, null, 8, ["modelValue"]))]), _: 1 })), i(q2, { label: "默认值", class: "amb-design-attr-item" }, { default: t(() => [i(w, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }), P.value ? r("", true) : (u(), o(q2, { key: 1, label: "绑定权限", class: "amb-design-attr-item" }, { default: t(() => [(u(), o(k, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), P.value ? r("", true) : (u(), o(q2, { key: 2, label: "标题显示", class: "amb-design-attr-item" }, { default: t(() => [i(E, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": v2[2] || (v2[2] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: t(() => [i(B, { value: true }, { default: t(() => v2[10] || (v2[10] = [c("显示")])), _: 1 }), i(B, { value: false }, { default: t(() => v2[11] || (v2[11] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), n(i(q2, { label: "标题", class: "amb-design-attr-item" }, { default: t(() => [i(x, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": v2[3] || (v2[3] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow]]), n(i(q2, { label: "标题宽度", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": v2[4] || (v2[4] = (l3) => e2.configure.props.base.titleWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow]]), n(i(q2, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: t(() => [i(E, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": v2[5] || (v2[5] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: t(() => [i(B, { value: "block" }, { default: t(() => v2[12] || (v2[12] = [c("换行")])), _: 1 }), i(B, { value: "inline" }, { default: t(() => v2[13] || (v2[13] = [c("不换行")])), _: 1 }), i(B, { value: "omit" }, { default: t(() => v2[14] || (v2[14] = [c("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), i(q2, { label: "尺寸", class: "amb-design-attr-item" }, { default: t(() => [i(E, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": v2[6] || (v2[6] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: t(() => [i(B, { value: "large" }, { default: t(() => v2[15] || (v2[15] = [c("大")])), _: 1 }), i(B, { value: "default" }, { default: t(() => v2[16] || (v2[16] = [c("中")])), _: 1 }), i(B, { value: "small" }, { default: t(() => v2[17] || (v2[17] = [c("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(q2, { label: "状态", class: "amb-design-attr-item" }, { default: t(() => [i(E, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": v2[7] || (v2[7] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: t(() => [i(B, { value: "default" }, { default: t(() => v2[18] || (v2[18] = [c("普通")])), _: 1 }), i(B, { value: "disabled" }, { default: t(() => v2[19] || (v2[19] = [c("禁用")])), _: 1 }), i(B, { value: "readonly" }, { default: t(() => v2[20] || (v2[20] = [c("只读")])), _: 1 }), i(B, { value: "hidden" }, { default: t(() => v2[21] || (v2[21] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), P.value ? r("", true) : (u(), o(V, { key: e2.configure.uuid, configure: e2.configure, remote: true }, null, 8, ["configure"])), (u(), o(y, { key: e2.configure.uuid, configureProps: e2.configure.props }, null, 8, ["configureProps"])), (u(), o(G, { title: "校验", key: e2.configure.uuid, name: "verification", class: "amb-design-attr-group-header" }, { default: t(() => [s("div", z, [i(q2, { class: "amb-design-attr-item", "label-width": "0" }, { default: t(() => [i(H, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": v2[8] || (v2[8] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), i(q2, { class: "amb-design-attr-item", "label-width": "0" }, { default: t(() => [i(j, { pageDesign: e2.pageDesign, verification: e2.configure.props.verification }, null, 8, ["pageDesign", "verification"])]), _: 1 })])]), _: 1 })), P.value ? r("", true) : (u(), o(_, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
26
24
  };
27
25
  } });
28
26
  export {
29
- z as default
27
+ S as default
30
28
  };
@@ -1,34 +1,32 @@
1
1
  import { defineComponent as e, ref as l, resolveComponent as a, createBlock as u, openBlock as o, withCtx as t, createVNode as i, createCommentVNode as s, withDirectives as r, createElementVNode as d, createElementBlock as n, Fragment as m, renderList as p, unref as f, createTextVNode as c, vShow as g } from "vue";
2
2
  import { getFormComponentOptions as b } from "../../../../utils/assemblys-config.js";
3
- import { componentNameChange as V } from "../../../../utils/form-design-util.js";
4
- import _ from "../../common/common-attr-size.vue.js";
3
+ import { componentNameChange as _ } from "../../../../utils/form-design-util.js";
4
+ import V from "../../common/common-attr-size.vue.js";
5
5
  import v from "../common/data-origin.vue.js";
6
6
  import y from "../common/data-linkage.vue.js";
7
7
  import h from "../../common/common-variable-bind.vue.js";
8
8
  import U from "../../common/common-function-code.vue.js";
9
9
  import k from "../common/title-suffix.vue.js";
10
10
  import w from "../common/verification-custom.vue.js";
11
- import x from "../../common/common-i18n-key-input.vue.js";
12
- const j = { style: { padding: "8px 0px 0px 0px" } }, S = { style: { padding: "8px 0px 0px 0px" } }, z = e({ __name: "select-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
13
- } }, default: () => ({ props: {} }) }, emits: ["changeAssembly"], setup(e2, { emit: z2 }) {
14
- const T = e2, q = l(T.configure.name), W = z2, D = l(["base"]), P = l(false);
15
- function C(e3, l2) {
16
- T.configure.props.base.prop = e3, l2 && (T.configure.props.base.title = l2);
17
- }
18
- function M(e3) {
19
- T.configure.props.base.optionProp = e3;
11
+ import j from "../../common/common-i18n-key-input.vue.js";
12
+ import x from "../../common/common-bind-default-value.vue.js";
13
+ const S = { style: { padding: "8px 0px 0px 0px" } }, z = { style: { padding: "8px 0px 0px 0px" } }, q = e({ __name: "select-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
14
+ } }, default: () => ({ props: {} }) }, emits: ["changeAssembly"], setup(e2, { emit: q2 }) {
15
+ const W = e2, D = l(W.configure.name), P = q2, C = l(["base"]), T = l(false);
16
+ function M(e3, l2) {
17
+ W.configure.props.base.prop = e3, l2 && (W.configure.props.base.title = l2);
20
18
  }
21
19
  function O(e3) {
22
- T.configure.props.base.defaultValue = e3;
20
+ W.configure.props.base.optionProp = e3;
23
21
  }
24
22
  function A(e3) {
25
- V(T.configure, e3, W);
23
+ _(W.configure, e3, P);
26
24
  }
27
- return T.configure.isTable && (P.value = true), (l2, V2) => {
28
- const z3 = a("el-option"), T2 = a("el-select"), W2 = a("el-form-item"), B = a("el-input"), E = a("el-radio"), F = a("el-radio-group"), G = a("el-input-number"), H = a("el-collapse-item"), I = a("el-checkbox"), J = a("el-collapse"), K = a("el-form");
29
- return o(), u(K, { "label-width": "80px", size: "small" }, { default: t(() => [i(J, { modelValue: D.value, "onUpdate:modelValue": V2[16] || (V2[16] = (e3) => D.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [i(H, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [d("div", j, [i(W2, { label: "组件类型", class: "amb-design-attr-item" }, { default: t(() => [i(T2, { modelValue: q.value, "onUpdate:modelValue": V2[0] || (V2[0] = (e3) => q.value = e3), onChange: A, placeholder: "请选择" }, { default: t(() => [(o(true), n(m, null, p(f(b)(), (e3) => (o(), u(z3, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(W2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: t(() => [i(B, { modelValue: e2.configure.uuid, "onUpdate:modelValue": V2[1] || (V2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), P.value ? s("", true) : (o(), u(W2, { key: 0, label: "绑定变量", class: "amb-design-attr-item" }, { default: t(() => [(o(), u(h, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data", "page"], "onUpdate:modelValue": C }, null, 8, ["modelValue"]))]), _: 1 })), P.value ? s("", true) : (o(), u(W2, { key: 1, label: "绑定权限", class: "amb-design-attr-item" }, { default: t(() => [(o(), u(U, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), P.value ? s("", true) : (o(), u(W2, { key: 2, label: "选项名变量", class: "amb-design-attr-item" }, { default: t(() => [(o(), u(h, { key: e2.configure.uuid, modelValue: e2.configure.props.base.optionProp, paramTypes: ["data", "page"], "onUpdate:modelValue": M }, null, 8, ["modelValue"]))]), _: 1 })), i(W2, { label: "默认值", class: "amb-design-attr-item" }, { default: t(() => [(o(), u(h, { isTable: e2.configure.isTable, key: e2.configure.uuid, modelValue: e2.configure.props.base.defaultValue, "onUpdate:modelValue": O }, null, 8, ["isTable", "modelValue"]))]), _: 1 }), P.value ? s("", true) : (o(), u(W2, { key: 3, label: "标题显示", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": V2[2] || (V2[2] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: t(() => [i(E, { value: true }, { default: t(() => V2[17] || (V2[17] = [c("显示")])), _: 1 }), i(E, { value: false }, { default: t(() => V2[18] || (V2[18] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), r(i(W2, { label: "标题", class: "amb-design-attr-item" }, { default: t(() => [i(x, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": V2[3] || (V2[3] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow]]), r(i(W2, { label: "标题宽度", class: "amb-design-attr-item" }, { default: t(() => [i(G, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": V2[4] || (V2[4] = (l3) => e2.configure.props.base.titleWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow]]), r(i(W2, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": V2[5] || (V2[5] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: t(() => [i(E, { value: "block" }, { default: t(() => V2[19] || (V2[19] = [c("换行")])), _: 1 }), i(E, { value: "inline" }, { default: t(() => V2[20] || (V2[20] = [c("不换行")])), _: 1 }), i(E, { value: "omit" }, { default: t(() => V2[21] || (V2[21] = [c("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), i(W2, { label: "输入提示", class: "amb-design-attr-item" }, { default: t(() => [i(x, { modelValue: e2.configure.props.base.placeholder, "onUpdate:modelValue": V2[6] || (V2[6] = (l3) => e2.configure.props.base.placeholder = l3) }, null, 8, ["modelValue"])]), _: 1 }), i(W2, { label: "多选", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.multiple, "onUpdate:modelValue": V2[7] || (V2[7] = (l3) => e2.configure.props.base.multiple = l3), class: "ml-4" }, { default: t(() => [i(E, { value: true }, { default: t(() => V2[22] || (V2[22] = [c("是")])), _: 1 }), i(E, { value: false }, { default: t(() => V2[23] || (V2[23] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(i(W2, { label: "多选合并", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.multipleMerge, "onUpdate:modelValue": V2[8] || (V2[8] = (l3) => e2.configure.props.base.multipleMerge = l3), class: "ml-4" }, { default: t(() => [i(E, { value: true }, { default: t(() => V2[24] || (V2[24] = [c("是")])), _: 1 }), i(E, { value: false }, { default: t(() => V2[25] || (V2[25] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.multiple]]), i(W2, { label: "可创建条目", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.allowCreate, "onUpdate:modelValue": V2[9] || (V2[9] = (l3) => e2.configure.props.base.allowCreate = l3), class: "ml-4" }, { default: t(() => [i(E, { value: true }, { default: t(() => V2[26] || (V2[26] = [c("是")])), _: 1 }), i(E, { value: false }, { default: t(() => V2[27] || (V2[27] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(W2, { label: "常用选优先", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.frequently, "onUpdate:modelValue": V2[10] || (V2[10] = (l3) => e2.configure.props.base.frequently = l3), class: "ml-4" }, { default: t(() => [i(E, { value: true }, { default: t(() => V2[28] || (V2[28] = [c("是")])), _: 1 }), i(E, { value: false }, { default: t(() => V2[29] || (V2[29] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(i(W2, { label: "值为数组", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.arrayValue, "onUpdate:modelValue": V2[11] || (V2[11] = (l3) => e2.configure.props.base.arrayValue = l3), class: "ml-4" }, { default: t(() => [i(E, { value: true }, { default: t(() => V2[30] || (V2[30] = [c("是")])), _: 1 }), i(E, { value: false }, { default: t(() => V2[31] || (V2[31] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.multiple]]), i(W2, { label: "清除按钮", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.clearable, "onUpdate:modelValue": V2[12] || (V2[12] = (l3) => e2.configure.props.base.clearable = l3), class: "ml-4" }, { default: t(() => [i(E, { value: true }, { default: t(() => V2[32] || (V2[32] = [c("显示")])), _: 1 }), i(E, { value: false }, { default: t(() => V2[33] || (V2[33] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(W2, { label: "尺寸", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": V2[13] || (V2[13] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: t(() => [i(E, { value: "large" }, { default: t(() => V2[34] || (V2[34] = [c("大")])), _: 1 }), i(E, { value: "default" }, { default: t(() => V2[35] || (V2[35] = [c("中")])), _: 1 }), i(E, { value: "small" }, { default: t(() => V2[36] || (V2[36] = [c("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(W2, { label: "状态", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": V2[14] || (V2[14] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: t(() => [i(E, { value: "default" }, { default: t(() => V2[37] || (V2[37] = [c("普通")])), _: 1 }), i(E, { value: "disabled" }, { default: t(() => V2[38] || (V2[38] = [c("禁用")])), _: 1 }), i(E, { value: "hidden" }, { default: t(() => V2[39] || (V2[39] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), P.value ? s("", true) : (o(), u(v, { key: e2.configure.uuid, configure: e2.configure, remote: true }, null, 8, ["configure"])), (o(), u(y, { key: e2.configure.uuid, configureProps: e2.configure.props }, null, 8, ["configureProps"])), r(i(k, { configure: e2.configure }, null, 8, ["configure"]), [[g, e2.configure.props.base.tittleShow]]), (o(), u(H, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: t(() => [d("div", S, [i(W2, { class: "amb-design-attr-item", "label-width": "0" }, { default: t(() => [i(I, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": V2[15] || (V2[15] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), i(W2, { class: "amb-design-attr-item", "label-width": "0" }, { default: t(() => [i(w, { pageDesign: e2.pageDesign, verification: e2.configure.props.verification }, null, 8, ["pageDesign", "verification"])]), _: 1 })])]), _: 1 })), P.value ? s("", true) : (o(), u(_, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
25
+ return W.configure.isTable && (T.value = true), (l2, _2) => {
26
+ const q3 = a("el-option"), W2 = a("el-select"), P2 = a("el-form-item"), B = a("el-input"), E = a("el-radio"), F = a("el-radio-group"), G = a("el-input-number"), H = a("el-collapse-item"), I = a("el-checkbox"), J = a("el-collapse"), K = a("el-form");
27
+ return o(), u(K, { "label-width": "80px", size: "small" }, { default: t(() => [i(J, { modelValue: C.value, "onUpdate:modelValue": _2[16] || (_2[16] = (e3) => C.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [i(H, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [d("div", S, [i(P2, { label: "组件类型", class: "amb-design-attr-item" }, { default: t(() => [i(W2, { modelValue: D.value, "onUpdate:modelValue": _2[0] || (_2[0] = (e3) => D.value = e3), onChange: A, placeholder: "请选择" }, { default: t(() => [(o(true), n(m, null, p(f(b)(), (e3) => (o(), u(q3, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(P2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: t(() => [i(B, { modelValue: e2.configure.uuid, "onUpdate:modelValue": _2[1] || (_2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), T.value ? s("", true) : (o(), u(P2, { key: 0, label: "绑定变量", class: "amb-design-attr-item" }, { default: t(() => [(o(), u(h, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data", "page"], "onUpdate:modelValue": M }, null, 8, ["modelValue"]))]), _: 1 })), T.value ? s("", true) : (o(), u(P2, { key: 1, label: "绑定权限", class: "amb-design-attr-item" }, { default: t(() => [(o(), u(U, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), T.value ? s("", true) : (o(), u(P2, { key: 2, label: "选项名变量", class: "amb-design-attr-item" }, { default: t(() => [(o(), u(h, { key: e2.configure.uuid, modelValue: e2.configure.props.base.optionProp, paramTypes: ["data", "page"], "onUpdate:modelValue": O }, null, 8, ["modelValue"]))]), _: 1 })), i(P2, { label: "默认值", class: "amb-design-attr-item" }, { default: t(() => [i(x, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }), T.value ? s("", true) : (o(), u(P2, { key: 3, label: "标题显示", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": _2[2] || (_2[2] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: t(() => [i(E, { value: true }, { default: t(() => _2[17] || (_2[17] = [c("显示")])), _: 1 }), i(E, { value: false }, { default: t(() => _2[18] || (_2[18] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), r(i(P2, { label: "标题", class: "amb-design-attr-item" }, { default: t(() => [i(j, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": _2[3] || (_2[3] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow]]), r(i(P2, { label: "标题宽度", class: "amb-design-attr-item" }, { default: t(() => [i(G, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": _2[4] || (_2[4] = (l3) => e2.configure.props.base.titleWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow]]), r(i(P2, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": _2[5] || (_2[5] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: t(() => [i(E, { value: "block" }, { default: t(() => _2[19] || (_2[19] = [c("换行")])), _: 1 }), i(E, { value: "inline" }, { default: t(() => _2[20] || (_2[20] = [c("不换行")])), _: 1 }), i(E, { value: "omit" }, { default: t(() => _2[21] || (_2[21] = [c("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), i(P2, { label: "输入提示", class: "amb-design-attr-item" }, { default: t(() => [i(j, { modelValue: e2.configure.props.base.placeholder, "onUpdate:modelValue": _2[6] || (_2[6] = (l3) => e2.configure.props.base.placeholder = l3) }, null, 8, ["modelValue"])]), _: 1 }), i(P2, { label: "多选", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.multiple, "onUpdate:modelValue": _2[7] || (_2[7] = (l3) => e2.configure.props.base.multiple = l3), class: "ml-4" }, { default: t(() => [i(E, { value: true }, { default: t(() => _2[22] || (_2[22] = [c("是")])), _: 1 }), i(E, { value: false }, { default: t(() => _2[23] || (_2[23] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(i(P2, { label: "多选合并", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.multipleMerge, "onUpdate:modelValue": _2[8] || (_2[8] = (l3) => e2.configure.props.base.multipleMerge = l3), class: "ml-4" }, { default: t(() => [i(E, { value: true }, { default: t(() => _2[24] || (_2[24] = [c("是")])), _: 1 }), i(E, { value: false }, { default: t(() => _2[25] || (_2[25] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.multiple]]), i(P2, { label: "可创建条目", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.allowCreate, "onUpdate:modelValue": _2[9] || (_2[9] = (l3) => e2.configure.props.base.allowCreate = l3), class: "ml-4" }, { default: t(() => [i(E, { value: true }, { default: t(() => _2[26] || (_2[26] = [c("是")])), _: 1 }), i(E, { value: false }, { default: t(() => _2[27] || (_2[27] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(P2, { label: "常用选优先", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.frequently, "onUpdate:modelValue": _2[10] || (_2[10] = (l3) => e2.configure.props.base.frequently = l3), class: "ml-4" }, { default: t(() => [i(E, { value: true }, { default: t(() => _2[28] || (_2[28] = [c("是")])), _: 1 }), i(E, { value: false }, { default: t(() => _2[29] || (_2[29] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(i(P2, { label: "值为数组", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.arrayValue, "onUpdate:modelValue": _2[11] || (_2[11] = (l3) => e2.configure.props.base.arrayValue = l3), class: "ml-4" }, { default: t(() => [i(E, { value: true }, { default: t(() => _2[30] || (_2[30] = [c("是")])), _: 1 }), i(E, { value: false }, { default: t(() => _2[31] || (_2[31] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.multiple]]), i(P2, { label: "清除按钮", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.clearable, "onUpdate:modelValue": _2[12] || (_2[12] = (l3) => e2.configure.props.base.clearable = l3), class: "ml-4" }, { default: t(() => [i(E, { value: true }, { default: t(() => _2[32] || (_2[32] = [c("显示")])), _: 1 }), i(E, { value: false }, { default: t(() => _2[33] || (_2[33] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(P2, { label: "尺寸", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": _2[13] || (_2[13] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: t(() => [i(E, { value: "large" }, { default: t(() => _2[34] || (_2[34] = [c("大")])), _: 1 }), i(E, { value: "default" }, { default: t(() => _2[35] || (_2[35] = [c("中")])), _: 1 }), i(E, { value: "small" }, { default: t(() => _2[36] || (_2[36] = [c("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(P2, { label: "状态", class: "amb-design-attr-item" }, { default: t(() => [i(F, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": _2[14] || (_2[14] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: t(() => [i(E, { value: "default" }, { default: t(() => _2[37] || (_2[37] = [c("普通")])), _: 1 }), i(E, { value: "disabled" }, { default: t(() => _2[38] || (_2[38] = [c("禁用")])), _: 1 }), i(E, { value: "hidden" }, { default: t(() => _2[39] || (_2[39] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), T.value ? s("", true) : (o(), u(v, { key: e2.configure.uuid, configure: e2.configure, remote: true }, null, 8, ["configure"])), (o(), u(y, { key: e2.configure.uuid, configureProps: e2.configure.props }, null, 8, ["configureProps"])), r(i(k, { configure: e2.configure }, null, 8, ["configure"]), [[g, e2.configure.props.base.tittleShow]]), (o(), u(H, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: t(() => [d("div", z, [i(P2, { class: "amb-design-attr-item", "label-width": "0" }, { default: t(() => [i(I, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": _2[15] || (_2[15] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), i(P2, { class: "amb-design-attr-item", "label-width": "0" }, { default: t(() => [i(w, { pageDesign: e2.pageDesign, verification: e2.configure.props.verification }, null, 8, ["pageDesign", "verification"])]), _: 1 })])]), _: 1 })), T.value ? s("", true) : (o(), u(V, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
30
28
  };
31
29
  } });
32
30
  export {
33
- z as default
31
+ q as default
34
32
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./object-design.vue3.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = o(e, [["__scopeId", "data-v-62a28ffa"]]);
4
+ const t = o(e, [["__scopeId", "data-v-3c3cc623"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,140 +1,130 @@
1
- import { defineComponent as e, onUnmounted as i, watch as n, ref as r, computed as o, onMounted as s, resolveComponent as t, createElementBlock as u, openBlock as g, normalizeStyle as a, normalizeClass as p, createBlock as c, withDirectives as l, resolveDynamicComponent as f, withModifiers as d, createElementVNode as m, createVNode as D, withCtx as v, unref as b, vShow as h } from "vue";
1
+ import { defineComponent as e, onUnmounted as i, watch as n, ref as r, computed as o, onMounted as t, resolveComponent as s, createElementBlock as u, openBlock as g, normalizeStyle as a, normalizeClass as p, createBlock as c, withDirectives as l, resolveDynamicComponent as f, withModifiers as d, createElementVNode as m, createVNode as v, withCtx as D, unref as b, vShow as h } from "vue";
2
2
  import { CopyDocument as x, Delete as y } from "@element-plus/icons";
3
3
  import j from "./error-design.vue.js";
4
4
  import { getDesignComponentByName as C } from "../../utils/assemblys-config.js";
5
5
  import { caculateCommonStyle as W } from "../../utils/container-design-util.js";
6
6
  import { PageDimensions as k } from "../../utils/interfaces/page-design-types.js";
7
7
  import { batchUpdatePermissions as O, batchRemovePermissions as S } from "../../utils/page-permission-util.js";
8
- import { watchValidate as P, getRefrencePropMap as B, removePropFromRefrencePropMap as M } from "../../utils/form-design-util.js";
9
- import { usePageContextStore as T } from "../../../../stores/page-store.js";
10
- import { getListCode as w } from "super-page-runtime";
8
+ import { watchValidate as P, getRefrencePropMap as B, removePropFromRefrencePropMap as T } from "../../utils/form-design-util.js";
9
+ import { usePageContextStore as w } from "../../../../stores/page-store.js";
10
+ import { getListCode as I } from "super-page-runtime";
11
11
  import { getFormPropName as U } from "../../utils/page-helper-util.js";
12
12
  import { updateServiceInputs as _ } from "../../utils/chart-design-util.js";
13
- const I = { class: "amb-widget-item-tool" }, N = e({ __name: "object-design", props: { pageDesign: {}, configure: {}, selectWidget: {}, indexObj: {}, showSelectedClass: { type: Boolean, default: true }, errorBlank: { type: Boolean, default: false }, isTableBtnLink: { type: Boolean, default: false } }, emits: ["onSelectWidget", "onCustomAttrWidget", "onCopy", "onDelete"], setup(e2, { emit: N2 }) {
13
+ const M = { class: "amb-widget-item-tool" }, N = e({ __name: "object-design", props: { pageDesign: {}, configure: {}, selectWidget: {}, indexObj: {}, showSelectedClass: { type: Boolean, default: true }, errorBlank: { type: Boolean, default: false }, isTableBtnLink: { type: Boolean, default: false } }, emits: ["onSelectWidget", "onCustomAttrWidget", "onCopy", "onDelete"], setup(e2, { emit: N2 }) {
14
14
  var _a, _b;
15
- const R = T(), q = e2;
16
- if ("table" === q.configure.name && q.pageDesign.tableRuntimes && q.pageDesign.tableRuntimes[q.configure.uuid]) {
17
- const e3 = q.pageDesign.tableRuntimes[q.configure.uuid].configure, i2 = JSON.parse(e3);
18
- Object.assign(q.configure, i2), delete q.pageDesign.tableRuntimes[q.configure.uuid];
15
+ const L = w(), R = e2;
16
+ if ("table" === R.configure.name && R.pageDesign.tableRuntimes && R.pageDesign.tableRuntimes[R.configure.uuid]) {
17
+ const e3 = R.pageDesign.tableRuntimes[R.configure.uuid].configure, i2 = JSON.parse(e3);
18
+ Object.assign(R.configure, i2), delete R.pageDesign.tableRuntimes[R.configure.uuid];
19
19
  }
20
- if (q.indexObj && q.indexObj.index++, null == q.configure.props && (q.configure.props = {}), null == q.configure.style && (q.configure.style = {}), q.pageDesign && q.configure && "table" == q.configure.name) {
21
- if (q.configure.uuid) {
22
- q.pageDesign.tableUuids || (q.pageDesign.tableUuids = []);
23
- const e3 = setTimeout(() => {
24
- var _a2, _b2, _c, _d;
25
- ((_b2 = (_a2 = q.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.includes(q.configure.uuid)) || ((_d = (_c = q.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.push(q.configure.uuid)), z(q.configure.code);
26
- }, 500);
27
- i(() => {
28
- var _a2, _b2, _c, _d;
29
- const i2 = (_b2 = (_a2 = q.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.indexOf(q.configure.uuid);
30
- null != i2 && i2 > -1 && ((_d = (_c = q.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.shift(i2, 1));
31
- const n2 = w(q.pageDesign.code, q.pageDesign.version, q.configure.uuid);
32
- q.pageDesign.listCodesMap && q.pageDesign.listCodesMap[n2] && delete q.pageDesign.listCodesMap[n2], q.pageDesign.subTableWatchProps && delete q.pageDesign.subTableWatchProps[q.configure.uuid], e3 && clearTimeout(e3);
33
- });
34
- }
35
- n(() => q.configure.code, (e3) => {
36
- z(e3);
20
+ if (R.indexObj && R.indexObj.index++, null == R.configure.props && (R.configure.props = {}), null == R.configure.style && (R.configure.style = {}), R.pageDesign && R.configure && "table" == R.configure.name && R.configure.uuid) {
21
+ R.pageDesign.tableUuids || (R.pageDesign.tableUuids = []);
22
+ const e3 = setTimeout(() => {
23
+ var _a2, _b2, _c, _d;
24
+ ((_b2 = (_a2 = R.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.includes(R.configure.uuid)) || ((_d = (_c = R.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.push(R.configure.uuid)), getListCodeMap(R.configure.code);
25
+ }, 500);
26
+ i(() => {
27
+ var _a2, _b2, _c, _d;
28
+ const i2 = (_b2 = (_a2 = R.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.indexOf(R.configure.uuid);
29
+ null != i2 && i2 > -1 && ((_d = (_c = R.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.shift(i2, 1));
30
+ const n2 = I(R.pageDesign.code, R.pageDesign.version, R.configure.uuid);
31
+ R.pageDesign.listCodesInitSearchForm && R.pageDesign.listCodesInitSearchForm[n2] && delete R.pageDesign.listCodesInitSearchForm[n2], R.pageDesign.subTableWatchProps && delete R.pageDesign.subTableWatchProps[R.configure.uuid], e3 && clearTimeout(e3);
37
32
  });
38
33
  }
39
- function z(e3) {
40
- q.pageDesign.listCodesMap || (q.pageDesign.listCodesMap = {});
41
- const i2 = w(q.pageDesign.code, q.pageDesign.version, q.configure.uuid);
42
- i2 && (q.pageDesign.listCodesMap[i2] = e3 || i2);
43
- }
44
- q.configure.events && q.pageDesign && (n(q.configure.events, (e3) => {
45
- O(q.configure, q.pageDesign);
46
- const i2 = q.configure.events.filter((e4) => !e4.isStandard && e4.jsContent || e4.isStandard && e4.eventName);
47
- q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.events = i2;
34
+ R.configure.events && R.pageDesign && (n(R.configure.events, (e3) => {
35
+ O(R.configure, R.pageDesign);
36
+ const i2 = R.configure.events.filter((e4) => !e4.isStandard && e4.jsContent || e4.isStandard && e4.eventName);
37
+ R.configure.runtime || (R.configure.runtime = {}), R.configure.runtime.events = i2;
48
38
  }, { immediate: true }), i(() => {
49
- S(q.pageDesign, q.configure.uuid);
50
- })), q.configure.props.linkPage && q.pageDesign && n(q.configure.props.linkPage, (e3) => {
51
- q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.linkPage = q.configure.props.linkPage;
52
- }, { immediate: true }), q.configure.props.parameter && q.pageDesign && n(q.configure.props.parameter, (e3) => {
39
+ S(R.pageDesign, R.configure.uuid);
40
+ })), R.configure.props.linkPage && R.pageDesign && n(R.configure.props.linkPage, (e3) => {
41
+ R.configure.runtime || (R.configure.runtime = {}), R.configure.runtime.linkPage = R.configure.props.linkPage;
42
+ }, { immediate: true }), R.configure.props.parameter && R.pageDesign && n(R.configure.props.parameter, (e3) => {
53
43
  let i2 = {};
54
44
  e3.forEach((e4) => {
55
45
  void 0 !== e4.paramName && "" !== e4.paramName && null !== e4.paramName && void 0 !== e4.paramValue && "" !== e4.paramValue && null !== e4.paramValue && (i2[e4.paramName] = e4.paramValue);
56
- }), q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.customParams = i2;
57
- }, { immediate: true }), ((_b = (_a = q.configure.props) == null ? void 0 : _a.dataOrigin) == null ? void 0 : _b.serviceInputs) && q.pageDesign && n(q.configure.props.dataOrigin.serviceInputs, (e3) => {
58
- _(q.configure, e3);
59
- }, { immediate: true }), q.configure.componentIndex = q.indexObj.index;
60
- let H = q.indexObj.index;
61
- const L = N2, V = r({});
62
- V.value = C(q.configure.name);
63
- const A = r(true);
64
- null == V.value && (V.value = j, A.value = false), n(() => q.configure.name, (e3) => {
65
- V.value = C(e3);
66
- }), q.configure.props && q.configure.props.verification && (q.configure.props.base && q.configure.props.base.title && n(() => q.configure.props.base.title, (e3) => {
67
- P(q.configure, q.configure.props.verification, ne());
68
- }), q.configure.props.base && q.configure.props.base.prop && (n(() => q.configure.props.base.prop, (e3, i2) => {
69
- P(q.configure, q.configure.props.verification, ne()), q.pageDesign.runtime || (q.pageDesign.runtime = {}), q.pageDesign.runtime.refercePropMap || (q.pageDesign.runtime.refercePropMap = {}), B(e3, i2, q.pageDesign.runtime.refercePropMap);
46
+ }), R.configure.runtime || (R.configure.runtime = {}), R.configure.runtime.customParams = i2;
47
+ }, { immediate: true }), ((_b = (_a = R.configure.props) == null ? void 0 : _a.dataOrigin) == null ? void 0 : _b.serviceInputs) && R.pageDesign && n(R.configure.props.dataOrigin.serviceInputs, (e3) => {
48
+ _(R.configure, e3);
49
+ }, { immediate: true }), R.configure.componentIndex = R.indexObj.index;
50
+ let q = R.indexObj.index;
51
+ const z = N2, F = r({});
52
+ F.value = C(R.configure.name);
53
+ const H = r(true);
54
+ null == F.value && (F.value = j, H.value = false), n(() => R.configure.name, (e3) => {
55
+ F.value = C(e3);
56
+ }), R.configure.props && R.configure.props.verification && (R.configure.props.base && R.configure.props.base.title && n(() => R.configure.props.base.title, (e3) => {
57
+ P(R.configure, R.configure.props.verification, ie());
58
+ }), R.configure.props.base && R.configure.props.base.prop && (n(() => R.configure.props.base.prop, (e3, i2) => {
59
+ P(R.configure, R.configure.props.verification, ie()), R.pageDesign.runtime || (R.pageDesign.runtime = {}), R.pageDesign.runtime.refercePropMap || (R.pageDesign.runtime.refercePropMap = {}), B(e3, i2, R.pageDesign.runtime.refercePropMap);
70
60
  }), i(() => {
71
61
  var _a2, _b2;
72
- M(q.configure.props.base.prop, (_b2 = (_a2 = q.pageDesign) == null ? void 0 : _a2.runtime) == null ? void 0 : _b2.refercePropMap);
73
- })), n(q.configure.props.verification, (e3, i2) => {
74
- P(q.configure, e3, ne());
75
- })), q.pageDesign.props && n(() => q.pageDesign.props.activeWorkflow, (e3, i2) => {
62
+ T(R.configure.props.base.prop, (_b2 = (_a2 = R.pageDesign) == null ? void 0 : _a2.runtime) == null ? void 0 : _b2.refercePropMap);
63
+ })), n(R.configure.props.verification, (e3, i2) => {
64
+ P(R.configure, e3, ie());
65
+ })), R.pageDesign.props && n(() => R.pageDesign.props.activeWorkflow, (e3, i2) => {
76
66
  if (e3) {
77
- const e4 = q.configure.props && q.configure.props.rules ? q.configure.props.rules.filter((e5) => e5.required) : null;
67
+ const e4 = R.configure.props && R.configure.props.rules ? R.configure.props.rules.filter((e5) => e5.required) : null;
78
68
  e4 && e4.length > 0 && e4.forEach((e5) => {
79
69
  e5.required = false;
80
- }), q.configure.props && q.configure.props.verification && q.configure.props.verification.required && (q.configure.props.verification.required = false);
70
+ }), R.configure.props && R.configure.props.verification && R.configure.props.verification.required && (R.configure.props.verification.required = false);
81
71
  }
82
72
  });
83
- const E = r(null), F = r({}), J = r(""), G = r({});
84
- function K() {
85
- W(q.configure, F, J), q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.common || (q.configure.runtime.common = {}), q.configure.runtime.common.class = J.value, q.configure.runtime.common.style = F.value;
73
+ const V = r(null), A = r({}), E = r(""), J = r({});
74
+ function G() {
75
+ W(R.configure, A, E), R.configure.runtime || (R.configure.runtime = {}), R.configure.runtime.common || (R.configure.runtime.common = {}), R.configure.runtime.common.class = E.value, R.configure.runtime.common.style = A.value;
86
76
  }
87
- if (q.configure.props && q.configure.props && (n(q.configure.props.size, (e3) => {
88
- K();
89
- }), n(() => q.configure.props.position, (e3) => {
90
- K();
91
- }, { immediate: true })), q.configure.style && q.configure.style && n(q.configure.style, () => {
92
- K();
93
- }), q.configure.props) {
94
- q.configure.props.size || (q.configure.props.size = {});
95
- const e3 = q.configure.props.size;
77
+ if (R.configure.props && R.configure.props && (n(R.configure.props.size, (e3) => {
78
+ G();
79
+ }), n(() => R.configure.props.position, (e3) => {
80
+ G();
81
+ }, { immediate: true })), R.configure.style && R.configure.style && n(R.configure.style, () => {
82
+ G();
83
+ }), R.configure.props) {
84
+ R.configure.props.size || (R.configure.props.size = {});
85
+ const e3 = R.configure.props.size;
96
86
  let i2 = e3[k.PC];
97
87
  i2 || (i2 = {}, e3[k.PC] = i2), 0 == Object.keys(i2).length && (i2.widthType = e3.widthType, i2.flexSpan = e3.flexSpan, i2.fixWidth = e3.fixWidth, i2.fixHeight = e3.fixHeight, delete e3.widthType, delete e3.flexSpan, delete e3.fixWidth, delete e3.fixHeight);
98
88
  }
99
- const Q = o(() => {
100
- const e3 = F.value;
101
- if (G.value = {}, !e3 || !q.pageDesign) return {};
89
+ const K = o(() => {
90
+ const e3 = A.value;
91
+ if (J.value = {}, !e3 || !R.pageDesign) return {};
102
92
  const i2 = {};
103
- q.configure.design && q.configure.design.style && Object.assign(i2, q.configure.design.style);
104
- const n2 = q.pageDesign.dimensions ? q.pageDesign.dimensions : "pc", r2 = e3[n2 + "_style"];
105
- return r2 && (i2.width = r2.width, i2.height = r2.height, G.value = { height: r2.height }), J.value = e3[n2 + "_class"], i2;
93
+ R.configure.design && R.configure.design.style && Object.assign(i2, R.configure.design.style);
94
+ const n2 = R.pageDesign.dimensions ? R.pageDesign.dimensions : "pc", r2 = e3[n2 + "_style"];
95
+ return r2 && (i2.width = r2.width, i2.height = r2.height, J.value = { height: r2.height }), E.value = e3[n2 + "_class"], i2;
106
96
  });
107
- q.selectWidget && n(q.selectWidget, (e3) => {
108
- e3 && e3.value == H ? X.value = "amb-design-item-selected" : X.value = "";
97
+ R.selectWidget && n(R.selectWidget, (e3) => {
98
+ e3 && e3.value == q ? Q.value = "amb-design-item-selected" : Q.value = "";
109
99
  });
110
- const X = r("");
111
- function Y(e3) {
112
- e3 && e3.preventDefault(), L("onSelectWidget", H, q.configure);
100
+ const Q = r("");
101
+ function X(e3) {
102
+ e3 && e3.preventDefault(), z("onSelectWidget", q, R.configure);
103
+ }
104
+ function Y(e3, i2) {
105
+ z("onSelectWidget", e3, i2);
113
106
  }
114
107
  function Z(e3, i2) {
115
- L("onSelectWidget", e3, i2);
108
+ z("onCustomAttrWidget", e3, i2);
116
109
  }
117
- function $(e3, i2) {
118
- L("onCustomAttrWidget", e3, i2);
110
+ function $(e3) {
111
+ e3.preventDefault(), z("onCopy", R.configure);
119
112
  }
120
113
  function ee(e3) {
121
- e3.preventDefault(), L("onCopy", q.configure);
122
- }
123
- function ie(e3) {
124
- if (e3.preventDefault(), L("onDelete", q.configure), q.pageDesign.allChartUuids) {
125
- const e4 = q.pageDesign.allChartUuids.findIndex((e5) => e5 === q.configure.uuid);
126
- e4 >= 0 && q.pageDesign.allChartUuids.splice(e4, 1);
114
+ if (e3.preventDefault(), z("onDelete", R.configure), R.pageDesign.allChartUuids) {
115
+ const e4 = R.pageDesign.allChartUuids.findIndex((e5) => e5 === R.configure.uuid);
116
+ e4 >= 0 && R.pageDesign.allChartUuids.splice(e4, 1);
127
117
  }
128
118
  }
129
- function ne() {
119
+ function ie() {
130
120
  var _a2, _b2;
131
- return R.getModelField(U((_b2 = (_a2 = q.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.prop));
121
+ return L.getModelField(U((_b2 = (_a2 = R.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.prop));
132
122
  }
133
- return s(() => {
134
- q.configure.props && q.configure.props.isInit && (delete q.configure.props.isInit, L("onSelectWidget", H, q.configure));
123
+ return t(() => {
124
+ R.configure.props && R.configure.props.isInit && (delete R.configure.props.isInit, z("onSelectWidget", q, R.configure));
135
125
  }), (e3, i2) => {
136
- const n2 = t("el-icon");
137
- return g(), u("div", { class: p(["amb-object-design-ref", J.value]), style: a([{ position: "relative" }, Q.value]), ref_key: "thisRef", ref: E }, [(g(), c(f(V.value), { style: a([F.value, G.value]), configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, errorBlank: e3.errorBlank, selectWidget: e3.selectWidget, onClick: d(Y, ["stop"]), onHandleSelect: Y, class: p([[X.value], "amb-design-item"]), isTableBtnLink: q.isTableBtnLink, onOnSelectWidget: Z, onOnCustomAttrWidget: $ }, null, 40, ["style", "configure", "pageDesign", "indexObj", "errorBlank", "selectWidget", "class", "isTableBtnLink"])), l(m("span", I, [l(D(n2, { onClick: d(ee, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(x))]), _: 1 }, 512), [[h, A.value]]), D(n2, { onClick: d(ie, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(y))]), _: 1 })], 512), [[h, X.value && e3.showSelectedClass]])], 6);
126
+ const n2 = s("el-icon");
127
+ return g(), u("div", { class: p(["amb-object-design-ref", E.value]), style: a([{ position: "relative" }, K.value]), ref_key: "thisRef", ref: V }, [(g(), c(f(F.value), { style: a([A.value, J.value]), configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, errorBlank: e3.errorBlank, selectWidget: e3.selectWidget, onClick: d(X, ["stop"]), onHandleSelect: X, class: p([[Q.value], "amb-design-item"]), isTableBtnLink: R.isTableBtnLink, onOnSelectWidget: Y, onOnCustomAttrWidget: Z }, null, 40, ["style", "configure", "pageDesign", "indexObj", "errorBlank", "selectWidget", "class", "isTableBtnLink"])), l(m("span", M, [l(v(n2, { onClick: d($, ["stop"]), style: { "margin-left": "6px" } }, { default: D(() => [v(b(x))]), _: 1 }, 512), [[h, H.value]]), v(n2, { onClick: d(ee, ["stop"]), style: { "margin-left": "6px" } }, { default: D(() => [v(b(y))]), _: 1 })], 512), [[h, Q.value && e3.showSelectedClass]])], 6);
138
128
  };
139
129
  } });
140
130
  export {
@@ -1,60 +1,60 @@
1
- import { defineComponent as e, ref as o, onUnmounted as l, resolveComponent as i, createBlock as t, openBlock as n, withCtx as r, createElementVNode as s, createVNode as u, unref as a, createElementBlock as p, toDisplayString as m, Fragment as c, renderList as d, createCommentVNode as f } from "vue";
2
- import { Top as g, Bottom as w, Plus as y, Delete as b } from "@element-plus/icons-vue";
3
- import { getUuidv4 as C } from "../../../utils/common-util.js";
4
- import { getFunctionTypes as _ } from "../../../utils/page-permission-util.js";
5
- import { FuncType as x } from "super-page-runtime";
6
- import k from "../common/page-permission-select.vue.js";
7
- const P = { style: { padding: "8px 0px 0px 0px" } }, h = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, v = ["title"], V = { key: 1 }, T = e({ __name: "page-attr-permissions", props: { configure: {} }, setup(e2, { expose: T2 }) {
8
- const U = e2, j = _();
9
- U.configure.pagePermissions || (U.configure.pagePermissions = []);
10
- const z = o([]);
11
- function D(e3) {
1
+ import { defineComponent as e, ref as o, onUnmounted as l, resolveComponent as i, createBlock as t, openBlock as n, withCtx as r, createElementVNode as s, createVNode as u, unref as a, createElementBlock as p, toDisplayString as m, Fragment as c, renderList as d } from "vue";
2
+ import { Top as f, Bottom as g, Plus as w, Delete as b } from "@element-plus/icons-vue";
3
+ import { getUuidv4 as y } from "../../../utils/common-util.js";
4
+ import { getFunctionTypes as C } from "../../../utils/page-permission-util.js";
5
+ import { FuncType as _ } from "super-page-runtime";
6
+ import x from "../common/page-permission-select.vue.js";
7
+ const P = { style: { padding: "8px 0px 0px 0px" } }, h = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, k = ["title"], v = { key: 1 }, V = e({ __name: "page-attr-permissions", props: { configure: {} }, setup(e2, { expose: V2 }) {
8
+ const T = e2, U = C();
9
+ T.configure.pagePermissions || (T.configure.pagePermissions = []);
10
+ const j = o([]);
11
+ function z(e3) {
12
12
  let o2 = -1;
13
- const l2 = U.configure.pagePermissions.length;
14
- for (let i2 = 0; i2 < l2; i2++) if (U.configure.pagePermissions[i2].uuid == e3.uuid) {
13
+ const l2 = T.configure.pagePermissions.length;
14
+ for (let i2 = 0; i2 < l2; i2++) if (T.configure.pagePermissions[i2].uuid == e3.uuid) {
15
15
  o2 = i2;
16
16
  break;
17
17
  }
18
18
  return o2;
19
19
  }
20
- function O(e3) {
20
+ function D(e3) {
21
21
  let o2 = -1;
22
- e3 && (o2 = D(e3));
23
- const l2 = { source: "custom", simpleCode: "", type: "", name: "", funcType: x.AUTHORIZED, uuid: C() };
24
- U.configure.pagePermissions.splice(o2 + 1, 0, l2);
22
+ e3 && (o2 = z(e3));
23
+ const l2 = { source: "custom", simpleCode: "", type: "", name: "", funcType: _.AUTHORIZED, uuid: y() };
24
+ T.configure.pagePermissions.splice(o2 + 1, 0, l2);
25
25
  }
26
- let A;
26
+ let O;
27
27
  return l(() => {
28
- A && clearTimeout(A);
29
- }), T2({ updateSourceFields: function(e3) {
30
- z.value = e3 || [];
28
+ O && clearTimeout(O);
29
+ }), V2({ updateSourceFields: function(e3) {
30
+ j.value = e3 || [];
31
31
  } }), (e3, o2) => {
32
- const l2 = i("el-icon"), C2 = i("el-table-column"), _2 = i("el-input"), x2 = i("el-option"), T3 = i("el-select"), z2 = i("el-table"), E = i("el-collapse-item");
33
- return n(), t(E, { title: "页面资源", name: "pagePermissions", class: "amb-design-attr-group-header" }, { default: r(() => [s("div", P, [u(z2, { data: e3.configure.pagePermissions }, { default: r(() => [u(C2, { label: "", width: "32" }, { default: r((e4) => [s("div", h, [u(l2, { size: "14", style: { cursor: "pointer" }, onClick: (o3) => function(e5) {
34
- let o4 = D(e5);
32
+ const l2 = i("el-icon"), y2 = i("el-table-column"), C2 = i("el-input"), _2 = i("el-option"), V3 = i("el-select"), j2 = i("el-table"), A = i("el-collapse-item");
33
+ return n(), t(A, { title: "页面资源", name: "pagePermissions", class: "amb-design-attr-group-header" }, { default: r(() => [s("div", P, [u(j2, { data: e3.configure.pagePermissions }, { default: r(() => [u(y2, { label: "", width: "32" }, { default: r((e4) => [s("div", h, [u(l2, { size: "14", style: { cursor: "pointer" }, onClick: (o3) => function(e5) {
34
+ let o4 = z(e5);
35
35
  if (o4 < 1) return;
36
- const l3 = U.configure.pagePermissions;
36
+ const l3 = T.configure.pagePermissions;
37
37
  [l3[o4 - 1], l3[o4]] = [l3[o4], l3[o4 - 1]];
38
- }(e4.row) }, { default: r(() => [u(a(g))]), _: 2 }, 1032, ["onClick"]), u(l2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (o3) => function(e5) {
39
- let o4 = D(e5);
40
- const l3 = U.configure.pagePermissions;
38
+ }(e4.row) }, { default: r(() => [u(a(f))]), _: 2 }, 1032, ["onClick"]), u(l2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (o3) => function(e5) {
39
+ let o4 = z(e5);
40
+ const l3 = T.configure.pagePermissions;
41
41
  -1 != o4 && l3.length != o4 + 1 && ([l3[o4], l3[o4 + 1]] = [l3[o4 + 1], l3[o4]]);
42
- }(e4.row) }, { default: r(() => [u(a(w))]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), u(C2, { prop: "simpleCode", label: "简码", width: "65" }, { default: r((o3) => ["auto" == o3.row.source ? (n(), p("span", { key: 0, title: o3.row.simpleCode }, m(o3.row.simpleCode), 9, v)) : (n(), p("span", V, [u(k, { pageDesign: e3.configure, rowObj: o3.row, "onUpdate:modelValue": (e4, l3, i2) => function(e5, o4, l4, i3) {
42
+ }(e4.row) }, { default: r(() => [u(a(g))]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), u(y2, { prop: "simpleCode", label: "简码", width: "65" }, { default: r((o3) => ["auto" == o3.row.source ? (n(), p("span", { key: 0, title: o3.row.simpleCode }, m(o3.row.simpleCode), 9, k)) : (n(), p("span", v, [u(x, { pageDesign: e3.configure, rowObj: o3.row, "onUpdate:modelValue": (e4, l3, i2) => function(e5, o4, l4, i3) {
43
43
  if (i3) {
44
44
  if (o4) {
45
- for (let l5 of U.configure.pagePermissions) if (l5.simpleCode == o4 && l5.type == e5 && l5.uuid != i3.uuid) return void alert("已经存在相同的权限!");
45
+ for (let l5 of T.configure.pagePermissions) if (l5.simpleCode == o4 && l5.type == e5 && l5.uuid != i3.uuid) return void alert("已经存在相同的权限!");
46
46
  }
47
47
  i3.type = e5, i3.simpleCode = o4, o4 && !l4 || (i3.name = l4);
48
48
  }
49
- }(e4, l3, i2, o3.row) }, null, 8, ["pageDesign", "rowObj", "onUpdate:modelValue"])]))]), _: 1 }), u(C2, { prop: "name", label: "名称", width: "70" }, { default: r((e4) => [u(_2, { modelValue: e4.row.name, "onUpdate:modelValue": (o3) => e4.row.name = o3, title: e4.row.name }, null, 8, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), u(C2, { prop: "funcType", label: "类型", width: "60" }, { default: r((e4) => [u(T3, { modelValue: e4.row.funcType, "onUpdate:modelValue": (o3) => e4.row.funcType = o3 }, { default: r(() => [(n(true), p(c, null, d(a(j), (e5) => (n(), t(x2, { value: e5.value, label: e5.label }, null, 8, ["value", "label"]))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(C2, { label: "操作", width: "60" }, { default: r((e4) => [u(l2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (o3) => O(e4.row) }, { default: r(() => [u(a(y))]), _: 2 }, 1032, ["onClick"]), "auto" != e4.row.source ? (n(), t(l2, { key: 0, size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (o3) => function(e5) {
50
- A && clearTimeout(A);
51
- let o4 = D(e5);
52
- o4 > -1 && (U.configure.pagePermissions.splice(o4, 1), 0 == U.configure.pagePermissions.length && (A = setTimeout(function() {
53
- O(null);
49
+ }(e4, l3, i2, o3.row) }, null, 8, ["pageDesign", "rowObj", "onUpdate:modelValue"])]))]), _: 1 }), u(y2, { prop: "name", label: "名称", width: "70" }, { default: r((e4) => [u(C2, { modelValue: e4.row.name, "onUpdate:modelValue": (o3) => e4.row.name = o3, title: e4.row.name }, null, 8, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), u(y2, { prop: "funcType", label: "类型", width: "60" }, { default: r((e4) => [u(V3, { modelValue: e4.row.funcType, "onUpdate:modelValue": (o3) => e4.row.funcType = o3 }, { default: r(() => [(n(true), p(c, null, d(a(U), (e5) => (n(), t(_2, { value: e5.value, label: e5.label }, null, 8, ["value", "label"]))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(y2, { label: "操作", width: "60" }, { default: r((e4) => [u(l2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (o3) => D(e4.row) }, { default: r(() => [u(a(w))]), _: 2 }, 1032, ["onClick"]), u(l2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (o3) => function(e5) {
50
+ O && clearTimeout(O);
51
+ let o4 = z(e5);
52
+ o4 > -1 && (T.configure.pagePermissions.splice(o4, 1), 0 == T.configure.pagePermissions.length && (O = setTimeout(function() {
53
+ D(null);
54
54
  }, 10)));
55
- }(e4.row) }, { default: r(() => [u(a(b))]), _: 2 }, 1032, ["onClick"])) : f("", true)]), _: 1 })]), _: 1 }, 8, ["data"])])]), _: 1 });
55
+ }(e4.row) }, { default: r(() => [u(a(b))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])])]), _: 1 });
56
56
  };
57
57
  } });
58
58
  export {
59
- T as default
59
+ V as default
60
60
  };
@@ -0,0 +1,28 @@
1
+ import { defineComponent as e, ref as l, resolveComponent as t, createBlock as o, openBlock as a, withCtx as n, createVNode as i, createCommentVNode as u, unref as r, createTextVNode as d, createElementVNode as p } from "vue";
2
+ import { CirclePlus as c, Delete as m } from "@element-plus/icons-vue";
3
+ import s from "./combination.vue.js";
4
+ const f = { class: "dialog-footer" }, y = e({ __name: "condition-dialog", props: { list: Array }, setup(e2) {
5
+ const y2 = e2, v = l({}), g = l(false), _ = l({});
6
+ function b() {
7
+ g.value = false;
8
+ }
9
+ function k() {
10
+ y2.list = y2.list.filter((e3) => e3 !== v.value);
11
+ }
12
+ function C(e3) {
13
+ v.value = e3;
14
+ }
15
+ function V() {
16
+ y2.list.push({ leftBracket: "", propName: "", operator: "", propValueType: "", rightBracket: "", joinSign: "" });
17
+ }
18
+ return (l2, y3) => {
19
+ const v2 = t("el-button"), w = t("el-row"), h = t("el-input"), U = t("el-table-column"), z = t("el-table"), B = t("el-dialog");
20
+ return a(), o(B, { "model-value": "", title: "可执行条件", "append-to-body": "", onBeforeClose: y3[2] || (y3[2] = (e3) => l2.$emit("close")) }, { footer: n(() => [p("div", f, [i(v2, { type: "default", onClick: y3[0] || (y3[0] = (e3) => l2.$emit("close")) }, { default: n(() => y3[5] || (y3[5] = [d("取消")])), _: 1 }), i(v2, { type: "primary", onClick: y3[1] || (y3[1] = (e3) => l2.$emit("close")) }, { default: n(() => y3[6] || (y3[6] = [d(" 确定 ")])), _: 1 })])]), default: n(() => [i(w, { style: { "padding-bottom": "8px" } }, { default: n(() => [i(v2, { icon: r(c), plain: "", type: "primary", onClick: V }, { default: n(() => y3[3] || (y3[3] = [d(" 添加 ")])), _: 1 }, 8, ["icon"]), i(v2, { icon: r(m), plain: "", type: "primary", onClick: k }, { default: n(() => y3[4] || (y3[4] = [d(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), i(z, { "highlight-current-row": "", onCurrentChange: C, data: e2.list, style: { width: "100%" } }, { default: n(() => [i(U, { prop: "date", label: "组合条件", align: "center" }, { default: n((e3) => [i(h, { size: "default", onClick: (l3) => {
21
+ return t2 = e3.row, _.value = t2.combination, void (g.value = true);
22
+ var t2;
23
+ } }, null, 8, ["onClick"])]), _: 1 }), i(U, { prop: "name", label: "提示信息", align: "center" }, { default: n((e3) => [i(h, { size: "default", modelValue: e3.row.name, "onUpdate:modelValue": (l3) => e3.row.name = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), i(U, { prop: "address", label: "国际化key", align: "center" }, { default: n((e3) => [i(h, { size: "default", modelValue: e3.row.type, "onUpdate:modelValue": (l3) => e3.row.type = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"]), g.value ? (a(), o(s, { key: 0, list: _.value, onClose: b }, null, 8, ["list"])) : u("", true)]), _: 1 });
24
+ };
25
+ } });
26
+ export {
27
+ y as default
28
+ };
@@ -0,0 +1,4 @@
1
+ import o from "./condition-dialog.vue.js";
2
+ export {
3
+ o as default
4
+ };