act-plus 1.1.55 → 1.1.57

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.
@@ -1,9 +1,7 @@
1
1
  import { ref as R, inject as l, watch as j, resolveComponent as y, resolveDirective as q, openBlock as r, createElementBlock as u, Fragment as f, renderList as E, unref as d, createBlock as i, resolveDynamicComponent as H, withCtx as b, withDirectives as C, createCommentVNode as _, createTextVNode as k, toDisplayString as B } from "vue";
2
- import { _ as M, u as z } from "./index-2693b9c5.js";
2
+ import { _ as M, u as z } from "./index-5fa8f416.js";
3
3
  import "vue-router";
4
- import "js-base64";
5
4
  import "element-plus";
6
- import "monaco-editor";
7
5
  const G = { class: "header-operate-container" }, J = {
8
6
  __name: "index",
9
7
  props: {
@@ -102,7 +100,7 @@ const G = { class: "header-operate-container" }, J = {
102
100
  ]);
103
101
  };
104
102
  }
105
- }, Z = /* @__PURE__ */ M(J, [["__scopeId", "data-v-6477fb97"]]);
103
+ }, X = /* @__PURE__ */ M(J, [["__scopeId", "data-v-6477fb97"]]);
106
104
  export {
107
- Z as default
105
+ X as default
108
106
  };
@@ -1,9 +1,7 @@
1
1
  import { reactive as m, watch as b, resolveComponent as s, openBlock as v, createBlock as g, withCtx as o, createElementVNode as i, createVNode as x, createTextVNode as y, toDisplayString as h, unref as C } from "vue";
2
- import { _ as k, u as w } from "./index-2693b9c5.js";
2
+ import { _ as k, u as w } from "./index-5fa8f416.js";
3
3
  import "vue-router";
4
- import "js-base64";
5
4
  import "element-plus";
6
- import "monaco-editor";
7
5
  const V = ["innerHTML"], B = { class: "dialog-footer" }, D = {
8
6
  __name: "index",
9
7
  props: {
@@ -61,7 +59,7 @@ const V = ["innerHTML"], B = { class: "dialog-footer" }, D = {
61
59
  }, 8, ["model-value", "title"]);
62
60
  };
63
61
  }
64
- }, j = /* @__PURE__ */ k(D, [["__scopeId", "data-v-be1c5be6"]]);
62
+ }, M = /* @__PURE__ */ k(D, [["__scopeId", "data-v-be1c5be6"]]);
65
63
  export {
66
- j as default
64
+ M as default
67
65
  };
@@ -1,9 +1,7 @@
1
- import { defineAsyncComponent as re, inject as C, ref as U, watch as ne, resolveComponent as f, resolveDirective as se, unref as t, openBlock as s, createElementBlock as V, createVNode as ue, normalizeStyle as de, withCtx as g, Fragment as q, renderList as L, createBlock as d, mergeProps as _, withKeys as I, withModifiers as B, createCommentVNode as h, resolveDynamicComponent as pe, createElementVNode as ie, toDisplayString as S, createTextVNode as M, withDirectives as ce } from "vue";
2
- import { _ as fe, u as ye, P as me, a as be, b as Ve } from "./index-2693b9c5.js";
1
+ import { defineAsyncComponent as re, inject as C, ref as U, watch as ne, resolveComponent as f, resolveDirective as se, unref as t, openBlock as n, createElementBlock as V, createVNode as ue, normalizeStyle as de, withCtx as g, Fragment as q, renderList as L, createBlock as d, mergeProps as _, withKeys as I, withModifiers as B, createCommentVNode as h, resolveDynamicComponent as pe, createElementVNode as ie, toDisplayString as S, createTextVNode as M, withDirectives as ce } from "vue";
2
+ import { _ as fe, u as ye, P as me, a as be, b as Ve } from "./index-5fa8f416.js";
3
3
  import "vue-router";
4
- import "js-base64";
5
4
  import "element-plus";
6
- import "monaco-editor";
7
5
  const _e = {
8
6
  key: 0,
9
7
  class: "search-module-container"
@@ -14,11 +12,11 @@ const _e = {
14
12
  },
15
13
  emits: ["reset", "search"],
16
14
  setup(j, { emit: H }) {
17
- const K = re(() => import("./index-2693b9c5.js").then((r) => r.t)), { t: p } = ye(), W = C("request"), O = C("globalProps"), G = C("loadComponents"), y = C("getFieldUiProps"), x = C("formatDataType"), z = C("disposeDate"), J = C("getDefaultQueryValues"), A = H, m = j, X = U({});
15
+ const K = re(() => import("./index-e2f2023d.js")), { t: p } = ye(), W = C("request"), O = C("globalProps"), G = C("loadComponents"), y = C("getFieldUiProps"), x = C("formatDataType"), z = C("disposeDate"), J = C("getDefaultQueryValues"), A = H, m = j, X = U({});
18
16
  let b = U([]), Y = U([]), T = U(!0);
19
- const Z = (r) => m.data.tableConfig.isExpandQuery && T.value ? m.data.tableConfig.tableQueryRowWidth > r + 1 : !0, ee = async (r) => {
17
+ const Z = (s) => m.data.tableConfig.isExpandQuery && T.value ? m.data.tableConfig.tableQueryRowWidth > s + 1 : !0, ee = async (s) => {
20
18
  b.value = await Promise.all(
21
- r.filter((l) => l.useScenes.includes("tableSearch")).map(async (l) => {
19
+ s.filter((l) => l.useScenes.includes("tableSearch")).map(async (l) => {
22
20
  l.tableQueryDefaultValue && (["date", "dateRange"].includes(l.fieldType) ? l.queryValue = z(l) : l.queryValue = l.tableQueryDefaultValue ? l.tableQueryDefaultValue : void 0), O.defaultParams.some((o) => {
23
21
  o.field == l.fieldKey && o.operate === l.tableQueryCondition && (l.queryValue = o.value);
24
22
  });
@@ -33,49 +31,49 @@ const _e = {
33
31
  return l;
34
32
  })
35
33
  );
36
- }, le = (r) => {
37
- const l = (r || []).filter((u) => u.permissionCode === 1001).map((u) => ({ ...u, loading: !1 }));
34
+ }, le = (s) => {
35
+ const l = (s || []).filter((u) => u.permissionCode === 1001).map((u) => ({ ...u, loading: !1 }));
38
36
  Y.value = [...l, { btnName: p("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset", loading: !1 }];
39
- }, ae = async ({ node: r, resolve: l }, u) => {
37
+ }, ae = async ({ node: s, resolve: l }, u) => {
40
38
  const o = y(u), { label: k, value: P, children: $, isLeaf: w } = { ...Ve, ...o.treeProps || {} };
41
- if (r[w])
39
+ if (s[w])
42
40
  return l([]);
43
- const Q = u.postRequestParams.filter((n) => n.submitType === "default").reduce((n, e) => (n[e.submitName] = x(e.paramsType, e.submitValue), n), {}), D = u.postRequestParams.filter((n) => n.submitType === "match").reduce((n, e) => (n[e.submitName] = x(e.paramsType, O.matchData[e.submitValue][e.submitName]), n), {}), R = u.postRequestParams.filter((n) => n.submitType === "dynamic").map((n) => ({
44
- field: n.submitName,
45
- operate: n.submitMatchType,
46
- value: o.loadCode ? r == null ? void 0 : r.data.value : x(n.paramsType, n.submitValue)
41
+ const Q = u.postRequestParams.filter((r) => r.submitType === "default").reduce((r, e) => (r[e.submitName] = x(e.paramsType, e.submitValue), r), {}), D = u.postRequestParams.filter((r) => r.submitType === "match").reduce((r, e) => (r[e.submitName] = x(e.paramsType, O.matchData[e.submitValue][e.submitName]), r), {}), R = u.postRequestParams.filter((r) => r.submitType === "dynamic").map((r) => ({
42
+ field: r.submitName,
43
+ operate: r.submitMatchType,
44
+ value: o.loadCode ? s == null ? void 0 : s.data.value : x(r.paramsType, r.submitValue)
47
45
  }));
48
46
  let c = {};
49
- Object.keys(Q).length && (c = { ...c, ...Q }), Object.keys(D).length && (c = { ...c, ...D }), R.length && (c.dynamicFilters = R), o.loadCode && Reflect.has(c, o.loadCode) && (c[o.loadCode] = r == null ? void 0 : r.data.value);
47
+ Object.keys(Q).length && (c = { ...c, ...Q }), Object.keys(D).length && (c = { ...c, ...D }), R.length && (c.dynamicFilters = R), o.loadCode && Reflect.has(c, o.loadCode) && (c[o.loadCode] = s == null ? void 0 : s.data.value);
50
48
  const { data: E } = await W({
51
49
  url: u.fieldRequestUrl,
52
50
  method: u.fieldRequestType || "GET",
53
51
  data: c
54
- }), v = (E || []).map((n) => ({ label: n[k], value: n[P], children: [], isLeaf: n[w] }));
52
+ }), v = (E || []).map((r) => ({ label: r[k], value: r[P], children: [], isLeaf: r[w] }));
55
53
  l(v);
56
54
  };
57
55
  ne(
58
56
  () => m.data,
59
- (r, l) => {
60
- ee(r.fields), le(r.buttons);
57
+ (s, l) => {
58
+ ee(s.fields), le(s.buttons);
61
59
  },
62
60
  { immediate: !0, deep: !0 }
63
61
  );
64
- const i = (r) => {
65
- switch (r.loading = !0, r.permissionCode) {
62
+ const i = (s) => {
63
+ switch (s.loading = !0, s.permissionCode) {
66
64
  case "9999":
67
65
  b.value.forEach((o) => {
68
66
  o.tableQueryDefaultValue ? ["date", "dateRange"].includes(o.fieldType) ? o.queryValue = z(o) : o.queryValue = o.tableQueryDefaultValue ? o.tableQueryDefaultValue : void 0 : o.fieldType.includes("&") ? o.queryValue = [] : o.queryValue = void 0;
69
67
  });
70
68
  const l = J();
71
69
  A("reset", l, () => {
72
- r.loading = !1;
70
+ s.loading = !1;
73
71
  });
74
72
  break;
75
73
  default:
76
74
  const u = b.value.filter((o) => Array.isArray(o.queryValue) ? o.queryValue.length : !!o.queryValue);
77
75
  A("search", u, () => {
78
- r.loading = !1;
76
+ s.loading = !1;
79
77
  });
80
78
  break;
81
79
  }
@@ -84,10 +82,10 @@ const _e = {
84
82
  }, oe = () => {
85
83
  i({ permissionCode: 1001 });
86
84
  };
87
- return (r, l) => {
88
- var n;
85
+ return (s, l) => {
86
+ var r;
89
87
  const u = f("el-input"), o = f("el-option"), k = f("el-select"), P = f("el-select-v2"), $ = f("el-cascader"), w = f("el-tree-select"), Q = f("el-date-picker"), D = f("el-form-item"), R = f("a-svg-icon"), c = f("el-button"), E = f("el-form"), v = se("debounce");
90
- return t(b) && t(b).length ? (s(), V("div", _e, [
88
+ return t(b) && t(b).length ? (n(), V("div", _e, [
91
89
  ue(E, {
92
90
  style: de({ "--table-query-row": m.data.tableConfig.tableQueryRowWidth }),
93
91
  class: "form-content",
@@ -96,10 +94,10 @@ const _e = {
96
94
  "label-position": "right"
97
95
  }, {
98
96
  default: g(() => [
99
- (s(!0), V(q, null, L(t(b), (e, N) => (s(), V(q, { key: N }, [
100
- Z(N) ? (s(), V(q, { key: 0 }, [
101
- e.isQueryFieldCustom ? (s(), V(q, { key: 1 }, [
102
- e.customQueryComponent ? (s(), d(pe(e.customQueryComponent), {
97
+ (n(!0), V(q, null, L(t(b), (e, N) => (n(), V(q, { key: N }, [
98
+ Z(N) ? (n(), V(q, { key: 0 }, [
99
+ e.isQueryFieldCustom ? (n(), V(q, { key: 1 }, [
100
+ e.customQueryComponent ? (n(), d(pe(e.customQueryComponent), {
103
101
  key: 0,
104
102
  class: "custom-btn",
105
103
  ref_for: !0,
@@ -107,21 +105,21 @@ const _e = {
107
105
  queryItem: e,
108
106
  data: m.data,
109
107
  onRefresh: (a) => i(e)
110
- }, null, 40, ["queryItem", "data", "onRefresh"])) : (s(), V("div", {
108
+ }, null, 40, ["queryItem", "data", "onRefresh"])) : (n(), V("div", {
111
109
  class: "no-config",
112
110
  key: N
113
111
  }, [
114
112
  ie("span", Ce, "【" + S(e.fieldName) + "】", 1),
115
113
  M(S(t(p)("act.fieldCustom")), 1)
116
114
  ]))
117
- ], 64)) : (s(), d(D, {
115
+ ], 64)) : (n(), d(D, {
118
116
  key: 0,
119
117
  class: "search-form-item",
120
118
  "label-width": m.data.tableConfig.tableQueryLabelWidth,
121
119
  label: e.fieldName
122
120
  }, {
123
121
  default: g(() => [
124
- e.fieldType === "input" || e.fieldType === "editor" ? (s(), d(u, _({
122
+ e.fieldType === "input" || e.fieldType === "editor" ? (n(), d(u, _({
125
123
  key: 0,
126
124
  modelValue: e.queryValue,
127
125
  "onUpdate:modelValue": (a) => e.queryValue = a,
@@ -132,7 +130,7 @@ const _e = {
132
130
  onKeyup: l[0] || (l[0] = I(B((a) => i({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
133
131
  onClear: oe
134
132
  }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : h("", !0),
135
- e.fieldType === "inputNumber" ? (s(), d(t(K), _({
133
+ e.fieldType === "inputNumber" ? (n(), d(t(K), _({
136
134
  key: 1,
137
135
  modelValue: e.queryValue,
138
136
  "onUpdate:modelValue": (a) => e.queryValue = a,
@@ -140,7 +138,7 @@ const _e = {
140
138
  clearable: "",
141
139
  onKeyup: l[1] || (l[1] = I(B((a) => i({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
142
140
  ref_for: !0
143
- }, t(y)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (s(), d(k, _({
141
+ }, t(y)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (n(), d(k, _({
144
142
  key: 2,
145
143
  modelValue: e.queryValue,
146
144
  "onUpdate:modelValue": (a) => e.queryValue = a,
@@ -155,14 +153,14 @@ const _e = {
155
153
  onChange: l[2] || (l[2] = (a) => i({ permissionCode: 1001 }))
156
154
  }), {
157
155
  default: g(() => [
158
- (s(!0), V(q, null, L(e.dataList, (a, F) => (s(), d(o, {
156
+ (n(!0), V(q, null, L(e.dataList, (a, F) => (n(), d(o, {
159
157
  key: F,
160
158
  label: a.key,
161
159
  value: a.value
162
160
  }, null, 8, ["label", "value"]))), 128))
163
161
  ]),
164
162
  _: 2
165
- }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (s(), d(P, _({
163
+ }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (n(), d(P, _({
166
164
  key: 3,
167
165
  modelValue: e.queryValue,
168
166
  "onUpdate:modelValue": (a) => e.queryValue = a,
@@ -177,7 +175,7 @@ const _e = {
177
175
  "collapse-tags-tooltip": e.fieldType === "virtualizedMultipleSelect",
178
176
  multiple: e.fieldType === "virtualizedMultipleSelect",
179
177
  onChange: l[3] || (l[3] = (a) => i({ permissionCode: 1001 }))
180
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (s(), d($, _({
178
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (n(), d($, _({
181
179
  key: 4,
182
180
  modelValue: e.queryValue,
183
181
  "onUpdate:modelValue": (a) => e.queryValue = a,
@@ -189,7 +187,7 @@ const _e = {
189
187
  ref_for: !0
190
188
  }, t(y)(e), {
191
189
  onChange: l[4] || (l[4] = (a) => i({ permissionCode: 1001 }))
192
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "treeSelect" ? (s(), d(w, _({
190
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "treeSelect" ? (n(), d(w, _({
193
191
  key: 5,
194
192
  modelValue: e.queryValue,
195
193
  "onUpdate:modelValue": (a) => e.queryValue = a,
@@ -207,7 +205,7 @@ const _e = {
207
205
  ref_for: !0
208
206
  }, t(y)(e), {
209
207
  onChange: l[5] || (l[5] = (a) => i({ permissionCode: 1001 }))
210
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (s(), d(Q, _({
208
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (n(), d(Q, _({
211
209
  key: 6,
212
210
  modelValue: e.queryValue,
213
211
  "onUpdate:modelValue": (a) => e.queryValue = a,
@@ -218,7 +216,7 @@ const _e = {
218
216
  ref_for: !0
219
217
  }, t(y)(e), {
220
218
  onChange: l[6] || (l[6] = (a) => i({ permissionCode: 1001 }))
221
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (s(), d(Q, _({
219
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (n(), d(Q, _({
222
220
  key: 7,
223
221
  modelValue: e.queryValue,
224
222
  "onUpdate:modelValue": (a) => e.queryValue = a,
@@ -236,20 +234,20 @@ const _e = {
236
234
  }, 1032, ["label-width", "label"]))
237
235
  ], 64)) : h("", !0)
238
236
  ], 64))), 128)),
239
- t(b).length ? (s(), d(D, {
237
+ t(b).length ? (n(), d(D, {
240
238
  key: 0,
241
239
  class: "search-form-btn",
242
240
  "label-width": "0"
243
241
  }, {
244
242
  default: g(() => [
245
- (s(!0), V(q, null, L(t(Y), (e, N) => ce((s(), d(c, {
243
+ (n(!0), V(q, null, L(t(Y), (e, N) => ce((n(), d(c, {
246
244
  key: N,
247
245
  type: e.btnColor,
248
246
  loading: e.loading,
249
247
  onClick: (a) => i(e)
250
248
  }, {
251
249
  default: g(() => [
252
- e.btnIcon ? (s(), d(R, {
250
+ e.btnIcon ? (n(), d(R, {
253
251
  key: 0,
254
252
  class: "mr6",
255
253
  name: e.btnIcon,
@@ -269,7 +267,7 @@ const _e = {
269
267
  ]),
270
268
  _: 1
271
269
  }, 8, ["style"]),
272
- m.data.tableConfig.isExpandQuery && ((n = t(b)) == null ? void 0 : n.length) > m.data.tableConfig.tableQueryRowWidth ? (s(), d(c, {
270
+ m.data.tableConfig.isExpandQuery && ((r = t(b)) == null ? void 0 : r.length) > m.data.tableConfig.tableQueryRowWidth ? (n(), d(c, {
273
271
  key: 0,
274
272
  class: "expand",
275
273
  text: "",
@@ -285,7 +283,7 @@ const _e = {
285
283
  ])) : h("", !0);
286
284
  };
287
285
  }
288
- }, De = /* @__PURE__ */ fe(he, [["__scopeId", "data-v-3c6eb654"]]);
286
+ }, Pe = /* @__PURE__ */ fe(he, [["__scopeId", "data-v-3c6eb654"]]);
289
287
  export {
290
- De as default
288
+ Pe as default
291
289
  };
@@ -0,0 +1,147 @@
1
+ import { ref as N, watch as O, resolveComponent as u, resolveDirective as T, openBlock as l, createElementBlock as d, withDirectives as j, createBlock as i, mergeProps as D, withCtx as c, createTextVNode as K, toDisplayString as W, unref as f, Fragment as s, renderList as A, renderSlot as y, createCommentVNode as E, nextTick as w } from "vue";
2
+ import { _ as H, u as U } from "./index-5fa8f416.js";
3
+ import "vue-router";
4
+ import "element-plus";
5
+ const V = { class: "act-table" }, $ = {
6
+ __name: "index",
7
+ props: {
8
+ loading: { type: Boolean, default: !1 },
9
+ maxHeight: { type: Number, default: 600 },
10
+ total: { type: Number, default: 0 },
11
+ tableQuery: { type: Object, default: () => ({ pageIndex: 1, pageSize: 10 }) },
12
+ selection: { type: Array, default: () => [] },
13
+ headers: { type: Array, default: () => [] },
14
+ data: { type: Array, default: () => [] },
15
+ showSerialNumber: { type: Boolean, default: !0 },
16
+ showPagination: { type: Boolean, default: !0 },
17
+ rowKey: { type: String, default: "id" },
18
+ treeProps: { type: Object, default: () => ({ children: "children", hasChildren: "hasChildren" }) },
19
+ tableConfig: { type: Object, default: () => ({}) }
20
+ },
21
+ emits: ["update:tableQuery", "update:selection", "refresh", "onRowClick"],
22
+ setup(g, { expose: b, emit: x }) {
23
+ const { t: h } = U(), r = x, t = g;
24
+ let p = N(null);
25
+ const _ = (o) => t.showPagination ? o + 1 + (t.tableQuery.pageIndex - 1) * t.tableQuery.pageSize : o + 1, k = (o) => {
26
+ w(() => {
27
+ t.data.forEach((a) => {
28
+ o.includes(a[t.rowKey]) && p.value.toggleRowSelection(a, !0);
29
+ });
30
+ });
31
+ }, C = (o) => p.value.getSelectionRows();
32
+ O(
33
+ () => t.selection,
34
+ (o, a) => {
35
+ o && o.length && k(o);
36
+ },
37
+ { deep: !0, immediate: !0 }
38
+ );
39
+ const S = (o) => {
40
+ r("update:selection", o);
41
+ }, m = (o, a) => {
42
+ o && w(() => {
43
+ t.data.forEach((n) => {
44
+ o.includes(n[a || t.rowKey]) && p.value.toggleRowSelection(n, !0);
45
+ });
46
+ });
47
+ }, v = (o) => {
48
+ r("update:tableQuery", { ...t.tableQuery, pageSize: o }), r("refresh", []);
49
+ }, z = (o) => {
50
+ r("update:tableQuery", { ...t.tableQuery, pageIndex: o }), r("refresh", []);
51
+ }, Q = (o, a, n) => {
52
+ r("onRowClick", o, a, n);
53
+ };
54
+ return b({ getSelectionRows: C, updateSelection: m }), (o, a) => {
55
+ const n = u("el-table-column"), R = u("el-table"), I = u("el-pagination"), P = T("loading");
56
+ return l(), d("div", V, [
57
+ j((l(), i(R, D({
58
+ style: { width: "100%" },
59
+ ref_key: "tableRef",
60
+ ref: p,
61
+ data: t.data,
62
+ stripe: "",
63
+ border: "",
64
+ "highlight-current-row": "",
65
+ "max-height": t.maxHeight,
66
+ "row-key": t.rowKey,
67
+ "default-expand-all": "",
68
+ "tree-props": g.treeProps
69
+ }, t.tableConfig, {
70
+ onSelectionChange: S,
71
+ onRowClick: Q
72
+ }), {
73
+ empty: c(() => [
74
+ K(W(t.data.length || t.data.length == 0 ? f(h)("act.noData") : ""), 1)
75
+ ]),
76
+ default: c(() => [
77
+ (l(!0), d(s, null, A(t.headers, (e) => (l(), d(s, { key: e }, [
78
+ e.isCustomTableHeader ? y(o.$slots, e.prop, { key: 0 }, void 0, !0) : (l(), d(s, { key: 1 }, [
79
+ e.render ? (l(), i(n, {
80
+ key: 0,
81
+ label: e.label,
82
+ align: e.align,
83
+ width: e.width,
84
+ minWidth: e.minWidth,
85
+ sortable: e.sort,
86
+ "show-overflow-tooltip": e.prop == "operate" ? !1 : e.showOverflowTooltip,
87
+ fixed: e.fixed
88
+ }, {
89
+ default: c((B) => [
90
+ y(o.$slots, e.prop, { scope: B }, void 0, !0)
91
+ ]),
92
+ _: 2
93
+ }, 1032, ["label", "align", "width", "minWidth", "sortable", "show-overflow-tooltip", "fixed"])) : (l(), d(s, { key: 1 }, [
94
+ e.prop == "checkbox" ? (l(), i(n, {
95
+ key: 0,
96
+ type: "selection",
97
+ align: "center",
98
+ width: e.width,
99
+ fixed: ""
100
+ }, null, 8, ["width"])) : e.prop == "serialNumber" ? (l(), i(n, {
101
+ key: 1,
102
+ index: _,
103
+ type: "index",
104
+ align: "center",
105
+ width: e.width,
106
+ label: f(h)("act.sort"),
107
+ fixed: ""
108
+ }, null, 8, ["width", "label"])) : (l(), i(n, {
109
+ key: 2,
110
+ prop: e.prop,
111
+ label: e.label,
112
+ align: e.align,
113
+ sortable: e.sort,
114
+ "show-overflow-tooltip": e.showOverflowTooltip,
115
+ width: e.width,
116
+ "min-width": e.minWidth,
117
+ fixed: e.fixed
118
+ }, null, 8, ["prop", "label", "align", "sortable", "show-overflow-tooltip", "width", "min-width", "fixed"]))
119
+ ], 64))
120
+ ], 64))
121
+ ], 64))), 128))
122
+ ]),
123
+ _: 3
124
+ }, 16, ["data", "max-height", "row-key", "tree-props"])), [
125
+ [P, t.loading]
126
+ ]),
127
+ t.showPagination ? (l(), i(I, {
128
+ key: 0,
129
+ class: "table-pagination",
130
+ "current-page": t.tableQuery.pageIndex,
131
+ "onUpdate:currentPage": a[0] || (a[0] = (e) => t.tableQuery.pageIndex = e),
132
+ "page-size": t.tableQuery.pageSize,
133
+ "onUpdate:pageSize": a[1] || (a[1] = (e) => t.tableQuery.pageSize = e),
134
+ "page-sizes": [10, 20, 50, 75, 100, 200, 500],
135
+ background: "",
136
+ layout: "total, sizes, prev, pager, next, jumper",
137
+ total: t.total,
138
+ onSizeChange: v,
139
+ onCurrentChange: z
140
+ }, null, 8, ["current-page", "page-size", "total"])) : E("", !0)
141
+ ]);
142
+ };
143
+ }
144
+ }, G = /* @__PURE__ */ H($, [["__scopeId", "data-v-651542d6"]]);
145
+ export {
146
+ G as default
147
+ };
@@ -0,0 +1,35 @@
1
+ import { computed as u, resolveComponent as d, openBlock as i, createBlock as V, mergeProps as g } from "vue";
2
+ const _ = {
3
+ __name: "index",
4
+ props: {
5
+ modelValue: { type: String }
6
+ },
7
+ emits: ["update:modelValue"],
8
+ setup(n, { emit: r }) {
9
+ const p = r, l = n, o = u({
10
+ get() {
11
+ return l.modelValue;
12
+ },
13
+ set(e) {
14
+ p("update:modelValue", e);
15
+ }
16
+ }), m = (e) => {
17
+ let t = e.charAt(0);
18
+ return e = e.replace(/[^\d.]/g, ""), e = e.replace(/^\./g, ""), e = e.replace(/\.{2,}/g, "."), e = e.replace(".", "$#$").replace(/\./g, "").replace("$#$", "."), t == "-" && (e = "-" + e), e;
19
+ }, a = (e) => {
20
+ o.value = m(e);
21
+ };
22
+ return (e, t) => {
23
+ const c = d("el-input");
24
+ return i(), V(c, g({
25
+ modelValue: o.value,
26
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => o.value = s),
27
+ modelModifiers: { number: !0 },
28
+ placeholder: "Please input"
29
+ }, e.$attrs, { onInput: a }), null, 16, ["modelValue"]);
30
+ };
31
+ }
32
+ };
33
+ export {
34
+ _ as default
35
+ };