fec-dev-designer 1.1.2 → 5.1.2

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 (34) hide show
  1. package/es/package.json.js +66 -0
  2. package/es/src/assets/approvalHistory.png.js +4 -0
  3. package/es/src/assets/logo.png.js +4 -0
  4. package/es/src/components/DataSourceSelect.vue.js +2 -1
  5. package/es/src/components/OptionConfig.vue.js +3 -2
  6. package/es/src/components/OptionConfig.vue2.js +2 -2
  7. package/es/src/components/ParamsConfig.vue.js +2 -2
  8. package/es/src/components/ParamsConfig.vue2.js +31 -32
  9. package/es/src/components/ValueSelector.vue2.js +49 -39
  10. package/es/src/layout/header/index.vue.js +95 -84
  11. package/es/src/packages/advancedFilter/ValueInput.vue2.js +57 -60
  12. package/es/src/packages/dataSource/dataSource.vue.js +98 -105
  13. package/es/src/packages/dialog/index.vue.js +443 -322
  14. package/es/src/packages/event/index.vue2.js +44 -44
  15. package/es/src/packages/event/useEventDialog.js +2 -2
  16. package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue2.js +47 -54
  17. package/es/src/packages/eventFlow/dialog/action/Page.vue.js +42 -49
  18. package/es/src/packages/form/aside/index.js +27 -2
  19. package/es/src/packages/form/aside/roleSelect.js +156 -0
  20. package/es/src/packages/form/aside/userSelect.js +206 -0
  21. package/es/src/packages/form/components/ApprovalHistory.vue.js +73 -0
  22. package/es/src/packages/form/components/ApprovalHistory.vue2.js +4 -0
  23. package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +51 -41
  24. package/es/src/packages/form/components/H2Wrapper.vue.js +13 -10
  25. package/es/src/packages/form/index.vue.js +140 -130
  26. package/es/src/packages/form/property/approvalHistory.vue.js +178 -0
  27. package/es/src/packages/form/property/index.vue.js +23 -22
  28. package/es/src/packages/form/property/subTable.vue.js +37 -43
  29. package/es/src/packages/form/property/widgets.vue.js +258 -202
  30. package/es/src/packages/table/aside/index.js +2 -1
  31. package/es/src/packages/table/default.js +24 -21
  32. package/es/src/packages/table/property/widgets.vue.js +63 -47
  33. package/es/style.css +1 -1
  34. package/package.json +1 -1
@@ -6,37 +6,39 @@ import "../../../node_modules/element-plus/theme-chalk/el-button.css.js";
6
6
  import "../../../node_modules/element-plus/theme-chalk/el-form.css.js";
7
7
  import "../../../node_modules/element-plus/theme-chalk/el-form-item.css.js";
8
8
  import "../../../node_modules/element-plus/theme-chalk/el-input.css.js";
9
- import { computed as _, ref as g, reactive as F, openBlock as v, createBlock as y, withCtx as a, createElementVNode as r, createVNode as t, unref as m, toDisplayString as D, resolveDynamicComponent as I, isRef as h, createTextVNode as N } from "vue";
10
- import { UploadFilled as U, Edit as H } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
11
- import { ElMessage as R } from "element-plus";
12
- import T from "../../packages/table/headerBtn.vue.js";
13
- import q from "../../packages/form/headerBtn.vue.js";
14
- import { getEditConfigData as S } from "../../packages/utils/common.js";
15
- import z from "../../api/index.js";
16
- import J from "../../store/index.js";
9
+ import { computed as g, ref as v, reactive as I, openBlock as y, createBlock as D, withCtx as m, createElementVNode as o, toDisplayString as f, unref as r, createVNode as t, resolveDynamicComponent as U, isRef as H, createTextVNode as N } from "vue";
10
+ import R from "../../assets/logo.png.js";
11
+ import { UploadFilled as T, Edit as h } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
12
+ import { ElMessage as q } from "element-plus";
13
+ import J from "../../packages/table/headerBtn.vue.js";
14
+ import S from "../../packages/form/headerBtn.vue.js";
15
+ import { getEditConfigData as z } from "../../packages/utils/common.js";
16
+ import M from "../../api/index.js";
17
+ import O from "../../store/index.js";
18
+ import $ from "../../../package.json.js";
17
19
  import "./index.vue2.js";
18
- import { ElIcon as M } from "../../../node_modules/element-plus/es/components/icon/index.js";
19
- import { ElInput as O } from "../../../node_modules/element-plus/es/components/input/index.js";
20
- import { ElFormItem as $, ElForm as j } from "../../../node_modules/element-plus/es/components/form/index.js";
21
- import { ElButton as A } from "../../../node_modules/element-plus/es/components/button/index.js";
22
- import { ElDialog as G } from "../../../node_modules/element-plus/es/components/dialog/index.js";
23
- import { ElHeader as L } from "../../../node_modules/element-plus/es/components/container/index.js";
24
- const P = { class: "dev-title" }, Q = { class: "header-title" }, W = { class: "title-row" }, X = { class: "template-name" }, Y = { class: "template-key" }, Z = { class: "opt-btn-content" }, ee = { class: "dialog-footer" }, xe = {
20
+ import { ElIcon as j } from "../../../node_modules/element-plus/es/components/icon/index.js";
21
+ import { ElInput as A } from "../../../node_modules/element-plus/es/components/input/index.js";
22
+ import { ElFormItem as G, ElForm as L } from "../../../node_modules/element-plus/es/components/form/index.js";
23
+ import { ElButton as P } from "../../../node_modules/element-plus/es/components/button/index.js";
24
+ import { ElDialog as Q } from "../../../node_modules/element-plus/es/components/dialog/index.js";
25
+ import { ElHeader as W } from "../../../node_modules/element-plus/es/components/container/index.js";
26
+ const X = { class: "dev-title" }, Y = { class: "logo" }, Z = { class: "version" }, ee = { class: "header-title" }, te = { class: "title-row" }, le = { class: "template-name" }, oe = { class: "template-key" }, ae = { class: "opt-btn-content" }, me = { class: "dialog-footer" }, Ue = {
25
27
  __name: "index",
26
- setup(te) {
27
- const V = _(() => {
28
- switch (J.getters.editingType) {
28
+ setup(re) {
29
+ const V = g(() => {
30
+ switch (O.getters.editingType) {
29
31
  case "table":
30
- return T;
32
+ return J;
31
33
  case "form":
32
- return q;
34
+ return S;
33
35
  }
34
36
  return null;
35
- }), b = _(() => S()), s = () => b.value || {}, p = g(!1), f = g(null), l = F({
37
+ }), b = g(() => z()), E = $.version, p = () => b.value || {}, i = v(!1), c = v(null), l = I({
36
38
  templateName: "",
37
39
  templateKey: "",
38
40
  templateDesc: ""
39
- }), E = {
41
+ }), K = {
40
42
  templateKey: [{ required: !0, message: "请输入模板标识", trigger: "blur" }],
41
43
  templateName: [
42
44
  { required: !0, message: "请输入模板名称", trigger: "blur" }
@@ -45,70 +47,79 @@ const P = { class: "dev-title" }, Q = { class: "header-title" }, W = { class: "t
45
47
  { max: 200, message: "长度不能超过 200 个字符", trigger: "blur" }
46
48
  ]
47
49
  };
48
- function K() {
49
- const o = s();
50
- l.templateName = o.templateName || "", l.templateKey = o.templateKey || "", l.templateDesc = o.templateDesc || "", p.value = !0;
50
+ function k() {
51
+ const a = p();
52
+ l.templateName = a.templateName || "", l.templateKey = a.templateKey || "", l.templateDesc = a.templateDesc || "", i.value = !0;
51
53
  }
52
54
  function x() {
53
- var o;
54
- (o = f.value) == null || o.validate((e) => {
55
+ var a;
56
+ (a = c.value) == null || a.validate((e) => {
55
57
  if (e) {
56
- const i = s();
57
- i.templateName = l.templateName, i.templateKey = l.templateKey, i.templateDesc = l.templateDesc, p.value = !1;
58
+ const n = p();
59
+ n.templateName = l.templateName, n.templateKey = l.templateKey, n.templateDesc = l.templateDesc, i.value = !1;
58
60
  } else
59
61
  return !1;
60
62
  });
61
63
  }
62
- function k() {
63
- const o = s(), e = {
64
- pkId: o.pkId,
65
- templateKey: o.templateKey,
66
- templateName: o.templateName,
67
- context: JSON.stringify(o)
64
+ function w() {
65
+ const a = p(), e = {
66
+ pkId: a.pkId,
67
+ templateKey: a.templateKey,
68
+ templateName: a.templateName,
69
+ context: JSON.stringify(a)
68
70
  };
69
- z.updateById(e).then(() => {
70
- R.success("保存成功");
71
+ M.updateById(e).then(() => {
72
+ q.success("保存成功");
71
73
  });
72
74
  }
73
- return (o, e) => {
74
- const i = M, d = O, u = $, w = j, c = A, C = G, B = L;
75
- return v(), y(B, { class: "dev-root-header" }, {
76
- default: a(() => [
77
- r("div", P, [
78
- r("div", {
75
+ return (a, e) => {
76
+ const n = j, d = A, u = G, C = L, _ = P, B = Q, F = W;
77
+ return y(), D(F, { class: "dev-root-header" }, {
78
+ default: m(() => [
79
+ o("div", X, [
80
+ o("div", Y, [
81
+ e[5] || (e[5] = o("img", {
82
+ src: R,
83
+ alt: "logo",
84
+ class: "logo-img"
85
+ }, null, -1)),
86
+ e[6] || (e[6] = o("div", { class: "title" }, "表单设计器", -1)),
87
+ o("div", Z, "v" + f(r(E)), 1)
88
+ ]),
89
+ o("div", {
79
90
  class: "btn-item",
80
- onClick: k
91
+ onClick: w
81
92
  }, [
82
- t(i, null, {
83
- default: a(() => [
84
- t(m(U))
93
+ t(n, null, {
94
+ default: m(() => [
95
+ t(r(T))
85
96
  ]),
86
97
  _: 1
87
98
  }),
88
- e[5] || (e[5] = r("span", null, "保存", -1))
99
+ e[7] || (e[7] = o("span", null, "保存", -1))
89
100
  ])
90
101
  ]),
91
- r("div", Q, [
92
- r("div", W, [
93
- r("div", X, D(s().templateName), 1),
94
- t(i, {
102
+ o("div", ee, [
103
+ o("div", te, [
104
+ o("div", le, f(p().templateName), 1),
105
+ t(n, {
95
106
  class: "edit-icon",
96
- onClick: K
107
+ onClick: k
97
108
  }, {
98
- default: a(() => [
99
- t(m(H))
109
+ default: m(() => [
110
+ t(r(h))
100
111
  ]),
101
112
  _: 1
102
113
  })
103
114
  ]),
104
- r("div", Y, D(s().templateKey), 1)
115
+ o("div", oe, f(p().templateKey), 1)
105
116
  ]),
106
- r("div", Z, [
107
- (v(), y(I(V.value)))
117
+ o("div", ae, [
118
+ (y(), D(U(V.value)))
108
119
  ]),
109
- t(C, {
110
- modelValue: m(p),
111
- "onUpdate:modelValue": e[4] || (e[4] = (n) => h(p) ? p.value = n : null),
120
+ t(B, {
121
+ modelValue: r(i),
122
+ "onUpdate:modelValue": e[4] || (e[4] = (s) => H(i) ? i.value = s : null),
112
123
  title: "编辑模板信息",
113
124
  width: "500px",
114
125
  draggable: "",
@@ -116,44 +127,44 @@ const P = { class: "dev-title" }, Q = { class: "header-title" }, W = { class: "t
116
127
  "append-to-body": "",
117
128
  class: "fec-dev-designer-dialog"
118
129
  }, {
119
- footer: a(() => [
120
- r("div", ee, [
121
- t(c, {
122
- onClick: e[3] || (e[3] = (n) => p.value = !1)
130
+ footer: m(() => [
131
+ o("div", me, [
132
+ t(_, {
133
+ onClick: e[3] || (e[3] = (s) => i.value = !1)
123
134
  }, {
124
- default: a(() => [...e[6] || (e[6] = [
135
+ default: m(() => [...e[8] || (e[8] = [
125
136
  N("取消", -1)
126
137
  ])]),
127
138
  _: 1
128
139
  }),
129
- t(c, {
140
+ t(_, {
130
141
  type: "primary",
131
142
  onClick: x
132
143
  }, {
133
- default: a(() => [...e[7] || (e[7] = [
144
+ default: m(() => [...e[9] || (e[9] = [
134
145
  N("确定", -1)
135
146
  ])]),
136
147
  _: 1
137
148
  })
138
149
  ])
139
150
  ]),
140
- default: a(() => [
141
- t(w, {
142
- model: m(l),
143
- rules: E,
151
+ default: m(() => [
152
+ t(C, {
153
+ model: r(l),
154
+ rules: K,
144
155
  ref_key: "editFormRef",
145
- ref: f,
156
+ ref: c,
146
157
  "label-width": "100px"
147
158
  }, {
148
- default: a(() => [
159
+ default: m(() => [
149
160
  t(u, {
150
161
  label: "模板标识",
151
162
  prop: "templateKey"
152
163
  }, {
153
- default: a(() => [
164
+ default: m(() => [
154
165
  t(d, {
155
- modelValue: m(l).templateKey,
156
- "onUpdate:modelValue": e[0] || (e[0] = (n) => m(l).templateKey = n),
166
+ modelValue: r(l).templateKey,
167
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => r(l).templateKey = s),
157
168
  placeholder: "请输入模板标识"
158
169
  }, null, 8, ["modelValue"])
159
170
  ]),
@@ -163,10 +174,10 @@ const P = { class: "dev-title" }, Q = { class: "header-title" }, W = { class: "t
163
174
  label: "模板名称",
164
175
  prop: "templateName"
165
176
  }, {
166
- default: a(() => [
177
+ default: m(() => [
167
178
  t(d, {
168
- modelValue: m(l).templateName,
169
- "onUpdate:modelValue": e[1] || (e[1] = (n) => m(l).templateName = n),
179
+ modelValue: r(l).templateName,
180
+ "onUpdate:modelValue": e[1] || (e[1] = (s) => r(l).templateName = s),
170
181
  placeholder: "请输入模板名称"
171
182
  }, null, 8, ["modelValue"])
172
183
  ]),
@@ -176,10 +187,10 @@ const P = { class: "dev-title" }, Q = { class: "header-title" }, W = { class: "t
176
187
  label: "模板描述",
177
188
  prop: "templateDesc"
178
189
  }, {
179
- default: a(() => [
190
+ default: m(() => [
180
191
  t(d, {
181
- modelValue: m(l).templateDesc,
182
- "onUpdate:modelValue": e[2] || (e[2] = (n) => m(l).templateDesc = n),
192
+ modelValue: r(l).templateDesc,
193
+ "onUpdate:modelValue": e[2] || (e[2] = (s) => r(l).templateDesc = s),
183
194
  type: "textarea",
184
195
  rows: 4,
185
196
  placeholder: "请输入模板描述",
@@ -203,5 +214,5 @@ const P = { class: "dev-title" }, Q = { class: "header-title" }, W = { class: "t
203
214
  }
204
215
  };
205
216
  export {
206
- xe as default
217
+ Ue as default
207
218
  };
@@ -11,7 +11,7 @@ import "../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js";
11
11
  import "../../../node_modules/element-plus/theme-chalk/el-date-picker-panel.css.js";
12
12
  import "../../../node_modules/element-plus/theme-chalk/el-input.css.js";
13
13
  import "../../../node_modules/element-plus/theme-chalk/el-button.css.js";
14
- import { computed as c, watch as h, ref as z, unref as u, openBlock as i, createElementBlock as w, createBlock as f, isRef as d, createVNode as V, createElementVNode as D, withCtx as E, Fragment as O, renderList as $ } from "vue";
14
+ import { computed as v, watch as h, ref as z, unref as u, openBlock as r, createElementBlock as w, createBlock as f, isRef as i, createVNode as V, createElementVNode as D, withCtx as E, Fragment as O, renderList as $ } from "vue";
15
15
  import { useVModel as K } from "../../../node_modules/@vueuse/core/index.js";
16
16
  import U from "../../components/ValueSelector.vue2.js";
17
17
  import L from "../../api/index.js";
@@ -54,28 +54,28 @@ const _ = { key: 0 }, ee = {
54
54
  "update:isField",
55
55
  "update:showText"
56
56
  ],
57
- setup(r, { emit: j }) {
58
- const s = r, Y = j, l = c({
57
+ setup(s, { emit: j }) {
58
+ const d = s, Y = j, l = v({
59
59
  get() {
60
- return s.modelValue;
60
+ return d.modelValue;
61
61
  },
62
62
  set(t) {
63
63
  Y("update:modelValue", t);
64
64
  }
65
- }), T = K(s, "isField", Y);
65
+ }), T = K(d, "isField", Y);
66
66
  h(T, (t, e) => {
67
67
  t !== e && (l.value = null);
68
68
  });
69
69
  const S = z(!1);
70
70
  h(
71
- () => s.operator,
71
+ () => d.operator,
72
72
  (t) => {
73
73
  const e = ["in_any", "ni_any", "contains", "not_contains"];
74
74
  S.value = e.includes(t);
75
75
  },
76
76
  { immediate: !0 }
77
77
  ), h(
78
- () => s.operator,
78
+ () => d.operator,
79
79
  (t, e) => {
80
80
  const o = [
81
81
  "in_any",
@@ -98,7 +98,7 @@ const _ = { key: 0 }, ee = {
98
98
  }
99
99
  }
100
100
  );
101
- const x = c(() => s.operator === "range"), C = c(() => !["is_null", "is_not_null"].includes(s.operator)), H = c(() => s.fieldType === "input" && S.value && !T.value), p = c({
101
+ const x = v(() => d.operator === "range"), C = v(() => !["is_null", "is_not_null"].includes(d.operator)), H = v(() => d.fieldType === "input" && S.value && !T.value), p = v({
102
102
  get: () => {
103
103
  let t = l.value;
104
104
  return t && typeof t == "object" && t.type === "field" && (t = t.value), Array.isArray(t) ? t[0] : "";
@@ -110,14 +110,14 @@ const _ = { key: 0 }, ee = {
110
110
  if (t === "" && o === "")
111
111
  l.value = null;
112
112
  else {
113
- const n = s.fieldType === "number" && !T.value;
113
+ const n = d.fieldType === "number" && !T.value;
114
114
  l.value = [
115
115
  t === "" ? null : n ? Number(t) : t,
116
116
  o === "" ? null : n ? Number(o) : o
117
117
  ];
118
118
  }
119
119
  }
120
- }), y = c({
120
+ }), y = v({
121
121
  get: () => {
122
122
  let t = l.value;
123
123
  return t && typeof t == "object" && t.type === "field" && (t = t.value), Array.isArray(t) && t.length > 1 ? t[1] : "";
@@ -129,16 +129,16 @@ const _ = { key: 0 }, ee = {
129
129
  if (o === "" && t === "")
130
130
  l.value = null;
131
131
  else {
132
- const n = s.fieldType === "number" && !T.value;
132
+ const n = d.fieldType === "number" && !T.value;
133
133
  l.value = [
134
134
  o === "" ? null : n ? Number(o) : o,
135
135
  t === "" ? null : n ? Number(t) : t
136
136
  ];
137
137
  }
138
138
  }
139
- }), M = z([]), R = c(() => P());
139
+ }), M = z([]), R = v(() => P());
140
140
  h(
141
- () => s.field,
141
+ () => d.field,
142
142
  (t) => {
143
143
  const e = t.fieldType;
144
144
  if ((e === "select" || e === "multipleSelection" || e === "radio" || e === "checkbox") && t.optionConfig) {
@@ -157,12 +157,12 @@ const _ = { key: 0 }, ee = {
157
157
  currentDataSourceId: n
158
158
  });
159
159
  g.fetch().then((m) => {
160
- var F, N;
161
- let v = [];
162
- Array.isArray(m) ? v = m : typeof m == "object" && (v = Array.isArray(m.data) ? m.data : ((F = m.data) == null ? void 0 : F.records) || ((N = m.data) == null ? void 0 : N.list) || []), v = v.map((I) => ({
160
+ var N, F;
161
+ let c = [];
162
+ Array.isArray(m) ? c = m : typeof m == "object" && (c = Array.isArray(m.data) ? m.data : ((N = m.data) == null ? void 0 : N.records) || ((F = m.data) == null ? void 0 : F.list) || []), c = c.map((I) => ({
163
163
  label: I[A],
164
164
  value: I[a]
165
- })), M.value = v, g.destroy();
165
+ })), M.value = c, g.destroy();
166
166
  });
167
167
  } catch (g) {
168
168
  console.error(`Failed to load data source ${dataSourceId}:`, g);
@@ -170,18 +170,18 @@ const _ = { key: 0 }, ee = {
170
170
  else
171
171
  o === "dictionary" && b ? L.getDicDataByKey(b).then((g) => {
172
172
  const m = [];
173
- for (const v in g)
174
- m.push({ label: g[v], value: v });
173
+ for (const c in g)
174
+ m.push({ label: g[c], value: c });
175
175
  M.value = m;
176
176
  }) : M.value = k || [];
177
177
  }
178
178
  },
179
179
  { deep: !0, immediate: !0 }
180
180
  );
181
- const B = c(() => {
181
+ const B = v(() => {
182
182
  if (!l.value)
183
183
  return "";
184
- if (s.fieldType === "select") {
184
+ if (d.fieldType === "select") {
185
185
  const t = M.value || [];
186
186
  if (S.value && Array.isArray(l.value))
187
187
  return l.value.map((o) => {
@@ -193,7 +193,7 @@ const _ = { key: 0 }, ee = {
193
193
  return e ? e.label : l.value;
194
194
  }
195
195
  }
196
- return s.fieldType === "boolean" ? l.value === !0 ? "是" : l.value === !1 ? "否" : "" : String(l.value);
196
+ return d.fieldType === "boolean" ? l.value === !0 ? "是" : l.value === !1 ? "否" : "" : String(l.value);
197
197
  });
198
198
  return h(
199
199
  B,
@@ -203,36 +203,33 @@ const _ = { key: 0 }, ee = {
203
203
  { immediate: !0, deep: !0 }
204
204
  ), (t, e) => {
205
205
  const o = J, n = Q, b = W, k = X, A = Z;
206
- return u(C) ? (i(), w("div", ee, [
207
- u(T) && !u(x) ? (i(), f(U, {
206
+ return u(C) ? (r(), w("div", ee, [
207
+ u(T) && !u(x) ? (r(), f(U, {
208
208
  key: 0,
209
209
  modelValue: u(l),
210
- "onUpdate:modelValue": e[0] || (e[0] = (a) => d(l) ? l.value = a : null),
211
- "available-fields": r.allFields,
210
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => i(l) ? l.value = a : null),
212
211
  multiple: u(S),
213
212
  placeholder: "请选择字段",
214
213
  style: { width: "100%" }
215
- }, null, 8, ["modelValue", "available-fields", "multiple"])) : u(T) && u(x) ? (i(), w("div", le, [
214
+ }, null, 8, ["modelValue", "multiple"])) : u(T) && u(x) ? (r(), w("div", le, [
216
215
  V(U, {
217
216
  modelValue: u(p),
218
- "onUpdate:modelValue": e[1] || (e[1] = (a) => d(p) ? p.value = a : null),
219
- "available-fields": r.allFields,
217
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => i(p) ? p.value = a : null),
220
218
  placeholder: "请选择最小值字段",
221
219
  style: { width: "calc(50% - 20px)" }
222
- }, null, 8, ["modelValue", "available-fields"]),
220
+ }, null, 8, ["modelValue"]),
223
221
  e[14] || (e[14] = D("span", { style: { margin: "0 5px" } }, "-", -1)),
224
222
  V(U, {
225
223
  modelValue: u(y),
226
- "onUpdate:modelValue": e[2] || (e[2] = (a) => d(y) ? y.value = a : null),
227
- "available-fields": r.allFields,
224
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => i(y) ? y.value = a : null),
228
225
  placeholder: "请选择最大值字段",
229
226
  style: { width: "50%" }
230
- }, null, 8, ["modelValue", "available-fields"])
231
- ])) : (i(), w("div", te, [
232
- u(x) && r.fieldType === "number" ? (i(), w("div", ae, [
227
+ }, null, 8, ["modelValue"])
228
+ ])) : (r(), w("div", te, [
229
+ u(x) && s.fieldType === "number" ? (r(), w("div", ae, [
233
230
  V(o, {
234
231
  modelValue: u(p),
235
- "onUpdate:modelValue": e[3] || (e[3] = (a) => d(p) ? p.value = a : null),
232
+ "onUpdate:modelValue": e[3] || (e[3] = (a) => i(p) ? p.value = a : null),
236
233
  modelModifiers: { number: !0 },
237
234
  placeholder: "最小值",
238
235
  type: "number",
@@ -242,18 +239,18 @@ const _ = { key: 0 }, ee = {
242
239
  e[15] || (e[15] = D("span", { style: { margin: "0 5px" } }, "-", -1)),
243
240
  V(o, {
244
241
  modelValue: u(y),
245
- "onUpdate:modelValue": e[4] || (e[4] = (a) => d(y) ? y.value = a : null),
242
+ "onUpdate:modelValue": e[4] || (e[4] = (a) => i(y) ? y.value = a : null),
246
243
  modelModifiers: { number: !0 },
247
244
  placeholder: "最大值",
248
245
  type: "number",
249
246
  size: "default",
250
247
  style: { width: "50%" }
251
248
  }, null, 8, ["modelValue"])
252
- ])) : u(x) && (r.fieldType === "date" || r.fieldType === "datetime") ? (i(), w("div", oe, [
249
+ ])) : u(x) && (s.fieldType === "date" || s.fieldType === "datetime") ? (r(), w("div", oe, [
253
250
  V(n, {
254
251
  modelValue: u(p),
255
- "onUpdate:modelValue": e[5] || (e[5] = (a) => d(p) ? p.value = a : null),
256
- type: r.fieldType === "datetime" ? "datetime" : "date",
252
+ "onUpdate:modelValue": e[5] || (e[5] = (a) => i(p) ? p.value = a : null),
253
+ type: s.fieldType === "datetime" ? "datetime" : "date",
257
254
  placeholder: "开始日期",
258
255
  size: "default",
259
256
  style: { width: "calc(50% - 20px)" },
@@ -262,68 +259,68 @@ const _ = { key: 0 }, ee = {
262
259
  e[16] || (e[16] = D("span", { style: { margin: "0 5px" } }, "-", -1)),
263
260
  V(n, {
264
261
  modelValue: u(y),
265
- "onUpdate:modelValue": e[6] || (e[6] = (a) => d(y) ? y.value = a : null),
266
- type: r.fieldType === "datetime" ? "datetime" : "date",
262
+ "onUpdate:modelValue": e[6] || (e[6] = (a) => i(y) ? y.value = a : null),
263
+ type: s.fieldType === "datetime" ? "datetime" : "date",
267
264
  placeholder: "结束日期",
268
265
  size: "default",
269
266
  style: { width: "50%" },
270
267
  "value-format": "YYYYMMDDHHmmss"
271
268
  }, null, 8, ["modelValue", "type"])
272
- ])) : u(H) ? (i(), f(b, {
269
+ ])) : u(H) ? (r(), f(b, {
273
270
  key: 2,
274
271
  modelValue: u(l),
275
- "onUpdate:modelValue": e[7] || (e[7] = (a) => d(l) ? l.value = a : null),
272
+ "onUpdate:modelValue": e[7] || (e[7] = (a) => i(l) ? l.value = a : null),
276
273
  trigger: "Space",
277
274
  placeholder: "输入后空格或失去焦点添加",
278
275
  style: { width: "100%" }
279
- }, null, 8, ["modelValue"])) : r.fieldType === "select" ? (i(), f(A, {
276
+ }, null, 8, ["modelValue"])) : s.fieldType === "select" ? (r(), f(A, {
280
277
  key: 3,
281
278
  modelValue: u(l),
282
- "onUpdate:modelValue": e[8] || (e[8] = (a) => d(l) ? l.value = a : null),
279
+ "onUpdate:modelValue": e[8] || (e[8] = (a) => i(l) ? l.value = a : null),
283
280
  multiple: u(S),
284
281
  filterable: "",
285
282
  placeholder: "请选择",
286
283
  style: { width: "100%" }
287
284
  }, {
288
285
  default: E(() => [
289
- (i(!0), w(O, null, $(u(M), (a) => (i(), f(k, {
286
+ (r(!0), w(O, null, $(u(M), (a) => (r(), f(k, {
290
287
  key: a.value,
291
288
  label: a.label,
292
289
  value: a.value
293
290
  }, null, 8, ["label", "value"]))), 128))
294
291
  ]),
295
292
  _: 1
296
- }, 8, ["modelValue", "multiple"])) : r.fieldType === "number" ? (i(), f(o, {
293
+ }, 8, ["modelValue", "multiple"])) : s.fieldType === "number" ? (r(), f(o, {
297
294
  key: 4,
298
295
  modelValue: u(l),
299
- "onUpdate:modelValue": e[9] || (e[9] = (a) => d(l) ? l.value = a : null),
296
+ "onUpdate:modelValue": e[9] || (e[9] = (a) => i(l) ? l.value = a : null),
300
297
  modelModifiers: { number: !0 },
301
298
  type: "number",
302
299
  placeholder: "请输入数值",
303
300
  size: "default",
304
301
  style: { width: "100%" }
305
- }, null, 8, ["modelValue"])) : r.fieldType === "date" ? (i(), f(n, {
302
+ }, null, 8, ["modelValue"])) : s.fieldType === "date" ? (r(), f(n, {
306
303
  key: 5,
307
304
  modelValue: u(l),
308
- "onUpdate:modelValue": e[10] || (e[10] = (a) => d(l) ? l.value = a : null),
305
+ "onUpdate:modelValue": e[10] || (e[10] = (a) => i(l) ? l.value = a : null),
309
306
  type: "date",
310
307
  placeholder: "请选择日期",
311
308
  size: "default",
312
309
  style: { width: "100%" },
313
310
  "value-format": "YYYYMMDD"
314
- }, null, 8, ["modelValue"])) : r.fieldType === "datetime" ? (i(), f(n, {
311
+ }, null, 8, ["modelValue"])) : s.fieldType === "datetime" ? (r(), f(n, {
315
312
  key: 6,
316
313
  modelValue: u(l),
317
- "onUpdate:modelValue": e[11] || (e[11] = (a) => d(l) ? l.value = a : null),
314
+ "onUpdate:modelValue": e[11] || (e[11] = (a) => i(l) ? l.value = a : null),
318
315
  type: "datetime",
319
316
  placeholder: "请选择日期时间",
320
317
  size: "default",
321
318
  style: { width: "100%" },
322
319
  "value-format": "YYYYMMDDHHmmss"
323
- }, null, 8, ["modelValue"])) : r.fieldType === "boolean" ? (i(), f(A, {
320
+ }, null, 8, ["modelValue"])) : s.fieldType === "boolean" ? (r(), f(A, {
324
321
  key: 7,
325
322
  modelValue: u(l),
326
- "onUpdate:modelValue": e[12] || (e[12] = (a) => d(l) ? l.value = a : null),
323
+ "onUpdate:modelValue": e[12] || (e[12] = (a) => i(l) ? l.value = a : null),
327
324
  placeholder: "请选择",
328
325
  style: { width: "100%" }
329
326
  }, {
@@ -338,19 +335,19 @@ const _ = { key: 0 }, ee = {
338
335
  })
339
336
  ]),
340
337
  _: 1
341
- }, 8, ["modelValue"])) : (i(), f(o, {
338
+ }, 8, ["modelValue"])) : (r(), f(o, {
342
339
  key: 8,
343
340
  modelValue: u(l),
344
- "onUpdate:modelValue": e[13] || (e[13] = (a) => d(l) ? l.value = a : null),
341
+ "onUpdate:modelValue": e[13] || (e[13] = (a) => i(l) ? l.value = a : null),
345
342
  placeholder: "请输入",
346
343
  size: "default",
347
344
  style: { width: "100%" }
348
345
  }, null, 8, ["modelValue"]))
349
346
  ]))
350
- ])) : (i(), w("div", _));
347
+ ])) : (r(), w("div", _));
351
348
  };
352
349
  }
353
- }, Fe = /* @__PURE__ */ G(ue, [["__scopeId", "data-v-d96216cc"]]);
350
+ }, Ne = /* @__PURE__ */ G(ue, [["__scopeId", "data-v-d103ec3f"]]);
354
351
  export {
355
- Fe as default
352
+ Ne as default
356
353
  };