act-plus 1.1.71 → 1.1.73

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