super-page-designer 2.3.3-design1 → 2.3.4-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.
@@ -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,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,12 +1,12 @@
1
- import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createVNode as i, createCommentVNode as d, createElementVNode as s, withDirectives as r, createElementBlock as n, Fragment as p, renderList as m, unref as c, createTextVNode as f, vShow as g } from "vue";
2
- import { getFormComponentOptions as b } from "../../../../utils/assemblys-config.js";
1
+ import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createVNode as i, createCommentVNode as d, createElementVNode as s, withDirectives as r, createElementBlock as n, Fragment as p, renderList as m, unref as c, createTextVNode as f, vShow as b } from "vue";
2
+ import { getFormComponentOptions as g } from "../../../../utils/assemblys-config.js";
3
3
  import { componentNameChange as V } from "../../../../utils/form-design-util.js";
4
4
  import _ from "../../common/common-attr-size.vue.js";
5
5
  import v from "../common/uploading.vue.js";
6
6
  import y from "../../common/common-variable-bind.vue.js";
7
7
  import h from "../../common/common-function-code.vue.js";
8
- import x from "../../common/common-i18n-key-input.vue.js";
9
- const U = { style: { padding: "8px 0px 0px 0px" } }, w = { style: { padding: "8px 0px 0px 0px" } }, k = e({ __name: "fileupload-attr-base", props: { configure: { type: Object, required: true, default: () => ({ props: {} }) }, pageDesign: { type: Object, default: () => {
8
+ import w from "../../common/common-i18n-key-input.vue.js";
9
+ const U = { style: { padding: "8px 0px 0px 0px" } }, x = { style: { padding: "8px 0px 0px 0px" } }, k = e({ __name: "fileupload-attr-base", props: { configure: { type: Object, required: true, default: () => ({ props: {} }) }, pageDesign: { type: Object, default: () => {
10
10
  } } }, emits: ["changeAssembly"], setup(e2, { emit: k2 }) {
11
11
  const j = e2, S = l(j.configure.name), z = k2;
12
12
  j.configure.props || (j.configure.props = {}), j.configure.props.uploadConfig || (j.configure.props.uploadConfig = {});
@@ -18,8 +18,8 @@ const U = { style: { padding: "8px 0px 0px 0px" } }, w = { style: { padding: "8p
18
18
  V(j.configure, e3, z);
19
19
  }
20
20
  return j.configure.isTable && (T.value = true), (l2, V2) => {
21
- const k3 = a("el-option"), j2 = a("el-select"), z2 = a("el-form-item"), N = a("el-input"), O = a("el-radio"), A = a("el-radio-group"), D = a("el-input-number"), B = a("el-collapse-item"), E = a("el-radio-button"), F = a("el-text"), G = a("el-checkbox"), H = a("el-col"), I = a("el-button"), J = a("el-collapse"), K = a("el-form");
22
- return t(), o(K, { "label-width": "80px", size: "small" }, { default: u(() => [i(J, { modelValue: C.value, "onUpdate:modelValue": V2[11] || (V2[11] = (e3) => C.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [i(B, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", U, [i(z2, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [i(j2, { modelValue: S.value, "onUpdate:modelValue": V2[0] || (V2[0] = (e3) => S.value = e3), onChange: q, placeholder: "请选择" }, { default: u(() => [(t(true), n(p, null, m(c(b)(), (e3) => (t(), o(k3, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(z2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: u(() => [i(N, { 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 }), T.value ? d("", true) : (t(), o(z2, { key: 0, label: "文件路径", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data"], "onUpdate:modelValue": V2[2] || (V2[2] = (e3, l3) => W(e3, "prop", l3)) }, null, 8, ["modelValue"]))]), _: 1 })), T.value ? d("", true) : (t(), o(z2, { key: 1, label: "文件名", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { key: e2.configure.uuid, modelValue: e2.configure.props.base.propName, paramTypes: ["data", "fixed"], "onUpdate:modelValue": V2[3] || (V2[3] = (e3) => W(e3, "propName")) }, null, 8, ["modelValue"]))]), _: 1 })), T.value ? d("", true) : (t(), o(z2, { key: 2, label: "绑定权限", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(h, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), T.value ? d("", true) : (t(), o(z2, { key: 3, label: "标题显示", class: "amb-design-attr-item" }, { default: u(() => [i(A, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": V2[4] || (V2[4] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: u(() => [i(O, { value: true }, { default: u(() => V2[12] || (V2[12] = [f("显示")])), _: 1 }), i(O, { value: false }, { default: u(() => V2[13] || (V2[13] = [f("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), r(i(z2, { label: "标题", class: "amb-design-attr-item" }, { default: u(() => [i(x, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": V2[5] || (V2[5] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow]]), r(i(z2, { label: "标题宽度", class: "amb-design-attr-item" }, { default: u(() => [i(D, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": V2[6] || (V2[6] = (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(z2, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: u(() => [i(A, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": V2[7] || (V2[7] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: u(() => [i(O, { value: "block" }, { default: u(() => V2[14] || (V2[14] = [f("换行")])), _: 1 }), i(O, { value: "inline" }, { default: u(() => V2[15] || (V2[15] = [f("不换行")])), _: 1 }), i(O, { value: "omit" }, { default: u(() => V2[16] || (V2[16] = [f("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), i(z2, { label: "输入提示", class: "amb-design-attr-item" }, { default: u(() => [i(x, { modelValue: e2.configure.props.base.placeholder, "onUpdate:modelValue": V2[8] || (V2[8] = (l3) => e2.configure.props.base.placeholder = l3) }, null, 8, ["modelValue"])]), _: 1 }), i(z2, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [i(A, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": V2[9] || (V2[9] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [i(O, { value: "default" }, { default: u(() => V2[17] || (V2[17] = [f("普通")])), _: 1 }), i(O, { value: "disabled" }, { default: u(() => V2[18] || (V2[18] = [f("禁用")])), _: 1 }), i(O, { value: "hidden" }, { default: u(() => V2[19] || (V2[19] = [f("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(v, { uploadConfig: e2.configure.props.uploadConfig }, { addition: u((e3) => [i(z2, { label: "上传方式", class: "amb-design-attr-item" }, { default: u(() => [i(A, { modelValue: e3.row.displayType, "onUpdate:modelValue": (l3) => e3.row.displayType = l3, size: "small" }, { default: u(() => [i(E, { label: "输入框", value: "input" }), i(E, { label: "按钮", value: "button" }), i(E, { label: "拖拽", value: "drag" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), i(z2, { label: "文件类型", class: "amb-design-attr-item" }, { default: u(() => [i(N, { modelValue: e3.row.accept, "onUpdate:modelValue": (l3) => e3.row.accept = l3, placeholder: "*" }, null, 8, ["modelValue", "onUpdate:modelValue"]), i(F, { type: "success" }, { default: u(() => V2[20] || (V2[20] = [f("格式如:.doc,.docx,.xml...")])), _: 1 })]), _: 2 }, 1024)]), _: 1 }, 8, ["uploadConfig"]), (t(), o(B, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [s("div", w, [i(z2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(G, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": V2[10] || (V2[10] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), i(z2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(H, { span: 8 }, { default: u(() => [i(G, { label: "自定义", value: "custom" })]), _: 1 }), i(H, { span: 14 }, { default: u(() => [i(I, { type: "default" }, { default: u(() => V2[21] || (V2[21] = [f("自定义逻辑")])), _: 1 }), i(I, { type: "default", icon: l2.Search, circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), T.value ? d("", true) : (t(), o(_, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
21
+ const k3 = a("el-option"), j2 = a("el-select"), z2 = a("el-form-item"), D = a("el-input"), N = a("el-radio"), O = a("el-radio-group"), P = a("el-input-number"), A = a("el-switch"), B = a("el-collapse-item"), E = a("el-radio-button"), F = a("el-text"), G = a("el-checkbox"), H = a("el-col"), I = a("el-button"), J = a("el-collapse"), K = a("el-form");
22
+ return t(), o(K, { "label-width": "80px", size: "small" }, { default: u(() => [i(J, { modelValue: C.value, "onUpdate:modelValue": V2[13] || (V2[13] = (e3) => C.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [i(B, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", U, [i(z2, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [i(j2, { modelValue: S.value, "onUpdate:modelValue": V2[0] || (V2[0] = (e3) => S.value = e3), onChange: q, placeholder: "请选择" }, { default: u(() => [(t(true), n(p, null, m(c(g)(), (e3) => (t(), o(k3, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(z2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: u(() => [i(D, { 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 }), T.value ? d("", true) : (t(), o(z2, { key: 0, label: "文件路径", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data"], "onUpdate:modelValue": V2[2] || (V2[2] = (e3, l3) => W(e3, "prop", l3)) }, null, 8, ["modelValue"]))]), _: 1 })), T.value ? d("", true) : (t(), o(z2, { key: 1, label: "文件名", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { key: e2.configure.uuid, modelValue: e2.configure.props.base.propName, paramTypes: ["data", "fixed"], "onUpdate:modelValue": V2[3] || (V2[3] = (e3) => W(e3, "propName")) }, null, 8, ["modelValue"]))]), _: 1 })), T.value ? d("", true) : (t(), o(z2, { key: 2, label: "绑定权限", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(h, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), T.value ? d("", true) : (t(), o(z2, { key: 3, label: "标题显示", class: "amb-design-attr-item" }, { default: u(() => [i(O, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": V2[4] || (V2[4] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: u(() => [i(N, { value: true }, { default: u(() => V2[14] || (V2[14] = [f("显示")])), _: 1 }), i(N, { value: false }, { default: u(() => V2[15] || (V2[15] = [f("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), r(i(z2, { label: "标题", class: "amb-design-attr-item" }, { default: u(() => [i(w, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": V2[5] || (V2[5] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), r(i(z2, { label: "标题宽度", class: "amb-design-attr-item" }, { default: u(() => [i(P, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": V2[6] || (V2[6] = (l3) => e2.configure.props.base.titleWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), r(i(z2, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: u(() => [i(O, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": V2[7] || (V2[7] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: u(() => [i(N, { value: "block" }, { default: u(() => V2[16] || (V2[16] = [f("换行")])), _: 1 }), i(N, { value: "inline" }, { default: u(() => V2[17] || (V2[17] = [f("不换行")])), _: 1 }), i(N, { value: "omit" }, { default: u(() => V2[18] || (V2[18] = [f("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), i(z2, { label: "输入提示", class: "amb-design-attr-item" }, { default: u(() => [i(w, { modelValue: e2.configure.props.base.placeholder, "onUpdate:modelValue": V2[8] || (V2[8] = (l3) => e2.configure.props.base.placeholder = l3) }, null, 8, ["modelValue"])]), _: 1 }), i(z2, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [i(O, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": V2[9] || (V2[9] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [i(N, { value: "default" }, { default: u(() => V2[19] || (V2[19] = [f("普通")])), _: 1 }), i(N, { value: "disabled" }, { default: u(() => V2[20] || (V2[20] = [f("禁用")])), _: 1 }), i(N, { value: "hidden" }, { default: u(() => V2[21] || (V2[21] = [f("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(z2, { label: "禁用时可预览", class: "amb-design-attr-item" }, { default: u(() => [i(A, { modelValue: e2.configure.props.base.absolutePreview, "onUpdate:modelValue": V2[10] || (V2[10] = (l3) => e2.configure.props.base.absolutePreview = l3) }, null, 8, ["modelValue"])]), _: 1 }), i(z2, { label: "禁用时可下载", class: "amb-design-attr-item" }, { default: u(() => [i(A, { modelValue: e2.configure.props.base.absoluteDownloadable, "onUpdate:modelValue": V2[11] || (V2[11] = (l3) => e2.configure.props.base.absoluteDownloadable = l3) }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(v, { uploadConfig: e2.configure.props.uploadConfig }, { addition: u((e3) => [i(z2, { label: "上传方式", class: "amb-design-attr-item" }, { default: u(() => [i(O, { modelValue: e3.row.displayType, "onUpdate:modelValue": (l3) => e3.row.displayType = l3, size: "small" }, { default: u(() => [i(E, { label: "输入框", value: "input" }), i(E, { label: "按钮", value: "button" }), i(E, { label: "拖拽", value: "drag" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), i(z2, { label: "文件类型", class: "amb-design-attr-item" }, { default: u(() => [i(D, { modelValue: e3.row.accept, "onUpdate:modelValue": (l3) => e3.row.accept = l3, placeholder: "*" }, null, 8, ["modelValue", "onUpdate:modelValue"]), i(F, { type: "success" }, { default: u(() => V2[22] || (V2[22] = [f("格式如:.doc,.docx,.xml...")])), _: 1 })]), _: 2 }, 1024)]), _: 1 }, 8, ["uploadConfig"]), (t(), o(B, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [s("div", x, [i(z2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(G, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": V2[12] || (V2[12] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), i(z2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(H, { span: 8 }, { default: u(() => [i(G, { label: "自定义", value: "custom" })]), _: 1 }), i(H, { span: 14 }, { default: u(() => [i(I, { type: "default" }, { default: u(() => V2[23] || (V2[23] = [f("自定义逻辑")])), _: 1 }), i(I, { type: "default", icon: l2.Search, circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), T.value ? d("", true) : (t(), o(_, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
23
23
  };
24
24
  } });
25
25
  export {
@@ -1,24 +1,24 @@
1
- import { defineComponent as e, ref as l, watch as i, resolveComponent as t, createBlock as o, openBlock as a, normalizeStyle as u, normalizeClass as r, withCtx as p, createVNode as s, unref as n, createElementBlock as m, createCommentVNode as c, toDisplayString as d } from "vue";
1
+ import { defineComponent as e, ref as l, watch as i, resolveComponent as o, createBlock as t, openBlock as a, normalizeStyle as u, normalizeClass as r, withCtx as p, createVNode as s, unref as n, createElementBlock as m, createCommentVNode as c, toDisplayString as d } from "vue";
2
2
  import { caculateDetailComponentStyle as f, caculateComponentProps as v } from "../../../../utils/form-design-util.js";
3
3
  import { FsUploadNew as g } from "agilebuilder-ui";
4
4
  import "@element-plus/icons-vue";
5
- const y = e({ __name: "fileupload-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
6
- const y2 = e2;
7
- y2.configure.runtime || (y2.configure.runtime = {});
8
- const h = l({}), b = l(""), C = l({}), S = l({}), z = l({});
9
- return i(y2.configure.style, () => {
10
- f(y2.configure, h, b, C), y2.configure.runtime.style = h.value, y2.configure.runtime.class = b.value, y2.configure.runtime.headerStyle = C.value;
11
- }, { immediate: true }), i(y2.configure.props, () => {
12
- v(y2.configure, S, z), function() {
13
- let e3 = y2.configure.props ? y2.configure.props : {};
14
- const l2 = e3.uploadConfig ? e3.uploadConfig : {}, i2 = e3.base ? e3.base : {}, t2 = {};
15
- l2.drag && (t2.drag = l2.drag), t2.prop = i2.prop, t2.propName = i2.propName, t2.displayType = l2.displayType ? l2.displayType : "input", t2.state = i2.state, t2.placeholder = i2.placeholder, l2.accept ? t2.accept = l2.accept : t2.accept = null, l2.multiple ? (t2.multiple = l2.multiple, l2.limit ? t2.limit = l2.limit : t2.limit = null) : (t2.multiple = false, t2.limit = 1), l2.limitFileSize ? t2.limitFileSize = l2.limitFileSize : t2.limitFileSize = null, l2.openCameraOrChoosePhoto ? t2.openCameraOrChoosePhoto = l2.openCameraOrChoosePhoto : t2.openCameraOrChoosePhoto = null, t2.isDeleteNow = l2.isDeleteNow, Object.assign(S.value, t2);
16
- }(), y2.configure.runtime.props = S.value, y2.configure.runtime.titleExceedStyle = z.value, S.value;
5
+ const b = e({ __name: "fileupload-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
6
+ const b2 = e2;
7
+ b2.configure.runtime || (b2.configure.runtime = {});
8
+ const y = l({}), h = l(""), C = l({}), w = l({}), S = l({});
9
+ return i(b2.configure.style, () => {
10
+ f(b2.configure, y, h, C), b2.configure.runtime.style = y.value, b2.configure.runtime.class = h.value, b2.configure.runtime.headerStyle = C.value;
11
+ }, { immediate: true }), i(b2.configure.props, () => {
12
+ v(b2.configure, w, S), function() {
13
+ let e3 = b2.configure.props ? b2.configure.props : {};
14
+ const l2 = e3.uploadConfig ? e3.uploadConfig : {}, i2 = e3.base ? e3.base : {}, o2 = {};
15
+ l2.drag && (o2.drag = l2.drag), o2.prop = i2.prop, o2.propName = i2.propName, o2.displayType = l2.displayType ? l2.displayType : "input", o2.state = i2.state, o2.placeholder = i2.placeholder, o2.absolutePreview = i2.absolutePreview, o2.absoluteDownloadable = i2.absoluteDownloadable, l2.accept ? o2.accept = l2.accept : o2.accept = null, l2.multiple ? (o2.multiple = l2.multiple, l2.limit ? o2.limit = l2.limit : o2.limit = null) : (o2.multiple = false, o2.limit = 1), l2.limitFileSize ? o2.limitFileSize = l2.limitFileSize : o2.limitFileSize = null, l2.openCameraOrChoosePhoto ? o2.openCameraOrChoosePhoto = l2.openCameraOrChoosePhoto : o2.openCameraOrChoosePhoto = null, o2.isDeleteNow = l2.isDeleteNow, Object.assign(w.value, o2);
16
+ }(), b2.configure.runtime.props = w.value, b2.configure.runtime.titleExceedStyle = S.value, w.value;
17
17
  }, { immediate: true }), (e3, l2) => {
18
- const i2 = t("el-form-item");
19
- return a(), o(i2, { required: !!S.value.required, class: r([b.value, "remove-formLabel-formContent-blankStyle"]), "label-width": S.value.labelWidth, style: u(h.value) }, { label: p(() => [S.value.tittleShow ? (a(), m("div", { key: 0, style: u({ ...C.value, ...z.value, "padding-right": "12px" }) }, d(S.value.title ? S.value.title : "Files"), 5)) : c("", true)]), default: p(() => [s(n(g), { disabled: "disabled" == S.value.state, style: { width: "100%" }, displayType: S.value.displayType, accept: S.value.accept, multiple: S.value.multiple, placeholder: S.value.placeholder, limit: S.value.limit, "limit-file-size": S.value.limitFileSize, "file-info": e3.fileInfo, "file-list": e3.fileList, "on-success": e3.onSuccess, "on-remove": e3.onRemove, openFsUpload: false, "before-upload": e3.beforeUpload }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "file-info", "file-list", "on-success", "on-remove", "before-upload"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
18
+ const i2 = o("el-form-item");
19
+ return a(), t(i2, { required: !!w.value.required, class: r([h.value, "remove-formLabel-formContent-blankStyle"]), "label-width": w.value.labelWidth, style: u(y.value) }, { label: p(() => [w.value.tittleShow ? (a(), m("div", { key: 0, style: u({ ...C.value, ...S.value, "padding-right": "12px" }) }, d(w.value.title ? w.value.title : "Files"), 5)) : c("", true)]), default: p(() => [s(n(g), { disabled: "disabled" == w.value.state, style: { width: "100%" }, displayType: w.value.displayType, accept: w.value.accept, multiple: w.value.multiple, placeholder: w.value.placeholder, limit: w.value.limit, "limit-file-size": w.value.limitFileSize, "file-info": e3.fileInfo, "file-list": e3.fileList, "on-success": e3.onSuccess, "on-remove": e3.onRemove, openFsUpload: false, "before-upload": e3.beforeUpload }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "file-info", "file-list", "on-success", "on-remove", "before-upload"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
20
20
  };
21
21
  } });
22
22
  export {
23
- y as default
23
+ b as default
24
24
  };
@@ -1,5 +1,5 @@
1
1
  import o from "./config.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = e(o, [["__scopeId", "data-v-c8908117"]]);
5
5
  export {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, onUnmounted as a, watch as l, resolveComponent as u, createElementBlock as o, openBlock as s, createElementVNode as i, createVNode as r, withDirectives as m, withCtx as c, vShow as d, unref as v, createTextVNode as p, toDisplayString as f, Fragment as g, renderList as b, createBlock as y } from "vue";
2
2
  import { ElMessageBox as x, ElMessage as h } from "element-plus";
3
- import C from "./config.vue2.js";
3
+ import C from "./config.vue.js";
4
4
  import { standardButtonOperations as E } from "../../../utils/assemblys-config.js";
5
5
  import { findDesignItemByUuid as S, getUuidv4 as V, deepCopy as k } from "../../../utils/common-util.js";
6
6
  import { usePageContextStore as _ } from "../../../../../stores/page-store.js";
@@ -16,7 +16,7 @@ import "@codemirror/autocomplete";
16
16
  import "@codemirror/language";
17
17
  import "@codemirror/search";
18
18
  import "js-beautify";
19
- /* empty css */
19
+ /* empty css */
20
20
  import "../../../utils/assemblys-config.js";
21
21
  import "../../../../../stores/page-store.js";
22
22
  import "../../../../../stores/event-undo-redo-store.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-designer",
3
- "version": "2.3.3-design1",
3
+ "version": "2.3.4-design1",
4
4
  "description": "AgileBuilder super page designer",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -29,7 +29,7 @@
29
29
  "@vitejs/plugin-vue": "^5.0.4",
30
30
  "@vueuse/core": "^10.9.0",
31
31
  "agilebuilder-private-libs": "1.0.26",
32
- "agilebuilder-ui": "1.1.38",
32
+ "agilebuilder-ui": "1.1.39",
33
33
  "echarts": "^5.5.0",
34
34
  "element-plus": "^2.6.1",
35
35
  "font-awesome": "^4.7.0",
@@ -41,7 +41,7 @@
41
41
  "qrcode": "^1.5.3",
42
42
  "quill": "^2.0.1",
43
43
  "service-flow-designer": "2.3.2-flow1",
44
- "super-page-runtime": "2.3.3",
44
+ "super-page-runtime": "2.3.4",
45
45
  "uuid": "^9.0.1",
46
46
  "vite": "^5.1.6",
47
47
  "vite-plugin-node-stdlib-browser": "^0.2.1",
@@ -52,7 +52,7 @@
52
52
  "vue-echarts": "^6.6.9",
53
53
  "vue-router": "^4.3.0",
54
54
  "vuex": "^4.1.0",
55
- "workflow-editor": "0.0.58-up"
55
+ "workflow-editor": "0.0.62-up"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@codemirror/autocomplete": "^6.16.0",