act-plus 1.1.41 → 1.1.42

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,5 +1,5 @@
1
1
  import { defineAsyncComponent as se, inject as E, reactive as ie, ref as A, watch as me, resolveComponent as C, resolveDirective as pe, openBlock as n, createBlock as m, withCtx as t, createElementVNode as H, createVNode as l, unref as u, createTextVNode as S, withDirectives as fe, createElementBlock as b, Fragment as c, renderList as _, createCommentVNode as V, toDisplayString as be } from "vue";
2
- import { _ as ce, F as ge, k as Ce, l as _e, m as L, T as ye, A as Ve, C as Te, U as Se } from "./index-40115216.js";
2
+ import { _ as ce, F as ge, k as Ce, l as _e, m as L, T as ye, A as Ve, C as Te, U as Se } from "./index-bbca6b2b.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -13,7 +13,7 @@ const ve = { slot: "prepend" }, Ue = { class: "dialog-footer" }, ke = {
13
13
  },
14
14
  emits: ["update:visible", "refresh"],
15
15
  setup(K, { emit: M }) {
16
- const I = se(() => import("./dialogSiteComponentsParams-b6c8001c.js")), D = M, N = K, P = E("pageKey")(), x = E("conditionList")(), W = E("configData")();
16
+ const I = se(() => import("./dialogSiteComponentsParams-7292486e.js")), D = M, N = K, P = E("pageKey")(), x = E("conditionList")(), W = E("configData")();
17
17
  let v = ie((() => ({
18
18
  btnLoading: !1,
19
19
  showSiteComponentsParamsDialog: !1
@@ -1,5 +1,5 @@
1
1
  import { defineAsyncComponent as O, inject as N, computed as ue, reactive as ne, ref as q, watch as de, resolveComponent as y, resolveDirective as re, openBlock as d, createBlock as m, withCtx as e, createElementVNode as se, createVNode as l, unref as o, createTextVNode as U, withDirectives as ie, toDisplayString as A, createCommentVNode as C, createElementBlock as b, Fragment as f, renderList as _ } from "vue";
2
- import { _ as me, B as pe, c as ce, d as be, e as fe, f as _e, g as ge, h as Ve, i as ye, j as he } from "./index-40115216.js";
2
+ import { _ as me, B as pe, c as ce, d as be, e as fe, f as _e, g as ge, h as Ve, i as ye, j as he } from "./index-bbca6b2b.js";
3
3
  import { useRoute as Ce } from "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -13,7 +13,7 @@ const ve = { class: "dialog-footer" }, Fe = {
13
13
  },
14
14
  emits: ["update:visible", "refresh"],
15
15
  setup(x, { emit: D }) {
16
- const P = O(() => import("./index-4398f116.js")), E = O(() => import("./index-40115216.js").then((p) => p.q)), W = Ce(), R = N("request"), I = D, T = x, Y = ue(() => W.params.key);
16
+ const P = O(() => import("./index-2ae88f18.js")), E = O(() => import("./index-bbca6b2b.js").then((p) => p.q)), W = Ce(), R = N("request"), I = D, T = x, Y = ue(() => W.params.key);
17
17
  let k = ne((() => ({
18
18
  btnLoading: !1
19
19
  }))());
@@ -8,7 +8,7 @@ const B = { class: "dialog-footer" }, h = {
8
8
  },
9
9
  emits: ["update:visible", "refresh", "update:modelValue"],
10
10
  setup(f, { emit: c }) {
11
- const v = _(() => import("./index-40115216.js").then((l) => l.q)), n = c, o = f;
11
+ const v = _(() => import("./index-bbca6b2b.js").then((l) => l.q)), n = c, o = f;
12
12
  let t = y();
13
13
  C(
14
14
  () => o.visible,
@@ -1,5 +1,5 @@
1
1
  import { ref as d, watch as h, resolveComponent as m, openBlock as r, createElementBlock as _, 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-40115216.js";
2
+ import { _ as P } from "./index-bbca6b2b.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -0,0 +1,108 @@
1
+ import { ref as j, inject as l, watch as q, resolveComponent as y, resolveDirective as O, openBlock as a, createElementBlock as u, Fragment as f, renderList as E, unref as d, createBlock as i, resolveDynamicComponent as H, withCtx as _, withDirectives as C, createCommentVNode as b, createTextVNode as k, toDisplayString as B } from "vue";
2
+ import { _ as M, u as z } from "./index-bbca6b2b.js";
3
+ import "vue-router";
4
+ import "js-base64";
5
+ import "element-plus";
6
+ import "monaco-editor";
7
+ const G = { class: "header-operate-container" }, J = {
8
+ __name: "index",
9
+ props: {
10
+ data: { type: Object, default: () => ({}) }
11
+ },
12
+ emits: ["operate"],
13
+ setup(w, { emit: x }) {
14
+ const N = x, T = w, { t: D } = z();
15
+ let h = j([]);
16
+ const V = l("globalProps"), v = l("menuPermissionBtns"), F = l("stringToBoolean"), $ = l("matchCondition"), S = l("getTableData"), P = l("tableBtnRefs"), A = (s) => {
17
+ if (!s.matchFields.length)
18
+ return !0;
19
+ const t = s.matchFields.filter((o) => o.matchType != "default"), r = (o) => V.matchData[o.matchType][o.matchFieldName];
20
+ let c = t.reduce((o, n, m) => {
21
+ const R = r(n);
22
+ return o += $(
23
+ n.matchCondition,
24
+ R,
25
+ n.fieldValue == "" ? null : n.fieldValue == "true" || n.fieldValue == "false" ? F(n.fieldValue) : n.fieldValue
26
+ ), m !== t.length - 1 && (o += n.spliceCondition || "&&"), o;
27
+ }, "").split("||"), e = c.reduce((o, n, m) => (o += `(${n})`, m < c.length - 1 && (o += "||"), o), "");
28
+ return new Function(`return ${e}`)();
29
+ }, I = (s) => v.value.some((t) => t.unique == s.permissionCode) && A(s), L = (s) => {
30
+ h.value = (s || []).filter((t) => t.permissionCode !== 1001 && t.btnPostion.includes("header")).sort((t, r) => t.sort - r.sort).map((t) => (t.btnAlias && (t.btnName = t.btnAlias), t));
31
+ };
32
+ q(
33
+ () => T.data,
34
+ (s, t) => {
35
+ L(s.buttons);
36
+ },
37
+ { immediate: !0 }
38
+ );
39
+ const g = (s) => {
40
+ N("operate", s, {});
41
+ };
42
+ return (s, t) => {
43
+ const r = y("a-svg-icon"), p = y("el-button"), c = O("debounce");
44
+ return a(), u("div", G, [
45
+ (a(!0), u(f, null, E(d(h), (e, o) => (a(), u(f, { key: o }, [
46
+ I(e) ? (a(), u(f, { key: 0 }, [
47
+ e.isCustomBtn && e.customType == "component" ? (a(), i(H(e[e.customComponentName]), {
48
+ key: 0,
49
+ class: "custom-btn",
50
+ ref_for: !0,
51
+ ref: (n) => d(P)[`${e.customComponentName}-${e.permissionCode}`] = n,
52
+ buttonData: e,
53
+ onRefresh: t[0] || (t[0] = (n) => d(S)())
54
+ }, {
55
+ default: _(() => [
56
+ C((a(), i(p, {
57
+ class: "el-btn",
58
+ type: e.btnColor,
59
+ onClick: (n) => g(e)
60
+ }, {
61
+ default: _(() => [
62
+ e.btnIcon ? (a(), i(r, {
63
+ key: 0,
64
+ class: "mr4",
65
+ name: e.btnIcon,
66
+ width: "12",
67
+ height: "12",
68
+ color: "#fff"
69
+ }, null, 8, ["name"])) : b("", !0),
70
+ k(" " + B(e.btnName), 1)
71
+ ]),
72
+ _: 2
73
+ }, 1032, ["type", "onClick"])), [
74
+ [c]
75
+ ])
76
+ ]),
77
+ _: 2
78
+ }, 1064, ["buttonData"])) : C((a(), i(p, {
79
+ key: 1,
80
+ class: "el-btn",
81
+ type: e.btnColor,
82
+ loading: e.opeateLoading,
83
+ onClick: (n) => g(e)
84
+ }, {
85
+ default: _(() => [
86
+ e.btnIcon ? (a(), i(r, {
87
+ key: 0,
88
+ class: "mr4",
89
+ name: e.btnIcon,
90
+ width: "12",
91
+ height: "12",
92
+ color: "#fff"
93
+ }, null, 8, ["name"])) : b("", !0),
94
+ k(" " + B(e.opeateLoading ? e.btnName + d(D)("act.loading") + "..." : e.btnName), 1)
95
+ ]),
96
+ _: 2
97
+ }, 1032, ["type", "loading", "onClick"])), [
98
+ [c]
99
+ ])
100
+ ], 64)) : b("", !0)
101
+ ], 64))), 128))
102
+ ]);
103
+ };
104
+ }
105
+ }, Z = /* @__PURE__ */ M(J, [["__scopeId", "data-v-7d9574aa"]]);
106
+ export {
107
+ Z as default
108
+ };