act-plus 1.1.83 → 1.1.85

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,187 +1,188 @@
1
- import { ref as J, inject as _, computed as K, watch as Q, resolveComponent as g, resolveDirective as U, openBlock as t, createElementBlock as m, Fragment as C, renderList as I, createBlock as s, resolveDynamicComponent as F, unref as c, withCtx as r, withDirectives as k, createCommentVNode as p, createTextVNode as h, toDisplayString as B, createVNode as N } from "vue";
2
- import { _ as W, u as X, c as Y } from "./index-1691e40f.js";
1
+ import { ref as K, inject as p, computed as Q, watch as U, resolveComponent as g, resolveDirective as W, openBlock as t, createElementBlock as m, Fragment as C, renderList as I, createBlock as a, resolveDynamicComponent as F, unref as d, withCtx as r, withDirectives as k, createCommentVNode as f, createTextVNode as h, toDisplayString as B, createVNode as N } from "vue";
2
+ import { _ as X, u as Y, c as Z } from "./index-d1b62e93.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
- const Z = { class: "header-operate-container" }, ee = {
5
+ const ee = { class: "header-operate-container" }, ne = {
6
6
  __name: "index",
7
7
  props: {
8
8
  data: { type: Object, default: () => ({}) }
9
9
  },
10
10
  emits: ["onOperate"],
11
11
  setup(P, { emit: M }) {
12
- const R = M, y = P, { t: w } = X();
13
- let f = J([]);
14
- const A = _("globalProps"), O = _("menuPermissionBtns"), j = _("stringToBoolean"), q = _("matchCondition"), x = _("getTableData"), D = _("tableBtnRefs"), v = K(() => {
12
+ const R = M, y = P, { t: w } = Y();
13
+ let b = K([]);
14
+ const A = p("globalProps"), O = p("menuPermissionBtns"), j = p("stringToBoolean"), q = p("matchCondition"), x = p("getTableData"), D = p("tableBtnRefs"), E = p("refreshTable"), v = Q(() => {
15
15
  const {
16
16
  tableConfig: { headerMoreBtnSplitNumber: o }
17
17
  } = y.data;
18
- return !o || o >= f.value.length;
19
- }), E = () => {
18
+ return !o || o >= b.value.length;
19
+ }), H = () => {
20
20
  const {
21
21
  tableConfig: { headerMoreBtnSplitNumber: o }
22
22
  } = y.data;
23
- return v.value ? f.value : f.value.slice(0, o);
24
- }, H = () => {
23
+ return v.value ? b.value : b.value.slice(0, o);
24
+ }, L = () => {
25
25
  var n;
26
26
  const {
27
27
  tableConfig: { headerMoreBtnSplitNumber: o }
28
28
  } = y.data;
29
- return v.value ? [] : f.value.slice(o, (n = f.value) == null ? void 0 : n.length);
30
- }, L = (o) => {
29
+ return v.value ? [] : b.value.slice(o, (n = b.value) == null ? void 0 : n.length);
30
+ }, z = (o) => {
31
31
  if (!o.matchFields.length)
32
32
  return !0;
33
- const n = o.matchFields.filter((a) => a.matchType != "default"), d = (a) => A.matchData[a.matchType][a.matchFieldName];
34
- let $ = n.reduce((a, l, i) => {
35
- const e = d(l);
36
- return a += q(
37
- l.matchCondition,
33
+ const n = o.matchFields.filter((l) => l.matchType != "default"), i = (l) => A.matchData[l.matchType][l.matchFieldName];
34
+ let $ = n.reduce((l, s, u) => {
35
+ const e = i(s);
36
+ return l += q(
37
+ s.matchCondition,
38
38
  e,
39
- l.fieldValue == "" ? null : l.fieldValue == "true" || l.fieldValue == "false" ? j(l.fieldValue) : l.fieldValue
40
- ), i !== n.length - 1 && (a += l.spliceCondition || "&&"), a;
41
- }, "").split("||"), T = $.reduce((a, l, i) => (a += `(${l})`, i < $.length - 1 && (a += "||"), a), "");
42
- return new Function(`return ${T}`)();
43
- }, V = (o) => O.value.some((n) => n.unique == o.permissionCode) && L(o), z = (o) => {
44
- f.value = (o || []).filter((n) => n.permissionCode !== 1001 && n.btnPostion.includes("header")).sort((n, d) => n.sort - d.sort).map((n) => (n.btnAlias && (n.btnName = n.btnAlias), Reflect.has(n, "isPromptVerificationSelectTable") || (n.isPromptVerificationSelectTable = "1"), n));
39
+ s.fieldValue == "" ? null : s.fieldValue == "true" || s.fieldValue == "false" ? j(s.fieldValue) : s.fieldValue
40
+ ), u !== n.length - 1 && (l += s.spliceCondition || "&&"), l;
41
+ }, "").split("||"), S = $.reduce((l, s, u) => (l += `(${s})`, u < $.length - 1 && (l += "||"), l), "");
42
+ return new Function(`return ${S}`)();
43
+ }, V = (o) => O.value.some((n) => n.unique == o.permissionCode) && z(o), G = (o) => {
44
+ b.value = (o || []).filter((n) => n.permissionCode !== 1001 && n.btnPostion.includes("header")).sort((n, i) => n.sort - i.sort).map((n) => (n.btnAlias && (n.btnName = n.btnAlias), Reflect.has(n, "isPromptVerificationSelectTable") || (n.isPromptVerificationSelectTable = "1"), n));
45
45
  };
46
- Q(
46
+ U(
47
47
  () => y.data,
48
48
  (o, n) => {
49
- z(o.buttons);
49
+ G(o.buttons);
50
50
  },
51
51
  { immediate: !0 }
52
52
  );
53
- const S = (o) => {
53
+ const T = (o) => {
54
54
  R("onOperate", o, {});
55
55
  };
56
56
  return (o, n) => {
57
- const d = g("a-svg-icon"), b = g("el-button"), $ = g("el-icon"), T = g("el-dropdown-item"), a = g("el-dropdown-menu"), l = g("el-dropdown"), i = U("debounce");
58
- return t(), m("div", Z, [
59
- (t(!0), m(C, null, I(E(), (e, G) => (t(), m(C, {
57
+ const i = g("a-svg-icon"), _ = g("el-button"), $ = g("el-icon"), S = g("el-dropdown-item"), l = g("el-dropdown-menu"), s = g("el-dropdown"), u = W("debounce");
58
+ return t(), m("div", ee, [
59
+ (t(!0), m(C, null, I(H(), (e, J) => (t(), m(C, {
60
60
  key: e.permissionCode
61
61
  }, [
62
62
  V(e) ? (t(), m(C, { key: 0 }, [
63
- e.isCustomBtn && e.customType == "component" ? (t(), s(F(e[e.customComponentName]), {
63
+ e.isCustomBtn && e.customType == "component" ? (t(), a(F(e[e.customComponentName]), {
64
64
  key: 0,
65
65
  class: "custom-btn",
66
66
  ref_for: !0,
67
- ref: (u) => c(D)[`${e.customComponentName}-${e.permissionCode}`] = u,
67
+ ref: (c) => d(D)[`${e.customComponentName}-${e.permissionCode}`] = c,
68
68
  buttonData: e,
69
- onRefresh: n[0] || (n[0] = (u) => c(x)())
69
+ onRefresh: n[0] || (n[0] = (c) => d(x)()),
70
+ onRefreshTable: n[1] || (n[1] = (c) => d(E)())
70
71
  }, {
71
72
  default: r(() => [
72
- k((t(), s(b, {
73
+ k((t(), a(_, {
73
74
  class: "el-btn",
74
75
  type: e.btnColor,
75
76
  loading: e[`loading${e.permissionCode}`],
76
- onClick: (u) => S(e)
77
+ onClick: (c) => T(e)
77
78
  }, {
78
79
  default: r(() => [
79
- e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(d, {
80
+ e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), a(i, {
80
81
  key: 0,
81
82
  class: "mr4",
82
83
  name: e.btnIcon,
83
84
  width: "12",
84
85
  height: "12",
85
86
  color: "#fff"
86
- }, null, 8, ["name"])) : p("", !0),
87
- h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + c(w)("act.loading") + "..." : e.btnName), 1)
87
+ }, null, 8, ["name"])) : f("", !0),
88
+ h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
88
89
  ]),
89
90
  _: 2
90
91
  }, 1032, ["type", "loading", "onClick"])), [
91
- [i]
92
+ [u]
92
93
  ])
93
94
  ]),
94
95
  _: 2
95
- }, 1064, ["buttonData"])) : k((t(), s(b, {
96
+ }, 1064, ["buttonData"])) : k((t(), a(_, {
96
97
  key: 1,
97
98
  class: "el-btn",
98
99
  type: e.btnColor,
99
100
  loading: e[`loading${e.permissionCode}`],
100
- onClick: (u) => S(e)
101
+ onClick: (c) => T(e)
101
102
  }, {
102
103
  default: r(() => [
103
- e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(d, {
104
+ e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), a(i, {
104
105
  key: 0,
105
106
  class: "mr4",
106
107
  name: e.btnIcon,
107
108
  width: "12",
108
109
  height: "12",
109
110
  color: "#fff"
110
- }, null, 8, ["name"])) : p("", !0),
111
- h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + c(w)("act.loading") + "..." : e.btnName), 1)
111
+ }, null, 8, ["name"])) : f("", !0),
112
+ h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
112
113
  ]),
113
114
  _: 2
114
115
  }, 1032, ["type", "loading", "onClick"])), [
115
- [i]
116
+ [u]
116
117
  ])
117
- ], 64)) : p("", !0)
118
+ ], 64)) : f("", !0)
118
119
  ], 64))), 128)),
119
- v.value ? p("", !0) : (t(), s(l, {
120
+ v.value ? f("", !0) : (t(), a(s, {
120
121
  key: 0,
121
122
  class: "header-opreate-dropdown"
122
123
  }, {
123
124
  dropdown: r(() => [
124
- N(a, null, {
125
+ N(l, null, {
125
126
  default: r(() => [
126
- (t(!0), m(C, null, I(H(), (e, G) => (t(), s(T, {
127
+ (t(!0), m(C, null, I(L(), (e, J) => (t(), a(S, {
127
128
  key: e.permissionCode,
128
- onClick: (u) => S(e)
129
+ onClick: (c) => T(e)
129
130
  }, {
130
131
  default: r(() => [
131
132
  V(e) ? (t(), m(C, { key: 0 }, [
132
- e.isCustomBtn && e.customType == "component" ? (t(), s(F(e[e.customComponentName]), {
133
+ e.isCustomBtn && e.customType == "component" ? (t(), a(F(e[e.customComponentName]), {
133
134
  key: 0,
134
135
  class: "custom-btn",
135
136
  ref_for: !0,
136
- ref: (u) => c(D)[`${e.customComponentName}-${e.permissionCode}`] = u,
137
+ ref: (c) => d(D)[`${e.customComponentName}-${e.permissionCode}`] = c,
137
138
  buttonData: e,
138
- onRefresh: n[1] || (n[1] = (u) => c(x)())
139
+ onRefresh: n[2] || (n[2] = (c) => d(x)())
139
140
  }, {
140
141
  default: r(() => [
141
- k((t(), s(b, {
142
+ k((t(), a(_, {
142
143
  class: "el-btn",
143
144
  type: e.btnColor,
144
145
  loading: e[`loading${e.permissionCode}`]
145
146
  }, {
146
147
  default: r(() => [
147
- e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(d, {
148
+ e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), a(i, {
148
149
  key: 0,
149
150
  class: "mr4",
150
151
  name: e.btnIcon,
151
152
  width: "12",
152
153
  height: "12",
153
154
  color: "#fff"
154
- }, null, 8, ["name"])) : p("", !0),
155
- h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + c(w)("act.loading") + "..." : e.btnName), 1)
155
+ }, null, 8, ["name"])) : f("", !0),
156
+ h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
156
157
  ]),
157
158
  _: 2
158
159
  }, 1032, ["type", "loading"])), [
159
- [i]
160
+ [u]
160
161
  ])
161
162
  ]),
162
163
  _: 2
163
- }, 1064, ["buttonData"])) : k((t(), s(b, {
164
+ }, 1064, ["buttonData"])) : k((t(), a(_, {
164
165
  key: 1,
165
166
  class: "el-btn",
166
167
  type: e.btnColor,
167
168
  loading: e[`loading${e.permissionCode}`]
168
169
  }, {
169
170
  default: r(() => [
170
- e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(d, {
171
+ e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), a(i, {
171
172
  key: 0,
172
173
  class: "mr4",
173
174
  name: e.btnIcon,
174
175
  width: "12",
175
176
  height: "12",
176
177
  color: "#fff"
177
- }, null, 8, ["name"])) : p("", !0),
178
- h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + c(w)("act.loading") + "..." : e.btnName), 1)
178
+ }, null, 8, ["name"])) : f("", !0),
179
+ h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
179
180
  ]),
180
181
  _: 2
181
182
  }, 1032, ["type", "loading"])), [
182
- [i]
183
+ [u]
183
184
  ])
184
- ], 64)) : p("", !0)
185
+ ], 64)) : f("", !0)
185
186
  ]),
186
187
  _: 2
187
188
  }, 1032, ["onClick"]))), 128))
@@ -190,12 +191,12 @@ const Z = { class: "header-operate-container" }, ee = {
190
191
  })
191
192
  ]),
192
193
  default: r(() => [
193
- N(b, { type: "primary" }, {
194
+ N(_, { type: "primary" }, {
194
195
  default: r(() => [
195
- n[2] || (n[2] = h(" 更多按钮", -1)),
196
+ n[3] || (n[3] = h(" 更多按钮", -1)),
196
197
  N($, { class: "el-icon--right" }, {
197
198
  default: r(() => [
198
- N(c(Y))
199
+ N(d(Z))
199
200
  ]),
200
201
  _: 1
201
202
  })
@@ -208,7 +209,7 @@ const Z = { class: "header-operate-container" }, ee = {
208
209
  ]);
209
210
  };
210
211
  }
211
- }, le = /* @__PURE__ */ W(ee, [["__scopeId", "data-v-204fc0b7"]]);
212
+ }, ae = /* @__PURE__ */ X(ne, [["__scopeId", "data-v-d86fe71c"]]);
212
213
  export {
213
- le as default
214
+ ae as default
214
215
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as vd, shallowRef as jn, inject as kd, computed as ec, toRaw as Qd, onMounted as Pd, watch as le, onBeforeUnmount as $d, h as Td, ref as Ql, resolveComponent as Cd, resolveDirective as Ad, openBlock as Pl, createElementBlock as Rd, withDirectives as Zd, createBlock as Md, withCtx as Ed, createTextVNode as Xd, toDisplayString as Ld, unref as $l, createVNode as Dd, normalizeStyle as zd } from "vue";
2
- import { _ as Wd, u as Bd } from "./index-1691e40f.js";
2
+ import { _ as Wd, u as Bd } from "./index-d1b62e93.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  let Xr = [], ic = [];
@@ -1,5 +1,5 @@
1
1
  import { defineAsyncComponent as O, inject as D, ref as N, watch as De, resolveComponent as _, resolveDirective as le, openBlock as u, createBlock as y, withCtx as K, createElementVNode as ae, createVNode as oe, createTextVNode as J, toDisplayString as A, unref as d, withDirectives as te, createElementBlock as L, Fragment as x, renderList as Q, mergeProps as v, createCommentVNode as se, resolveDynamicComponent as we, toRaw as Ne } from "vue";
2
- import { _ as ke, u as Ue, P as Pe, b as re, a as Se } from "./index-1691e40f.js";
2
+ import { _ as ke, u as Ue, P as Pe, b as re, a as Se } from "./index-d1b62e93.js";
3
3
  import { ElNotification as Le } from "element-plus";
4
4
  import "vue-router";
5
5
  const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
@@ -11,7 +11,7 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
11
11
  },
12
12
  emits: ["update:visible", "refresh"],
13
13
  setup(k, { emit: de }) {
14
- const ie = O(() => import("./index-e2f2023d.js")), ne = O(() => import("./index-c6ab8b84.js")), ue = O(() => import("./index-c0d2c978.js")), ce = O(() => import("./index-2cdc185b.js")), { t: h } = Ue(), q = D("request"), fe = D("loadComponents"), w = D("formatDataType"), M = D("globalProps"), pe = D("stringToBoolean"), b = D("getFieldUiProps"), me = D("disposeRequestData"), X = de, p = k, R = N(!1), U = N(!1), E = N(null), P = N([]), o = N({}), j = N({}), ye = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, be = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), he = async ({ node: l, resolve: c }, a) => {
14
+ const ie = O(() => import("./index-e2f2023d.js")), ne = O(() => import("./index-a5eda75c.js")), ue = O(() => import("./index-77a68bfe.js")), ce = O(() => import("./index-2cdc185b.js")), { t: h } = Ue(), q = D("request"), fe = D("loadComponents"), w = D("formatDataType"), M = D("globalProps"), pe = D("stringToBoolean"), b = D("getFieldUiProps"), me = D("disposeRequestData"), X = de, p = k, R = N(!1), U = N(!1), E = N(null), P = N([]), o = N({}), j = N({}), ye = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, be = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), he = async ({ node: l, resolve: c }, a) => {
15
15
  const r = b(a), { label: m, value: n, children: g, isLeaf: s } = { ...re, ...r.treeProps || {} };
16
16
  if (l[s])
17
17
  return c([]);
@@ -1,5 +1,5 @@
1
1
  import { reactive as m, watch as v, resolveComponent as s, openBlock as b, 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-1691e40f.js";
2
+ import { _ as k, u as w } from "./index-d1b62e93.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  const V = ["innerHTML"], B = { class: "dialog-footer" }, D = {
@@ -1,5 +1,5 @@
1
1
  import { ref as p, watch as h, resolveComponent as _, openBlock as r, createElementBlock as m, createVNode as v, unref as u, isRef as w, withCtx as f, createElementVNode as g, createBlock as C, createCommentVNode as N, createTextVNode as $, Fragment as B, renderList as E, normalizeClass as L } from "vue";
2
- import { _ as P } from "./index-1691e40f.js";
2
+ import { _ as P } from "./index-d1b62e93.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  const R = { class: "select-icon-container" }, S = { class: "icon-list" }, j = ["onClick"], z = {
@@ -1,5 +1,5 @@
1
1
  import { defineAsyncComponent as de, inject as h, ref as q, watch as pe, resolveComponent as y, resolveDirective as ce, unref as t, openBlock as r, createElementBlock as _, createVNode as ie, normalizeStyle as fe, withCtx as T, Fragment as k, renderList as M, createBlock as d, mergeProps as m, withKeys as H, withModifiers as K, createCommentVNode as g, resolveDynamicComponent as ye, createElementVNode as me, toDisplayString as R, createTextVNode as O, withDirectives as Ve } from "vue";
2
- import { _ as be, u as Ce, P as _e, a as he, b as W } from "./index-1691e40f.js";
2
+ import { _ as be, u as Ce, P as _e, a as he, b as W } from "./index-d1b62e93.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  const ge = {