act-plus 1.1.32 → 1.1.34

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.
@@ -0,0 +1,105 @@
1
+ import { ref as d, watch as y, 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-cb3083b6.js";
3
+ import "vue-router";
4
+ import "js-base64";
5
+ import "element-plus";
6
+ import "monaco-editor";
7
+ const R = { class: "select-icon-container" }, S = { class: "icon-list" }, j = ["onClick"], z = {
8
+ class: "icon-value",
9
+ slot: "reference"
10
+ }, A = {
11
+ __name: "index",
12
+ props: {
13
+ modelValue: { type: String, default: "" },
14
+ icons: { type: Array, default: () => [] },
15
+ props: {
16
+ type: Object,
17
+ default: () => ({ value: "value", type: "btn" })
18
+ }
19
+ },
20
+ emits: ["update:modelValue"],
21
+ setup(x, { emit: V }) {
22
+ const h = V, c = x;
23
+ let s = d(!1), o = d(-1), i = d([]);
24
+ const b = () => o.value == -1 ? "" : i.value[o.value];
25
+ y(
26
+ () => c.icons,
27
+ (n, l) => {
28
+ n && (i.value = (c.icons || []).map((e) => {
29
+ const { props: t } = c;
30
+ return Reflect.has(e, t.value) ? `${t.type}-${e[t.value]}` : `${t.type}-${e}`;
31
+ }));
32
+ },
33
+ { deep: !0, immediate: !0 }
34
+ ), y(
35
+ () => c.modelValue,
36
+ (n, l) => {
37
+ if (!n) {
38
+ o.value = -1, h("update:modelValue", "");
39
+ return;
40
+ }
41
+ const e = i.value.findIndex((t) => t === n);
42
+ o.value = e;
43
+ },
44
+ { deep: !0, immediate: !0 }
45
+ );
46
+ const k = (n, l) => {
47
+ o.value = l, h("update:modelValue", b()), s.value = !1;
48
+ };
49
+ return (n, l) => {
50
+ const e = _("a-svg-icon"), t = _("el-button"), I = _("el-popover");
51
+ return r(), m("div", R, [
52
+ v(I, {
53
+ "popper-class": "select-icon-popover",
54
+ placement: "bottom-start",
55
+ visible: u(s),
56
+ "onUpdate:visible": l[0] || (l[0] = (a) => w(s) ? s.value = a : s = a),
57
+ width: 400,
58
+ trigger: "click"
59
+ }, {
60
+ reference: f(() => [
61
+ g("div", z, [
62
+ u(o) >= 0 ? (r(), C(e, {
63
+ key: 0,
64
+ name: c.modelValue,
65
+ width: "24",
66
+ height: "24",
67
+ color: "#000"
68
+ }, null, 8, ["name"])) : N("", !0),
69
+ v(t, {
70
+ class: "icon-btn",
71
+ type: "primary"
72
+ }, {
73
+ default: f(() => [
74
+ $("选择图标")
75
+ ]),
76
+ _: 1
77
+ })
78
+ ])
79
+ ]),
80
+ default: f(() => [
81
+ g("ul", S, [
82
+ (r(!0), m(B, null, E(u(i), (a, p) => (r(), m("li", {
83
+ class: L(["icon-item", { "icon-item-checked": u(o) == p }]),
84
+ key: p,
85
+ onClick: (F) => k(a, p)
86
+ }, [
87
+ v(e, {
88
+ class: "icon-svg",
89
+ name: a,
90
+ width: "24",
91
+ height: "24",
92
+ color: "#999"
93
+ }, null, 8, ["name"])
94
+ ], 10, j))), 128))
95
+ ])
96
+ ]),
97
+ _: 1
98
+ }, 8, ["visible"])
99
+ ]);
100
+ };
101
+ }
102
+ }, H = /* @__PURE__ */ P(A, [["__scopeId", "data-v-308d02d4"]]);
103
+ export {
104
+ H as default
105
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineAsyncComponent as j, ref as g, watch as G, resolveComponent as s, resolveDirective as J, unref as t, openBlock as r, createElementBlock as h, createVNode as X, normalizeStyle as Z, withCtx as m, Fragment as v, renderList as C, withDirectives as U, createBlock as u, mergeProps as y, withKeys as x, withModifiers as N, createCommentVNode as _, vShow as ee, createTextVNode as P, toDisplayString as E } from "vue";
2
- import { _ as le, u as te, P as oe, a as ae } from "./index-0098f472.js";
2
+ import { _ as le, u as te, P as oe, a as ae } from "./index-cb3083b6.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -14,7 +14,7 @@ const re = {
14
14
  },
15
15
  emits: ["reset", "search"],
16
16
  setup(D, { emit: M }) {
17
- const Q = j(() => import("./index-0098f472.js").then((a) => a.f)), { t: d } = te(), k = M, c = D;
17
+ const Q = j(() => import("./index-cb3083b6.js").then((a) => a.f)), { t: d } = te(), k = M, c = D;
18
18
  let p = g([]), q = g([]), b = g(!0);
19
19
  const A = (a) => c.data.tableConfig.isExpandQuery && b.value ? c.data.tableConfig.tableQueryRowWidth > a + 1 : !0, i = (a) => new Function("", a.fieldUiProps)() || {}, R = (a) => {
20
20
  p.value = (a || []).filter((o) => o.useScenes.includes("tableSearch"));
@@ -1,10 +1,10 @@
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 V } from "./index-0098f472.js";
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-cb3083b6.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
6
6
  import "monaco-editor";
7
- const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
7
+ const V = ["innerHTML"], B = { class: "dialog-footer" }, D = {
8
8
  __name: "index",
9
9
  props: {
10
10
  visible: { type: Boolean, default: !1 },
@@ -13,11 +13,11 @@ const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
13
13
  },
14
14
  emits: ["update:visible", "refresh"],
15
15
  setup(l, { emit: c }) {
16
- const { t: d } = V(), r = c, t = l;
16
+ const { t: d } = w(), r = c, t = l;
17
17
  let a = m((() => ({
18
18
  loading: !1
19
19
  }))());
20
- v(
20
+ b(
21
21
  () => t.visible,
22
22
  async (e, p) => {
23
23
  e && (a.loading = !0, a.loading = !1);
@@ -30,13 +30,15 @@ const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
30
30
  };
31
31
  return (e, p) => {
32
32
  const f = s("el-button"), u = s("el-dialog");
33
- return b(), g(u, {
33
+ return v(), g(u, {
34
34
  "model-value": t.visible,
35
35
  title: t.title,
36
36
  top: "5vh",
37
37
  width: 800,
38
38
  "append-to-body": "",
39
39
  "destroy-on-close": "",
40
+ draggable: "",
41
+ overflow: "",
40
42
  "close-on-click-modal": !1,
41
43
  "before-close": _
42
44
  }, {
@@ -53,13 +55,13 @@ const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
53
55
  default: o(() => [
54
56
  i("div", {
55
57
  innerHTML: l.data.editorContent
56
- }, null, 8, w)
58
+ }, null, 8, V)
57
59
  ]),
58
60
  _: 1
59
61
  }, 8, ["model-value", "title"]);
60
62
  };
61
63
  }
62
- }, j = /* @__PURE__ */ k(D, [["__scopeId", "data-v-3484c709"]]);
64
+ }, j = /* @__PURE__ */ k(D, [["__scopeId", "data-v-be1c5be6"]]);
63
65
  export {
64
66
  j as default
65
67
  };