zjh-web-ui 1.0.10 → 1.0.11

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.
Files changed (121) hide show
  1. package/config/resolver.js +1 -1
  2. package/dist/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue.js +23 -23
  3. package/dist/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue.js +2 -2
  4. package/dist/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue2.js +27 -27
  5. package/dist/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue.js +38 -38
  6. package/dist/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue.js +2 -2
  7. package/dist/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue2.js +80 -80
  8. package/dist/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue.js +23 -23
  9. package/dist/components/HuiCountDownButton/HuiCountDownButton.vue.js +14 -14
  10. package/dist/components/HuiDataView/HuiDataView.vue2.js +37 -37
  11. package/dist/components/HuiGridForm/HuiGridForm.vue.js +2 -2
  12. package/dist/components/HuiGridForm/HuiGridForm.vue2.js +103 -103
  13. package/dist/components/HuiGridForm/HuiGridFormHooks.js +1 -1
  14. package/dist/components/HuiLineEditDialog/HuiLineEditDialog.vue2.js +69 -69
  15. package/dist/components/HuiLineEditPopover/HuiLineEditPopover.vue2.js +47 -47
  16. package/dist/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue.js +21 -21
  17. package/dist/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue.js +49 -49
  18. package/dist/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue2.js +2 -2
  19. package/dist/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue.js +14 -14
  20. package/dist/components/HuiShowUrlDialog/HuiShowUrlDialog.vue.js +18 -18
  21. package/dist/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue.js +50 -50
  22. package/dist/components/HuiTags/HuiTags.vue2.js +9 -9
  23. package/dist/components/HuiTagsMore/HuiTagsMore.vue.js +12 -16
  24. package/dist/components/HuiTinymce/HuiTinymce.vue.js +10 -10
  25. package/dist/components/HuiTinymceDialog/HuiTinymceDialog.vue.js +43 -43
  26. package/dist/components/HuiTip/HuiTip.vue.js +15 -15
  27. package/dist/hooks/useHuiFormDialog/useHuiFormDialog.js +1 -1
  28. package/dist/index.d.ts +2116 -0
  29. package/dist/style.css +1 -1
  30. package/dist/utils/hui-rules.js +1 -1
  31. package/dist/utils/hui-tool/message-box/index.js +3 -3
  32. package/dist/utils/hui-tool/message-box/message-box.vue2.js +112 -0
  33. package/dist/utils/hui-tool/message-box/message-box.vue3.js +2 -2
  34. package/global.d.ts +21 -21
  35. package/package.json +1 -1
  36. package/types/index.d.ts +2115 -12
  37. package/dist/utils/hui-tool/message-box/message-box.vue.js +0 -112
  38. package/types/components/AMapConfig.d.ts +0 -2
  39. package/types/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue.d.ts +0 -105
  40. package/types/components/HuiAMapMassMarkers/index.d.ts +0 -107
  41. package/types/components/HuiAMapMassMarkers/type.d.ts +0 -58
  42. package/types/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue.d.ts +0 -76
  43. package/types/components/HuiAMapSearchAddress/index.d.ts +0 -77
  44. package/types/components/HuiAMapSearchAddress/type.d.ts +0 -19
  45. package/types/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue.d.ts +0 -38
  46. package/types/components/HuiAMapSearchAddressDialog/index.d.ts +0 -71
  47. package/types/components/HuiAMapSearchAddressDialog/type.d.ts +0 -17
  48. package/types/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue.d.ts +0 -76
  49. package/types/components/HuiAMapSelectAddress/index.d.ts +0 -77
  50. package/types/components/HuiAMapSelectAddress/type.d.ts +0 -19
  51. package/types/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue.d.ts +0 -38
  52. package/types/components/HuiAMapSelectAddressDialog/index.d.ts +0 -71
  53. package/types/components/HuiAMapSelectAddressDialog/type.d.ts +0 -17
  54. package/types/components/HuiCountDownButton/HuiCountDownButton.vue.d.ts +0 -44
  55. package/types/components/HuiCountDownButton/index.d.ts +0 -76
  56. package/types/components/HuiCountDownButton/type.d.ts +0 -20
  57. package/types/components/HuiDataView/HuiDataView.vue.d.ts +0 -60
  58. package/types/components/HuiDataView/index.d.ts +0 -109
  59. package/types/components/HuiDataView/type.d.ts +0 -49
  60. package/types/components/HuiGridForm/HuiGridForm.vue.d.ts +0 -77
  61. package/types/components/HuiGridForm/HuiGridFormHooks.d.ts +0 -4
  62. package/types/components/HuiGridForm/index.d.ts +0 -175
  63. package/types/components/HuiGridForm/type.d.ts +0 -67
  64. package/types/components/HuiLineEditDialog/HuiLineEditDialog.vue.d.ts +0 -75
  65. package/types/components/HuiLineEditDialog/index.d.ts +0 -173
  66. package/types/components/HuiLineEditDialog/type.d.ts +0 -86
  67. package/types/components/HuiLineEditPopover/HuiLineEditPopover.vue.d.ts +0 -74
  68. package/types/components/HuiLineEditPopover/index.d.ts +0 -133
  69. package/types/components/HuiLineEditPopover/type.d.ts +0 -23
  70. package/types/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue.d.ts +0 -31
  71. package/types/components/HuiPreviewRichTextDialog/index.d.ts +0 -22
  72. package/types/components/HuiPreviewRichTextDialog/type.d.ts +0 -4
  73. package/types/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue.d.ts +0 -53
  74. package/types/components/HuiRegionTreeDialog/index.d.ts +0 -68
  75. package/types/components/HuiRegionTreeDialog/type.d.ts +0 -24
  76. package/types/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue.d.ts +0 -25
  77. package/types/components/HuiRegionTreeSelect/index.d.ts +0 -29
  78. package/types/components/HuiRegionTreeSelect/type.d.ts +0 -6
  79. package/types/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue.d.ts +0 -14
  80. package/types/components/HuiSelectLoadStatus/index.d.ts +0 -33
  81. package/types/components/HuiSelectLoadStatus/type.d.ts +0 -11
  82. package/types/components/HuiShowUrlDialog/HuiShowUrlDialog.vue.d.ts +0 -37
  83. package/types/components/HuiShowUrlDialog/index.d.ts +0 -40
  84. package/types/components/HuiShowUrlDialog/type.d.ts +0 -11
  85. package/types/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue.d.ts +0 -44
  86. package/types/components/HuiStringArrayInputDialog/index.d.ts +0 -67
  87. package/types/components/HuiStringArrayInputDialog/type.d.ts +0 -33
  88. package/types/components/HuiTags/HuiTags.vue.d.ts +0 -37
  89. package/types/components/HuiTags/index.d.ts +0 -36
  90. package/types/components/HuiTagsMore/HuiTagsMore.vue.d.ts +0 -93
  91. package/types/components/HuiTagsMore/index.d.ts +0 -92
  92. package/types/components/HuiTinymce/HuiTinymce.vue.d.ts +0 -62
  93. package/types/components/HuiTinymce/HuiTinymceLinkHooks.d.ts +0 -3
  94. package/types/components/HuiTinymce/HuiTinymceSettingHooks.d.ts +0 -3
  95. package/types/components/HuiTinymce/index.d.ts +0 -66
  96. package/types/components/HuiTinymce/type.d.ts +0 -51
  97. package/types/components/HuiTinymceDialog/HuiTinymceDialog.vue.d.ts +0 -53
  98. package/types/components/HuiTinymceDialog/index.d.ts +0 -78
  99. package/types/components/HuiTinymceDialog/type.d.ts +0 -12
  100. package/types/components/HuiTip/HuiTip.vue.d.ts +0 -22
  101. package/types/components/HuiTip/index.d.ts +0 -99
  102. package/types/components/HuiTip/type.d.ts +0 -14
  103. package/types/components-install-list.d.ts +0 -3328
  104. package/types/components.d.ts +0 -21
  105. package/types/delegate.d.ts +0 -41
  106. package/types/directives/index.d.ts +0 -4
  107. package/types/directives/install-loadmore.d.ts +0 -7
  108. package/types/directives/select-loadmore.d.ts +0 -7
  109. package/types/hooks/index.d.ts +0 -3
  110. package/types/hooks/useHuiDialog/useHuiDialog.d.ts +0 -18
  111. package/types/hooks/useHuiFormDialog/formDialogPropsDef.d.ts +0 -3
  112. package/types/hooks/useHuiFormDialog/type.d.ts +0 -90
  113. package/types/hooks/useHuiFormDialog/useHuiFormDialog.d.ts +0 -32
  114. package/types/install-helper/install.d.ts +0 -18
  115. package/types/install-helper/typescript.d.ts +0 -14
  116. package/types/utils/hui-rules.d.ts +0 -80
  117. package/types/utils/hui-tool/index.d.ts +0 -8
  118. package/types/utils/hui-tool/message-box/index.d.ts +0 -18
  119. package/types/utils/hui-tool/message-box/message-box.vue.d.ts +0 -36
  120. package/types/utils/hui-tool/msg-tool.d.ts +0 -26
  121. package/types/utils/index.d.ts +0 -2
@@ -1,7 +1,7 @@
1
- import { defineComponent as d, openBlock as n, createBlock as c, unref as t, withCtx as a, withDirectives as i, createElementVNode as o, createVNode as r, vShow as s, createElementBlock as m, createCommentVNode as u } from "vue";
2
- import { ElOption as p, ElIcon as f } from "element-plus";
3
- import { Loading as g } from "@element-plus/icons-vue";
4
- const h = { class: "flex flex-center" }, v = { key: 0 }, E = /* @__PURE__ */ d({
1
+ import { defineComponent as r, createBlock as s, openBlock as o, unref as t, withCtx as a, withDirectives as i, createElementBlock as m, createCommentVNode as u, createElementVNode as l, createVNode as d, vShow as c } from "vue";
2
+ import { ElOption as f, ElIcon as g } from "element-plus";
3
+ import { Loading as h } from "@element-plus/icons-vue";
4
+ const v = { class: "flex flex-center" }, x = { key: 0 }, E = /* @__PURE__ */ r({
5
5
  name: "HuiSelectLoadStatus",
6
6
  __name: "HuiSelectLoadStatus",
7
7
  props: {
@@ -9,31 +9,31 @@ const h = { class: "flex flex-center" }, v = { key: 0 }, E = /* @__PURE__ */ d({
9
9
  length: {},
10
10
  leave: {}
11
11
  },
12
- setup(_) {
13
- return (e, l) => (n(), c(t(p), {
12
+ setup(e) {
13
+ return (S, n) => (o(), s(t(f), {
14
14
  disabled: "",
15
15
  value: "",
16
16
  class: "flex flex-center !h-25"
17
17
  }, {
18
18
  default: a(() => [
19
- i(o("div", h, [
20
- r(t(f), {
19
+ i(l("div", v, [
20
+ d(t(g), {
21
21
  class: "mr-10 is-loading",
22
22
  size: "14"
23
23
  }, {
24
24
  default: a(() => [
25
- r(t(g))
25
+ d(t(h))
26
26
  ]),
27
27
  _: 1
28
28
  }),
29
- l[0] || (l[0] = o("span", null, "正在加载更多...", -1))
29
+ n[0] || (n[0] = l("span", null, "正在加载更多...", -1))
30
30
  ], 512), [
31
- [s, e.loading]
31
+ [c, e.loading]
32
32
  ]),
33
- i(o("div", null, "无匹配数据", 512), [
34
- [s, e.length <= 0 && !e.loading]
33
+ i(l("div", null, "无匹配数据", 512), [
34
+ [c, e.length <= 0 && !e.loading]
35
35
  ]),
36
- e.length > 0 && e.leave <= 0 ? (n(), m("div", v, "没有更多了")) : u("", !0)
36
+ e.length > 0 && e.leave <= 0 ? (o(), m("div", x, "没有更多了")) : u("", !0)
37
37
  ]),
38
38
  _: 1
39
39
  }));
@@ -1,8 +1,8 @@
1
- import { defineComponent as s, ref as m, openBlock as f, createBlock as h, unref as r, isRef as c, withCtx as w, createElementVNode as g, normalizeStyle as y, toValue as _ } from "vue";
1
+ import { defineComponent as s, ref as f, createBlock as p, openBlock as h, unref as n, isRef as c, withCtx as w, createElementVNode as g, normalizeStyle as x, toValue as y } from "vue";
2
2
  import { useHuiDialog as U } from "../../hooks/useHuiDialog/useHuiDialog.js";
3
3
  import { ElDialog as V } from "element-plus";
4
- import { testUtils as v } from "@hua5/hua5-utils";
5
- /* empty css */
4
+ import { testUtils as v } from "zjh-utils";
5
+ /* empty css */
6
6
  const D = ["src"], B = /* @__PURE__ */ s({
7
7
  name: "HuiShowUrlDialog",
8
8
  __name: "HuiShowUrlDialog",
@@ -11,34 +11,34 @@ const D = ["src"], B = /* @__PURE__ */ s({
11
11
  width: { default: "920px" },
12
12
  height: { default: "600px" }
13
13
  },
14
- setup(b, { expose: n }) {
15
- const { show: e, payload: t, open: d, close: l } = U(), i = m("");
16
- function p() {
17
- if (v.isEmpty(_(t))) {
18
- l();
14
+ setup(e, { expose: r }) {
15
+ const { show: t, payload: l, open: d, close: o } = U(), i = f("");
16
+ function u() {
17
+ if (v.isEmpty(y(l))) {
18
+ o();
19
19
  return;
20
20
  }
21
- i.value = t.value.url;
21
+ i.value = l.value.url;
22
22
  }
23
- return n({
23
+ return r({
24
24
  open: d,
25
- close: l
26
- }), (o, a) => (f(), h(r(V), {
27
- modelValue: r(e),
28
- "onUpdate:modelValue": a[0] || (a[0] = (u) => c(e) ? e.value = u : null),
29
- title: o.title,
30
- width: o.width,
25
+ close: o
26
+ }), (b, a) => (h(), p(n(V), {
27
+ modelValue: n(t),
28
+ "onUpdate:modelValue": a[0] || (a[0] = (m) => c(t) ? t.value = m : null),
29
+ title: e.title,
30
+ width: e.width,
31
31
  "close-on-click-modal": !1,
32
32
  "modal-append-to-body": !1,
33
33
  "append-to-body": "",
34
- onOpen: p
34
+ onOpen: u
35
35
  }, {
36
36
  default: w(() => [
37
37
  g("iframe", {
38
38
  src: i.value,
39
39
  frameborder: "0",
40
40
  width: "100%",
41
- style: y({ height: o.height })
41
+ style: x({ height: e.height })
42
42
  }, null, 12, D)
43
43
  ]),
44
44
  _: 1
@@ -1,12 +1,12 @@
1
- import { defineComponent as B, ref as D, reactive as c, openBlock as y, createBlock as N, unref as l, isRef as R, withCtx as n, createElementVNode as U, createVNode as r, createTextVNode as I, withKeys as x, createElementBlock as F, toDisplayString as H, createCommentVNode as K, toValue as a } from "vue";
2
- import { ElDialog as M, ElButton as b, ElForm as O, ElFormItem as j, ElInput as z, ElMessage as L } from "element-plus";
1
+ import { defineComponent as A, ref as B, reactive as y, createBlock as D, openBlock as I, unref as t, isRef as N, withCtx as n, createVNode as a, createElementBlock as R, createCommentVNode as U, withKeys as F, toDisplayString as H, createElementVNode as K, createTextVNode as b, toValue as r } from "vue";
2
+ import { ElDialog as M, ElForm as O, ElFormItem as j, ElInput as z, ElButton as g, ElMessage as L } from "element-plus";
3
3
  import { useHuiDialog as T } from "../../hooks/useHuiDialog/useHuiDialog.js";
4
- import { testUtils as _, stringUtils as q } from "@hua5/hua5-utils";
5
- /* empty css */
6
- const G = {
4
+ import { testUtils as q, stringUtils as G } from "zjh-utils";
5
+ /* empty css */
6
+ const J = {
7
7
  key: 0,
8
8
  class: "text-danger ml-50"
9
- }, Y = /* @__PURE__ */ B({
9
+ }, Z = /* @__PURE__ */ A({
10
10
  name: "HuiStringArrayInputDialog",
11
11
  __name: "HuiStringArrayInputDialog",
12
12
  props: {
@@ -17,94 +17,94 @@ const G = {
17
17
  tips: { type: Boolean, default: !0 }
18
18
  },
19
19
  emits: ["onSubmit"],
20
- setup(g, { expose: v, emit: V }) {
21
- const { id: C, show: p, payload: i, confirmLoading: s, open: E, close: u } = T(), f = D(null), k = V, h = g, t = c({
20
+ setup(l, { expose: v, emit: V }) {
21
+ const { id: C, show: f, payload: i, confirmLoading: s, open: E, close: u } = T(), d = B(null), k = V, x = l, o = y({
22
22
  inputInfo: ""
23
- }), w = c({
24
- inputInfo: h.rules || []
23
+ }), h = y({
24
+ inputInfo: x.rules || []
25
25
  });
26
- function S() {
27
- if (_.isEmpty(a(i))) {
26
+ function w() {
27
+ if (q.isEmpty(r(i))) {
28
28
  u();
29
29
  return;
30
30
  }
31
- t.inputInfo = Array.isArray(a(i).inputInfo) ? a(i).inputInfo.join(",") : a(i).inputInfo;
31
+ o.inputInfo = Array.isArray(r(i).inputInfo) ? r(i).inputInfo.join(",") : r(i).inputInfo;
32
32
  }
33
- function m() {
34
- f.value.validate(async (o) => {
35
- if (o) {
33
+ function p() {
34
+ d.value.validate(async (c) => {
35
+ if (c) {
36
36
  s.value = !0;
37
- let e = t.inputInfo;
38
- e = q.trimChar(e.replaceAll(",", ","), ",", "both"), k("onSubmit", a(C), e), u();
37
+ let e = o.inputInfo;
38
+ e = G.trimChar(e.replaceAll(",", ","), ",", "both"), k("onSubmit", r(C), e), u();
39
39
  } else
40
40
  L.error("验证未通过");
41
41
  });
42
42
  }
43
- function A() {
44
- t.inputInfo = "", i.value = {}, s.value = !1, f.value.resetFields();
43
+ function S() {
44
+ o.inputInfo = "", i.value = {}, s.value = !1, d.value.resetFields();
45
45
  }
46
46
  return v({
47
47
  open: E,
48
48
  close: u
49
- }), (o, e) => (y(), N(l(M), {
50
- modelValue: l(p),
51
- "onUpdate:modelValue": e[1] || (e[1] = (d) => R(p) ? p.value = d : null),
52
- title: o.title,
49
+ }), (c, e) => (I(), D(t(M), {
50
+ modelValue: t(f),
51
+ "onUpdate:modelValue": e[1] || (e[1] = (m) => N(f) ? f.value = m : null),
52
+ title: l.title,
53
53
  width: "520px",
54
54
  top: "35vh",
55
55
  "modal-append-to-body": !1,
56
56
  "append-to-body": "",
57
- onOpen: S,
58
- onClose: A
57
+ onOpen: w,
58
+ onClose: S
59
59
  }, {
60
60
  footer: n(() => [
61
- U("div", null, [
62
- r(l(b), { onClick: l(u) }, {
63
- default: n(() => e[2] || (e[2] = [
64
- I("取 消")
65
- ])),
61
+ K("div", null, [
62
+ a(t(g), { onClick: t(u) }, {
63
+ default: n(() => [...e[2] || (e[2] = [
64
+ b("取 消", -1)
65
+ ])]),
66
66
  _: 1
67
67
  }, 8, ["onClick"]),
68
- r(l(b), {
68
+ a(t(g), {
69
69
  type: "primary",
70
70
  class: "w-100",
71
- loading: l(s),
72
- onClick: m
71
+ loading: t(s),
72
+ onClick: p
73
73
  }, {
74
- default: n(() => e[3] || (e[3] = [
75
- I("确 定")
76
- ])),
74
+ default: n(() => [...e[3] || (e[3] = [
75
+ b("确 定", -1)
76
+ ])]),
77
77
  _: 1
78
78
  }, 8, ["loading"])
79
79
  ])
80
80
  ]),
81
81
  default: n(() => [
82
- r(l(O), {
82
+ a(t(O), {
83
83
  ref_key: "formRef",
84
- ref: f,
85
- model: t,
86
- rules: w,
84
+ ref: d,
85
+ model: o,
86
+ rules: h,
87
87
  size: "small",
88
88
  class: "mt-30 font-bold w-100%"
89
89
  }, {
90
90
  default: n(() => [
91
- r(l(j), {
92
- label: o.label,
91
+ a(t(j), {
92
+ label: l.label,
93
93
  prop: "inputInfo",
94
94
  class: "flex w-100%"
95
95
  }, {
96
96
  default: n(() => [
97
- r(l(z), {
98
- modelValue: t.inputInfo,
99
- "onUpdate:modelValue": e[0] || (e[0] = (d) => t.inputInfo = d),
97
+ a(t(z), {
98
+ modelValue: o.inputInfo,
99
+ "onUpdate:modelValue": e[0] || (e[0] = (m) => o.inputInfo = m),
100
100
  modelModifiers: { trim: !0 },
101
- placeholder: o.placeholder,
102
- onKeyup: x(m, ["enter"])
101
+ placeholder: l.placeholder,
102
+ onKeyup: F(p, ["enter"])
103
103
  }, null, 8, ["modelValue", "placeholder"])
104
104
  ]),
105
105
  _: 1
106
106
  }, 8, ["label"]),
107
- o.tips ? (y(), F("div", G, H(o.placeholder), 1)) : K("", !0)
107
+ l.tips ? (I(), R("div", J, H(l.placeholder), 1)) : U("", !0)
108
108
  ]),
109
109
  _: 1
110
110
  }, 8, ["model", "rules"])
@@ -114,5 +114,5 @@ const G = {
114
114
  }
115
115
  });
116
116
  export {
117
- Y as default
117
+ Z as default
118
118
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as s, openBlock as n, createBlock as o, unref as p, normalizeClass as i, withCtx as l, createTextVNode as g, toDisplayString as c } from "vue";
1
+ import { defineComponent as n, createBlock as s, openBlock as i, unref as o, normalizeClass as l, withCtx as c, createTextVNode as p, toDisplayString as g } from "vue";
2
2
  import { ElTag as u } from "element-plus";
3
- const f = /* @__PURE__ */ s({
3
+ const f = /* @__PURE__ */ n({
4
4
  name: "HuiTags",
5
5
  __name: "HuiTags",
6
6
  props: {
@@ -8,16 +8,16 @@ const f = /* @__PURE__ */ s({
8
8
  tagType: { default: "primary" },
9
9
  tagClass: {}
10
10
  },
11
- setup(t) {
12
- const e = t;
13
- if (!((a) => ["primary", "success", "warning", "danger", "info"].includes(a))(e.tagType))
11
+ setup(a) {
12
+ const e = a;
13
+ if (!((t) => ["primary", "success", "warning", "danger", "info"].includes(t))(e.tagType))
14
14
  throw new Error(`Invalid tagType: ${e.tagType}`);
15
- return (a, r) => (n(), o(p(u), {
15
+ return (t, r) => (i(), s(o(u), {
16
16
  type: a.tagType,
17
- class: i(a.tagClass)
17
+ class: l(a.tagClass)
18
18
  }, {
19
- default: l(() => [
20
- g(c(a.text), 1)
19
+ default: c(() => [
20
+ p(g(a.text), 1)
21
21
  ]),
22
22
  _: 1
23
23
  }, 8, ["type", "class"]));
@@ -1,7 +1,7 @@
1
- import { defineComponent as D, ref as h, onMounted as L, openBlock as a, createElementBlock as r, createElementVNode as x, normalizeClass as A, Fragment as y, renderList as o, createBlock as n, unref as c, withCtx as u, mergeProps as f, createTextVNode as d, toDisplayString as g, normalizeStyle as k, createVNode as j, createCommentVNode as B } from "vue";
1
+ import { defineComponent as D, ref as h, onMounted as L, createElementBlock as r, openBlock as a, createElementVNode as x, createVNode as A, normalizeClass as j, Fragment as y, renderList as o, createBlock as n, unref as c, withCtx as u, mergeProps as f, createTextVNode as d, toDisplayString as g, normalizeStyle as k, createCommentVNode as B } from "vue";
2
2
  import { ElTooltip as w, ElTag as b, ElPopover as M } from "element-plus";
3
3
  import T from "../HuiTags/HuiTags.vue.js";
4
- import { testUtils as N } from "@hua5/hua5-utils";
4
+ import { testUtils as N } from "zjh-utils";
5
5
  const O = {
6
6
  key: 0,
7
7
  class: "admin-link text-20"
@@ -74,7 +74,7 @@ const O = {
74
74
  x("div", {
75
75
  ref_key: "tagsDiv",
76
76
  ref: K,
77
- class: A(["tagsDiv whitespace-nowrap", m.value ? "overflow-hidden" : ""])
77
+ class: j(["tagsDiv whitespace-nowrap", m.value ? "overflow-hidden" : ""])
78
78
  }, [
79
79
  e.showTips ? (a(!0), r(y, { key: 0 }, o(e.tagsList, (t, v) => (a(), n(c(w), {
80
80
  key: v,
@@ -87,9 +87,8 @@ const O = {
87
87
  e.isElTag ? (a(), n(c(b), f({
88
88
  key: 0,
89
89
  class: "m-b-5 m-r-5",
90
- type: e.elTagType,
91
- ref_for: !0
92
- }, e.elTagAttr), {
90
+ type: e.elTagType
91
+ }, { ref_for: !0 }, e.elTagAttr), {
93
92
  default: u(() => [
94
93
  d(g(l(t)[e.labelKey]), 1)
95
94
  ]),
@@ -106,9 +105,8 @@ const O = {
106
105
  e.isElTag ? (a(!0), r(y, { key: 0 }, o(e.tagsList, (t) => (a(), n(c(b), f({
107
106
  key: l(t)[e.valueKey],
108
107
  class: "m-b-5 m-r-5",
109
- type: e.elTagType,
110
- ref_for: !0
111
- }, e.elTagAttr), {
108
+ type: e.elTagType
109
+ }, { ref_for: !0 }, e.elTagAttr), {
112
110
  default: u(() => [
113
111
  d(g(l(t)[e.labelKey]), 1)
114
112
  ]),
@@ -121,7 +119,7 @@ const O = {
121
119
  }, null, 8, ["text", "style"]))), 128))
122
120
  ], 64))
123
121
  ], 2),
124
- j(c(M), {
122
+ A(c(M), {
125
123
  placement: "right",
126
124
  title: "",
127
125
  width: 130,
@@ -143,9 +141,8 @@ const O = {
143
141
  e.isElTag ? (a(), n(c(b), f({
144
142
  key: 0,
145
143
  class: "m-b-5 m-r-5",
146
- type: e.elTagType,
147
- ref_for: !0
148
- }, e.elTagAttr), {
144
+ type: e.elTagType
145
+ }, { ref_for: !0 }, e.elTagAttr), {
149
146
  default: u(() => [
150
147
  d(g(l(t)[e.labelKey]), 1)
151
148
  ]),
@@ -162,9 +159,8 @@ const O = {
162
159
  e.isElTag ? (a(!0), r(y, { key: 0 }, o(e.tagsList, (t) => (a(), n(c(b), f({
163
160
  key: l(t)[e.valueKey],
164
161
  class: "m-b-5 m-r-5",
165
- type: e.elTagType,
166
- ref_for: !0
167
- }, e.elTagAttr), {
162
+ type: e.elTagType
163
+ }, { ref_for: !0 }, e.elTagAttr), {
168
164
  default: u(() => [
169
165
  d(g(l(t)[e.labelKey]), 1)
170
166
  ]),
@@ -1,11 +1,11 @@
1
- import { defineComponent as a, mergeModels as p, useModel as s, openBlock as c, createElementBlock as f, normalizeStyle as k, createVNode as y, unref as n } from "vue";
2
- import V from "@tinymce/tinymce-vue";
3
- import { HuiTinymceLinkHooks as v } from "./HuiTinymceLinkHooks.js";
4
- import { HuiTinymceSettingHooks as H } from "./HuiTinymceSettingHooks.js";
1
+ import { defineComponent as a, mergeModels as r, useModel as p, createElementBlock as s, openBlock as c, normalizeStyle as f, createVNode as k, unref as n } from "vue";
2
+ import y from "@tinymce/tinymce-vue";
3
+ import { HuiTinymceLinkHooks as V } from "./HuiTinymceLinkHooks.js";
4
+ import { HuiTinymceSettingHooks as v } from "./HuiTinymceSettingHooks.js";
5
5
  const T = /* @__PURE__ */ a({
6
6
  name: "HuiTinymce",
7
7
  __name: "HuiTinymce",
8
- props: /* @__PURE__ */ p({
8
+ props: /* @__PURE__ */ r({
9
9
  width: { default: "100%" },
10
10
  height: { default: "80vh" },
11
11
  linkAttribute: { default: () => [
@@ -19,13 +19,13 @@ const T = /* @__PURE__ */ a({
19
19
  }),
20
20
  emits: ["update:modelValue"],
21
21
  setup(e) {
22
- const t = e, { linkExpandAttributeStr: l, linkSetup: m } = v({ props: t }), { setting: u } = H({ props: t, linkSetup: m, linkExpandAttributeStr: l }), i = s(e, "modelValue");
23
- return (d, o) => (c(), f("div", {
24
- style: k({ width: d.width })
22
+ const t = e, { linkExpandAttributeStr: l, linkSetup: m } = V({ props: t }), { setting: u } = v({ props: t, linkSetup: m, linkExpandAttributeStr: l }), i = p(e, "modelValue");
23
+ return (H, o) => (c(), s("div", {
24
+ style: f({ width: e.width })
25
25
  }, [
26
- y(n(V), {
26
+ k(n(y), {
27
27
  modelValue: i.value,
28
- "onUpdate:modelValue": o[0] || (o[0] = (r) => i.value = r),
28
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => i.value = d),
29
29
  init: n(u),
30
30
  "api-key": "no-api-key"
31
31
  }, null, 8, ["modelValue", "init"])
@@ -1,9 +1,9 @@
1
- import { defineComponent as H, ref as c, openBlock as _, createBlock as A, unref as i, isRef as E, withCtx as r, createElementVNode as P, createVNode as d, createTextVNode as g, toDisplayString as S, toValue as a } from "vue";
2
- import { useHuiDialog as T } from "../../hooks/useHuiDialog/useHuiDialog.js";
3
- import { ElDialog as N, ElButton as v, ElMessage as z } from "element-plus";
4
- import "@hua5/hua5-utils";
5
- /* empty css */
6
- import I from "../HuiTinymce/HuiTinymce.vue.js";
1
+ import { defineComponent as H, ref as g, createBlock as A, openBlock as E, unref as o, isRef as P, withCtx as a, createVNode as p, createElementVNode as S, createTextVNode as v, toDisplayString as T, toValue as u } from "vue";
2
+ import { useHuiDialog as N } from "../../hooks/useHuiDialog/useHuiDialog.js";
3
+ import { ElDialog as z, ElButton as h, ElMessage as I } from "element-plus";
4
+ import "zjh-utils";
5
+ /* empty css */
6
+ import O from "../HuiTinymce/HuiTinymce.vue.js";
7
7
  /* empty css */
8
8
  const q = /* @__PURE__ */ H({
9
9
  name: "HuiTinymceDialog",
@@ -18,73 +18,73 @@ const q = /* @__PURE__ */ H({
18
18
  permission: { default: () => ({}) }
19
19
  },
20
20
  emits: ["onSubmit"],
21
- setup(h, { expose: b, emit: k }) {
22
- const { permission: w } = h, y = k, { show: u, open: V, close: s, payload: l, confirmLoading: m } = T(), n = c(""), p = c("提交");
21
+ setup(r, { expose: b, emit: k }) {
22
+ const { permission: w } = r, y = k, { show: m, open: V, close: s, payload: l, confirmLoading: d } = N(), n = g(""), f = g("提交");
23
+ function x() {
24
+ var i, e;
25
+ n.value = ((i = u(l)) == null ? void 0 : i.content) || "", f.value = (e = u(l)) != null && e.row ? "提交" : "保存";
26
+ }
23
27
  function C() {
24
- var t, e;
25
- n.value = ((t = a(l)) == null ? void 0 : t.content) || "", p.value = (e = a(l)) != null && e.row ? "提交" : "保存";
28
+ n.value = "", l.value = {}, d.value = !1;
26
29
  }
27
30
  function D() {
28
- n.value = "", l.value = {}, m.value = !1;
29
- }
30
- function x() {
31
- const { code: t, tip: e, checkRight: o } = w;
32
- if (o)
33
- return o();
34
- if (!t) return !0;
35
- const f = window.huiDelegate.getBtnPermission()[t] ?? !1;
36
- return f || z.error(e || "暂无权限,请联系管理员!"), f;
31
+ const { code: i, tip: e, checkRight: t } = w;
32
+ if (t)
33
+ return t();
34
+ if (!i) return !0;
35
+ const c = window.huiDelegate.getBtnPermission()[i] ?? !1;
36
+ return c || I.error(e || "暂无权限,请联系管理员!"), c;
37
37
  }
38
38
  function B() {
39
- var e, o;
40
- x() && (m.value = !0, y("onSubmit", n.value, (e = a(l)) == null ? void 0 : e.row, (o = a(l)) == null ? void 0 : o.field), s());
39
+ var e, t;
40
+ D() && (d.value = !0, y("onSubmit", n.value, (e = u(l)) == null ? void 0 : e.row, (t = u(l)) == null ? void 0 : t.field), s());
41
41
  }
42
42
  return b({
43
43
  open: V,
44
44
  close: s
45
- }), (t, e) => (_(), A(i(N), {
46
- modelValue: i(u),
47
- "onUpdate:modelValue": e[1] || (e[1] = (o) => E(u) ? u.value = o : null),
45
+ }), (i, e) => (E(), A(o(z), {
46
+ modelValue: o(m),
47
+ "onUpdate:modelValue": e[1] || (e[1] = (t) => P(m) ? m.value = t : null),
48
48
  title: "内容编辑",
49
- width: t.width,
49
+ width: r.width,
50
50
  top: "5vh",
51
51
  "modal-append-to-body": !1,
52
52
  "append-to-body": "",
53
- onOpen: C,
54
- onClose: D
53
+ onOpen: x,
54
+ onClose: C
55
55
  }, {
56
- footer: r(() => [
57
- P("div", null, [
58
- d(i(v), {
56
+ footer: a(() => [
57
+ S("div", null, [
58
+ p(o(h), {
59
59
  size: "large",
60
60
  class: "!c-primary !border !border-1 !border-[theme(colors.primary)] !px-16 !text-14",
61
- onClick: i(s)
61
+ onClick: o(s)
62
62
  }, {
63
- default: r(() => e[2] || (e[2] = [
64
- g("取 消")
65
- ])),
63
+ default: a(() => [...e[2] || (e[2] = [
64
+ v("取 消", -1)
65
+ ])]),
66
66
  _: 1
67
67
  }, 8, ["onClick"]),
68
- d(i(v), {
68
+ p(o(h), {
69
69
  size: "large",
70
70
  type: "primary",
71
- loading: i(m),
71
+ loading: o(d),
72
72
  class: "w-120 !ml-20",
73
73
  onClick: B
74
74
  }, {
75
- default: r(() => [
76
- g(S(p.value), 1)
75
+ default: a(() => [
76
+ v(T(f.value), 1)
77
77
  ]),
78
78
  _: 1
79
79
  }, 8, ["loading"])
80
80
  ])
81
81
  ]),
82
- default: r(() => [
83
- d(I, {
82
+ default: a(() => [
83
+ p(O, {
84
84
  modelValue: n.value,
85
- "onUpdate:modelValue": e[0] || (e[0] = (o) => n.value = o),
86
- height: t.height,
87
- "link-attribute": t.linkAttribute
85
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => n.value = t),
86
+ height: r.height,
87
+ "link-attribute": r.linkAttribute
88
88
  }, null, 8, ["modelValue", "height", "link-attribute"])
89
89
  ]),
90
90
  _: 1
@@ -1,6 +1,6 @@
1
- import { defineComponent as r, openBlock as t, createBlock as f, unref as p, mergeProps as m, withCtx as o, renderSlot as l, createElementBlock as s, normalizeClass as n, toDisplayString as u, createElementVNode as a } from "vue";
2
- import { ElTooltip as d } from "element-plus";
3
- const C = ["innerHTML"], k = /* @__PURE__ */ r({
1
+ import { defineComponent as m, createBlock as r, openBlock as l, unref as u, mergeProps as d, withCtx as c, createElementVNode as a, normalizeClass as n, renderSlot as i, createElementBlock as o, toDisplayString as C } from "vue";
2
+ import { ElTooltip as g } from "element-plus";
3
+ const T = ["innerHTML"], H = /* @__PURE__ */ m({
4
4
  name: "HuiTip",
5
5
  __name: "HuiTip",
6
6
  props: {
@@ -12,31 +12,31 @@ const C = ["innerHTML"], k = /* @__PURE__ */ r({
12
12
  contentClass: {},
13
13
  tipAttr: { default: () => ({}) }
14
14
  },
15
- setup(g) {
16
- function i(e) {
17
- return e ? (e = e.trim(), /^<([a-z1-6]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)$/i.test(e)) : !1;
15
+ setup(e) {
16
+ function s(t) {
17
+ return t ? (t = t.trim(), /^<([a-z1-6]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)$/i.test(t)) : !1;
18
18
  }
19
- return (e, c) => (t(), f(p(d), m({
19
+ return (t, f) => (l(), r(u(g), d({
20
20
  effect: e.effect,
21
21
  placement: e.placement
22
22
  }, e.tipAttr), {
23
- content: o(() => [
24
- l(e.$slots, "default", {}, () => [
25
- i(e.content) ? (t(), s("div", {
23
+ content: c(() => [
24
+ i(t.$slots, "default", {}, () => [
25
+ s(e.content) ? (l(), o("div", {
26
26
  key: 0,
27
27
  class: n(e.contentClass),
28
28
  innerHTML: e.content
29
- }, null, 10, C)) : (t(), s("div", {
29
+ }, null, 10, T)) : (l(), o("div", {
30
30
  key: 1,
31
31
  class: n(e.contentClass)
32
- }, u(e.content), 3))
32
+ }, C(e.content), 3))
33
33
  ])
34
34
  ]),
35
- default: o(() => [
35
+ default: c(() => [
36
36
  a("div", {
37
37
  class: n(["ml-3", e.rclass])
38
38
  }, [
39
- l(e.$slots, "icon", {}, () => [
39
+ i(t.$slots, "icon", {}, () => [
40
40
  a("i", {
41
41
  class: n(["icon-com i-com-wenhao-plain c-info", e.iconClass])
42
42
  }, null, 2)
@@ -48,5 +48,5 @@ const C = ["innerHTML"], k = /* @__PURE__ */ r({
48
48
  }
49
49
  });
50
50
  export {
51
- k as default
51
+ H as default
52
52
  };
@@ -1,6 +1,6 @@
1
1
  import { getCurrentInstance as $, ref as f, computed as p, toValue as r } from "vue";
2
2
  import { HuiTool as v } from "../../utils/hui-tool/index.js";
3
- import { objectUtils as q } from "@hua5/hua5-utils";
3
+ import { objectUtils as q } from "zjh-utils";
4
4
  import { ElMessage as z } from "element-plus";
5
5
  const W = function({
6
6
  formModel: w = {},