@pubinfo/core 2.0.0-beta.27 → 2.0.0-beta.29

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 (64) hide show
  1. package/dist/{AppSetting-8APd2n5W.js → AppSetting-CVExa3_K.js} +21 -20
  2. package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-xHHNH-Do.js → HCheckList.vue_vue_type_script_setup_true_lang-B3wESRn7.js} +2 -2
  3. package/dist/{PreferencesContent-B6v1Y85P.js → PreferencesContent-p9KS2Pve.js} +46 -45
  4. package/dist/{SettingBreadcrumb-DRbL0ad_.js → SettingBreadcrumb-DwvQtev2.js} +2 -2
  5. package/dist/{SettingCopyright-BQF1UDPx.js → SettingCopyright-Wb3hkKZZ.js} +1 -1
  6. package/dist/{SettingEnableTransition-COQvH_bE.js → SettingEnableTransition-DT23T8dO.js} +1 -1
  7. package/dist/{SettingHome-BL-JRz6C.js → SettingHome-C0K6wkyt.js} +1 -1
  8. package/dist/{SettingMenu-CL08Xnqj.js → SettingMenu-CCKj46sg.js} +2 -2
  9. package/dist/{SettingMode-CHFQfbwC.js → SettingMode-pwpzZcxj.js} +1 -1
  10. package/dist/{SettingNavSearch-D3EfJLm4.js → SettingNavSearch-zoiP1hL2.js} +1 -1
  11. package/dist/{SettingOther-D8vWJBqB.js → SettingOther-OIZZcjfo.js} +1 -1
  12. package/dist/{SettingPage-C6834qKt.js → SettingPage-CyljqOiV.js} +1 -1
  13. package/dist/{SettingTabbar-C4Nk7PaM.js → SettingTabbar-DCQai4_R.js} +2 -2
  14. package/dist/{SettingThemes-CAiwgt41.js → SettingThemes-DJIaIqy1.js} +2 -2
  15. package/dist/{SettingToolbar-Bue6Bsao.js → SettingToolbar-Dvv11piV.js} +1 -1
  16. package/dist/{SettingTopbar-CklZW6nz.js → SettingTopbar-CMpP98WU.js} +2 -2
  17. package/dist/{SettingWidthMode-Ba5CjpXS.js → SettingWidthMode-DVPAA6Xs.js} +1 -1
  18. package/dist/{TopThinMode-BKgHAbKj.js → TopThinMode-D8rMfa-C.js} +1 -1
  19. package/dist/{_...all_-CiLs5zE0.js → _...all_-6l5FWUkL.js} +1 -1
  20. package/dist/{colors-ehvAxkYC.js → colors-DiWJrScm.js} +1 -1
  21. package/dist/components/PubinfoIcon/register.d.ts +9 -0
  22. package/dist/index-Be7jJtXg.js +232 -0
  23. package/dist/index-BmMbAV1Y.js +141 -0
  24. package/dist/{index-CqQ-P_1q.js → index-CfasTv4x.js} +8 -8
  25. package/dist/{index-CAjh59MN.js → index-Ckgil96Y.js} +30 -30
  26. package/dist/index-CyyndQxa.js +13107 -0
  27. package/dist/{index-hjeR7S9d.js → index-De_ME_Ws.js} +2 -2
  28. package/dist/{index-C5TqLQ-T.js → index-Md7zV10q.js} +1 -1
  29. package/dist/{index-BK4luc55.js → index-bsi-FZDt.js} +11 -9
  30. package/dist/{index-BjAXx4BA.js → index-lv9zqWqR.js} +3 -3
  31. package/dist/index.js +33 -32
  32. package/dist/{toolbar-collapse-BhNN4H7Y.js → index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js} +489 -503
  33. package/dist/interface.d.ts +2 -0
  34. package/dist/layout/Layout.vue.d.ts +2 -2
  35. package/dist/{menu-D3oKigWX.js → menu-CC5544p-.js} +3202 -3184
  36. package/dist/pages/system/change-organization/index.vue.d.ts +1 -1
  37. package/dist/pages/system/change-password/index.vue.d.ts +1 -1
  38. package/dist/{pick-Cku6R96i.js → pick-CJo2YiT-.js} +1 -1
  39. package/dist/request.js +399 -390
  40. package/dist/route/routes.d.ts +6 -4
  41. package/dist/style.css +2 -2
  42. package/dist/utils/index.d.ts +6 -0
  43. package/package.json +26 -26
  44. package/src/api/modules/configData/xitongpeizhifuwu.ts +3 -3
  45. package/src/components/PubinfoApp/index.vue +1 -1
  46. package/src/components/PubinfoIcon/index.vue +3 -1
  47. package/src/components/PubinfoIcon/register.ts +19 -0
  48. package/src/components/PubinfoProvider/index.ts +1 -2
  49. package/src/create.ts +7 -0
  50. package/src/interface.ts +2 -0
  51. package/src/layout/Layout.vue +50 -59
  52. package/src/layout/components/Content/index.vue +34 -13
  53. package/src/layout/components/Sidebar/MainSidebar.vue +4 -7
  54. package/src/layout/composables/useMainPage.ts +1 -1
  55. package/src/layout/provider.ts +7 -1
  56. package/src/pages/system/change-organization/index.vue +65 -73
  57. package/src/pages/system/change-password/index.vue +36 -44
  58. package/src/route/routes.ts +26 -8
  59. package/src/stores/modules/route.ts +10 -2
  60. package/src/utils/index.ts +14 -0
  61. package/types/vue-router.d.ts +3 -1
  62. package/dist/index-64V9RiCt.js +0 -240
  63. package/dist/index-BLvVzLOl.js +0 -147
  64. package/dist/index-DTsHMiQx.js +0 -12711
@@ -0,0 +1,232 @@
1
+ import { defineComponent as y, mergeModels as V, useModel as F, reactive as T, ref as P, createElementBlock as h, openBlock as N, createVNode as t, unref as a, withCtx as u, createTextVNode as k, nextTick as j, computed as z, createElementVNode as p, isRef as v } from "vue";
2
+ import { bz as S, bA as W, u as B, aR as M, v as $ } from "./menu-CC5544p-.js";
3
+ import "pinia-plugin-persistedstate";
4
+ import { useRouter as q, useRoute as A } from "vue-router";
5
+ import { _ as D } from "./index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js";
6
+ import { P as I } from "./index-CfasTv4x.js";
7
+ import { J, _ as O, M as X } from "./index-De_ME_Ws.js";
8
+ import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ var H = "Expected a function";
10
+ function K(n, l, s) {
11
+ if (typeof n != "function")
12
+ throw new TypeError(H);
13
+ return setTimeout(function() {
14
+ n.apply(void 0, s);
15
+ }, l);
16
+ }
17
+ var L = S(function(n, l, s) {
18
+ return K(n, W(l) || 0, s);
19
+ });
20
+ const Q = /* @__PURE__ */ y({
21
+ name: "ChangePasswordForm",
22
+ __name: "index",
23
+ props: /* @__PURE__ */ V({
24
+ token: {}
25
+ }, {
26
+ validate: { type: Boolean, default: !1 },
27
+ validateModifiers: {}
28
+ }),
29
+ emits: ["update:validate"],
30
+ setup(n, { expose: l }) {
31
+ const s = n, g = F(n, "validate"), o = T({
32
+ password: "",
33
+ newPassword: "",
34
+ repeatNewPassword: ""
35
+ }), d = q(), m = P(), r = B();
36
+ async function i(w, e) {
37
+ if (!e)
38
+ return Promise.reject(new Error("请再次输入新密码"));
39
+ if (e !== o.newPassword)
40
+ return Promise.reject(new Error("两次输入的密码不匹配,请确保新密码在两个输入框中完全相同"));
41
+ }
42
+ async function E(w, e) {
43
+ if (await j(), !e)
44
+ return Promise.reject(new Error("请再次输入新密码"));
45
+ if (!g.value)
46
+ return Promise.reject(new Error("密码安全校验不通过"));
47
+ }
48
+ const C = {
49
+ password: [{
50
+ required: !0,
51
+ whitespace: !0,
52
+ message: "请输入密码"
53
+ }],
54
+ newPassword: [{ validator: E }],
55
+ repeatNewPassword: [{ validator: i }]
56
+ };
57
+ async function R() {
58
+ var w;
59
+ try {
60
+ await ((w = m.value) == null ? void 0 : w.validate()), await r.changeUserPassword({
61
+ oldPassword: o.password,
62
+ newPassword: o.newPassword,
63
+ token: s.token
64
+ }), $.success("密码修改成功"), L(() => {
65
+ x();
66
+ }, 800);
67
+ } catch {
68
+ }
69
+ }
70
+ function x() {
71
+ d.go(-1);
72
+ }
73
+ return l({
74
+ formState: o
75
+ }), (w, e) => {
76
+ const _ = X, f = O, b = M, U = J;
77
+ return N(), h("div", null, [
78
+ t(U, {
79
+ ref_key: "changePasswordForm",
80
+ ref: m,
81
+ model: a(o),
82
+ rules: C
83
+ }, {
84
+ default: u(() => [
85
+ t(f, { name: "password" }, {
86
+ default: u(() => [
87
+ t(_, {
88
+ value: a(o).password,
89
+ "onUpdate:value": e[0] || (e[0] = (c) => a(o).password = c),
90
+ "allow-clear": "",
91
+ size: "large",
92
+ placeholder: "请输入旧密码",
93
+ "visibility-toggle": ""
94
+ }, null, 8, ["value"])
95
+ ]),
96
+ _: 1
97
+ }),
98
+ t(f, { name: "newPassword" }, {
99
+ default: u(() => [
100
+ t(_, {
101
+ value: a(o).newPassword,
102
+ "onUpdate:value": e[1] || (e[1] = (c) => a(o).newPassword = c),
103
+ "allow-clear": "",
104
+ size: "large",
105
+ placeholder: "请输入新密码",
106
+ "visibility-toggle": ""
107
+ }, null, 8, ["value"])
108
+ ]),
109
+ _: 1
110
+ }),
111
+ t(f, { name: "repeatNewPassword" }, {
112
+ default: u(() => [
113
+ t(_, {
114
+ value: a(o).repeatNewPassword,
115
+ "onUpdate:value": e[2] || (e[2] = (c) => a(o).repeatNewPassword = c),
116
+ "allow-clear": "",
117
+ size: "large",
118
+ placeholder: "请再次输入新密码",
119
+ "visibility-toggle": ""
120
+ }, null, 8, ["value"])
121
+ ]),
122
+ _: 1
123
+ }),
124
+ t(f, null, {
125
+ default: u(() => [
126
+ t(b, {
127
+ type: "primary",
128
+ block: "",
129
+ "h-48px": "",
130
+ "mb-10px": "",
131
+ onClick: R
132
+ }, {
133
+ default: u(() => e[3] || (e[3] = [
134
+ k(" 修改密码 ")
135
+ ])),
136
+ _: 1,
137
+ __: [3]
138
+ }),
139
+ t(b, {
140
+ block: "",
141
+ "h-48px": "",
142
+ onClick: x
143
+ }, {
144
+ default: u(() => e[4] || (e[4] = [
145
+ k(" 返回 ")
146
+ ])),
147
+ _: 1,
148
+ __: [4]
149
+ })
150
+ ]),
151
+ _: 1
152
+ })
153
+ ]),
154
+ _: 1
155
+ }, 8, ["model"])
156
+ ]);
157
+ };
158
+ }
159
+ }), Y = { class: "password-bg" }, Z = {
160
+ flex: "~ auto center",
161
+ "w-full": "",
162
+ "h-0": ""
163
+ }, ee = {
164
+ "h-full": "",
165
+ flex: "~",
166
+ "justify-between": "",
167
+ "items-center": ""
168
+ }, oe = {
169
+ "w-650px": "",
170
+ "mr-20px": ""
171
+ }, te = { class: "change-password-form" }, ae = {
172
+ flex: "~ col center",
173
+ "mb-40px": ""
174
+ }, re = {
175
+ "w-88px": "",
176
+ "h-88px": "",
177
+ flex: "~ center",
178
+ rounded: "50%",
179
+ "mb-15px": ""
180
+ }, se = /* @__PURE__ */ y({
181
+ name: "ChangePassword",
182
+ __name: "index",
183
+ setup(n) {
184
+ const l = P(), s = z({
185
+ get() {
186
+ var m;
187
+ return (m = l.value) == null ? void 0 : m.formState.newPassword;
188
+ },
189
+ set() {
190
+ }
191
+ }), o = A().params.changePassWordToken, d = P(!1);
192
+ return (m, r) => (N(), h("div", Y, [
193
+ p("main", Z, [
194
+ p("div", ee, [
195
+ p("div", oe, [
196
+ t(a(I), {
197
+ modelValue: a(s),
198
+ "onUpdate:modelValue": r[0] || (r[0] = (i) => v(s) ? s.value = i : null),
199
+ validate: a(d),
200
+ "onUpdate:validate": r[1] || (r[1] = (i) => v(d) ? d.value = i : null)
201
+ }, null, 8, ["modelValue", "validate"])
202
+ ]),
203
+ p("div", te, [
204
+ p("div", ae, [
205
+ p("div", re, [
206
+ t(a(D), {
207
+ name: "mima",
208
+ color: "transparent",
209
+ size: 88
210
+ })
211
+ ]),
212
+ r[3] || (r[3] = p("span", {
213
+ text: "18px",
214
+ font: "bold"
215
+ }, " 更改密码 ", -1))
216
+ ]),
217
+ t(Q, {
218
+ ref_key: "ChangePassWordForm",
219
+ ref: l,
220
+ validate: a(d),
221
+ "onUpdate:validate": r[2] || (r[2] = (i) => v(d) ? d.value = i : null),
222
+ token: a(o)
223
+ }, null, 8, ["validate", "token"])
224
+ ])
225
+ ])
226
+ ])
227
+ ]));
228
+ }
229
+ }), ce = /* @__PURE__ */ G(se, [["__scopeId", "data-v-023a7e03"]]);
230
+ export {
231
+ ce as default
232
+ };
@@ -0,0 +1,141 @@
1
+ import { defineComponent as w, toRaw as z, computed as B, ref as N, createElementBlock as _, openBlock as n, createElementVNode as e, Fragment as O, renderList as V, unref as r, normalizeClass as E, createVNode as l, createBlock as x, createCommentVNode as v, toDisplayString as L, withCtx as c, createTextVNode as u } from "vue";
2
+ import { u as R, aR as S, v as m } from "./menu-CC5544p-.js";
3
+ import "pinia-plugin-persistedstate";
4
+ import { useRouter as T } from "vue-router";
5
+ import { _ as k } from "./index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js";
6
+ import { T as j } from "./index-Ckgil96Y.js";
7
+ import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const $ = { class: "change-org" }, D = {
9
+ "w-full": "",
10
+ "h-full": "",
11
+ flex: "~",
12
+ "justify-center": ""
13
+ }, F = {
14
+ "w-620px": "",
15
+ "pt-20vh": ""
16
+ }, U = ["onClick"], q = {
17
+ flex: "~",
18
+ "h-full": ""
19
+ }, G = {
20
+ flex: "~ col",
21
+ "h-full": "",
22
+ "justify-center": "",
23
+ ml: "18px"
24
+ }, H = {
25
+ text: "20px black dark:[#86909C]",
26
+ flex: "~",
27
+ "items-center": ""
28
+ }, J = { "mr-10px": "" }, K = /* @__PURE__ */ w({
29
+ name: "ChangeOrganization",
30
+ __name: "index",
31
+ setup(M) {
32
+ const s = R(), h = T(), b = z(s.user.orgList), f = B(() => b.map((o) => ({
33
+ orgId: o.orgId,
34
+ label: o.orgName,
35
+ ...o
36
+ }))), a = N(-1);
37
+ function C(t) {
38
+ a.value = t;
39
+ }
40
+ function y() {
41
+ h.go(-1);
42
+ }
43
+ async function I() {
44
+ const t = f.value[a.value], o = t == null ? void 0 : t.orgId;
45
+ o ? o === s.user.orgId ? m.error("请避免切换到当前已选组织") : (await s.changeOrg(o), m.success("组织切换成功")) : m.error("请选择要切换的组织");
46
+ }
47
+ return (t, o) => {
48
+ const p = j, g = S;
49
+ return n(), _("div", $, [
50
+ e("div", D, [
51
+ e("div", F, [
52
+ o[4] || (o[4] = e("div", {
53
+ text: "30px",
54
+ font: "bold",
55
+ "mb-40px": "",
56
+ flex: "~",
57
+ items: "center"
58
+ }, " 请选择组织 ", -1)),
59
+ (n(!0), _(O, null, V(r(f), (d, i) => (n(), _("div", {
60
+ key: i,
61
+ onClick: (P) => C(i)
62
+ }, [
63
+ e("div", {
64
+ class: E(["org-item", { active: i === r(a) }])
65
+ }, [
66
+ e("div", q, [
67
+ l(r(k), {
68
+ name: "change-org",
69
+ size: "48px"
70
+ }),
71
+ e("div", G, [
72
+ e("div", H, [
73
+ e("span", J, L(d.label), 1),
74
+ r(s).user.orgId === d.orgId ? (n(), x(p, {
75
+ key: 0,
76
+ color: "blue"
77
+ }, {
78
+ default: c(() => o[0] || (o[0] = [
79
+ u(" 当前使用组织 ")
80
+ ])),
81
+ _: 1,
82
+ __: [0]
83
+ })) : v("", !0),
84
+ d.main ? (n(), x(p, {
85
+ key: 1,
86
+ color: "red"
87
+ }, {
88
+ default: c(() => o[1] || (o[1] = [
89
+ u(" 主组织 ")
90
+ ])),
91
+ _: 1,
92
+ __: [1]
93
+ })) : v("", !0)
94
+ ])
95
+ ])
96
+ ]),
97
+ e("div", null, [
98
+ l(r(k), {
99
+ class: "arrow",
100
+ name: "i-iconamoon-arrow-right-6-circle-duotone",
101
+ color: i === r(a) ? "#1677ff" : "#8E97A3",
102
+ size: "22px"
103
+ }, null, 8, ["color"])
104
+ ])
105
+ ], 2)
106
+ ], 8, U))), 128)),
107
+ e("div", null, [
108
+ l(g, {
109
+ type: "primary",
110
+ block: "",
111
+ "h-40px": "",
112
+ "mb-15px": "",
113
+ onClick: I
114
+ }, {
115
+ default: c(() => o[2] || (o[2] = [
116
+ u(" 确定 ")
117
+ ])),
118
+ _: 1,
119
+ __: [2]
120
+ }),
121
+ l(g, {
122
+ block: "",
123
+ "h-40px": "",
124
+ onClick: y
125
+ }, {
126
+ default: c(() => o[3] || (o[3] = [
127
+ u(" 返回 ")
128
+ ])),
129
+ _: 1,
130
+ __: [3]
131
+ })
132
+ ])
133
+ ])
134
+ ])
135
+ ]);
136
+ };
137
+ }
138
+ }), to = /* @__PURE__ */ A(K, [["__scopeId", "data-v-9b12754a"]]);
139
+ export {
140
+ to as default
141
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as w, computed as v, createVNode as z, createElementBlock as h, openBlock as l, normalizeClass as S, createElementVNode as s, createBlock as x, unref as C, toDisplayString as D, mergeModels as G, useModel as _, watchEffect as H, createCommentVNode as y, Fragment as $, renderList as M } from "vue";
2
- import { A as T, j as W, z as P } from "./toolbar-collapse-BhNN4H7Y.js";
2
+ import { A as T, a as W, z as P } from "./index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js";
3
3
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import { aw as L, au as R, a6 as b, as as N, b6 as j, az as q, ag as F, a9 as B, bw as Z } from "./menu-D3oKigWX.js";
4
+ import { ax as L, av as R, a7 as b, at as N, b7 as q, aA as j, ah as F, aa as B, bx as Z } from "./menu-CC5544p-.js";
5
5
  const O = (e) => {
6
6
  const {
7
7
  componentCls: t,
@@ -160,18 +160,18 @@ const O = (e) => {
160
160
  const {
161
161
  prefixCls: a,
162
162
  direction: c
163
- } = q("divider", e), [o, r] = X(a), u = v(() => e.orientation === "left" && e.orientationMargin != null), n = v(() => e.orientation === "right" && e.orientationMargin != null), m = v(() => {
163
+ } = j("divider", e), [o, r] = X(a), u = v(() => e.orientation === "left" && e.orientationMargin != null), n = v(() => e.orientation === "right" && e.orientationMargin != null), m = v(() => {
164
164
  const {
165
165
  type: g,
166
166
  dashed: p,
167
- plain: A
167
+ plain: E
168
168
  } = e, f = a.value;
169
169
  return {
170
170
  [f]: !0,
171
171
  [r.value]: !!r.value,
172
172
  [`${f}-${g}`]: !0,
173
173
  [`${f}-dashed`]: !!p,
174
- [`${f}-plain`]: !!A,
174
+ [`${f}-plain`]: !!E,
175
175
  [`${f}-rtl`]: c.value === "rtl",
176
176
  [`${f}-no-default-orientation-margin-left`]: u.value,
177
177
  [`${f}-no-default-orientation-margin-right`]: n.value
@@ -183,12 +183,12 @@ const O = (e) => {
183
183
  }), n.value && {
184
184
  marginRight: g
185
185
  });
186
- }), E = v(() => e.orientation.length > 0 ? "-" + e.orientation : e.orientation);
186
+ }), A = v(() => e.orientation.length > 0 ? "-" + e.orientation : e.orientation);
187
187
  return () => {
188
188
  var g;
189
189
  const p = F((g = d.default) === null || g === void 0 ? void 0 : g.call(d));
190
190
  return o(z("div", B(B({}, i), {}, {
191
- class: [m.value, p.length ? `${a.value}-with-text ${a.value}-with-text${E.value}` : "", i.class],
191
+ class: [m.value, p.length ? `${a.value}-with-text ${a.value}-with-text${A.value}` : "", i.class],
192
192
  role: "separator"
193
193
  }), [p.length ? z("span", {
194
194
  class: `${a.value}-inner-text`,
@@ -196,7 +196,7 @@ const O = (e) => {
196
196
  }, [p]) : null]));
197
197
  };
198
198
  }
199
- }), K = j(J), Q = { class: "icon" }, U = /* @__PURE__ */ w({
199
+ }), K = q(J), Q = { class: "icon" }, U = /* @__PURE__ */ w({
200
200
  __name: "rule",
201
201
  props: {
202
202
  message: {},
@@ -1,7 +1,7 @@
1
- import { aw as L, au as O, a6 as B, as as R, bY as j, az as z, aa as F, a9 as b, a8 as P, aN as X, aJ as U, bn as V, ap as J } from "./menu-D3oKigWX.js";
2
- import { defineComponent as w, computed as m, createVNode as d, shallowRef as Y, watchEffect as q, Fragment as G } from "vue";
3
- import { g as K, i as Q, a as Z } from "./colors-ehvAxkYC.js";
4
- const h = (e, t, l) => {
1
+ import { ax as W, av as L, a7 as B, at as R, bZ as j, aA as z, ab as F, aa as b, a9 as P, aO as X, aK as U, bo as V, aq as q } from "./menu-CC5544p-.js";
2
+ import { defineComponent as D, computed as m, createVNode as d, shallowRef as K, watchEffect as Z, Fragment as G } from "vue";
3
+ import { g as J, i as Q, a as Y } from "./colors-DiWJrScm.js";
4
+ const v = (e, t, l) => {
5
5
  const a = j(l);
6
6
  return {
7
7
  [`${e.componentCls}-${t}`]: {
@@ -13,7 +13,7 @@ const h = (e, t, l) => {
13
13
  }
14
14
  }
15
15
  };
16
- }, ee = (e) => K(e, (t, l) => {
16
+ }, ee = (e) => J(e, (t, l) => {
17
17
  let {
18
18
  textColor: a,
19
19
  lightBorderColor: r,
@@ -116,13 +116,13 @@ const h = (e, t, l) => {
116
116
  background: e.tagBorderlessBg
117
117
  }
118
118
  };
119
- }, D = L("Tag", (e) => {
119
+ }, H = W("Tag", (e) => {
120
120
  const {
121
121
  fontSize: t,
122
122
  lineHeight: l,
123
123
  lineWidth: a,
124
124
  fontSizeIcon: r
125
- } = e, o = Math.round(t * l), c = e.fontSizeSM, g = o - a * 2, C = e.colorFillAlter, s = e.colorText, n = O(e, {
125
+ } = e, o = Math.round(t * l), c = e.fontSizeSM, g = o - a * 2, C = e.colorFillAlter, s = e.colorText, n = L(e, {
126
126
  tagFontSize: c,
127
127
  tagLineHeight: g,
128
128
  tagDefaultBg: C,
@@ -131,7 +131,7 @@ const h = (e, t, l) => {
131
131
  tagPaddingHorizontal: 8,
132
132
  tagBorderlessBg: e.colorFillTertiary
133
133
  });
134
- return [oe(n), ee(n), h(n, "success", "Success"), h(n, "processing", "Info"), h(n, "error", "Error"), h(n, "warning", "Warning")];
134
+ return [oe(n), ee(n), v(n, "success", "Success"), v(n, "processing", "Info"), v(n, "error", "Error"), v(n, "warning", "Warning")];
135
135
  }), le = () => ({
136
136
  prefixCls: String,
137
137
  checked: {
@@ -145,7 +145,7 @@ const h = (e, t, l) => {
145
145
  type: Function
146
146
  },
147
147
  "onUpdate:checked": Function
148
- }), S = w({
148
+ }), S = D({
149
149
  compatConfig: {
150
150
  MODE: 3
151
151
  },
@@ -161,7 +161,7 @@ const h = (e, t, l) => {
161
161
  } = t;
162
162
  const {
163
163
  prefixCls: o
164
- } = z("tag", e), [c, g] = D(o), C = (n) => {
164
+ } = z("tag", e), [c, g] = H(o), C = (n) => {
165
165
  const {
166
166
  checked: u
167
167
  } = e;
@@ -203,7 +203,7 @@ const h = (e, t, l) => {
203
203
  type: Boolean,
204
204
  default: !0
205
205
  }
206
- }), v = w({
206
+ }), h = D({
207
207
  compatConfig: {
208
208
  MODE: 3
209
209
  },
@@ -221,51 +221,51 @@ const h = (e, t, l) => {
221
221
  const {
222
222
  prefixCls: o,
223
223
  direction: c
224
- } = z("tag", e), [g, C] = D(o), s = Y(!0);
225
- process.env.NODE_ENV !== "production" && U(e.visible === void 0, "Tag", '`visible` is deprecated, please use `<Tag v-show="visible" />` instead.'), q(() => {
224
+ } = z("tag", e), [g, C] = H(o), s = K(!0);
225
+ process.env.NODE_ENV !== "production" && U(e.visible === void 0, "Tag", '`visible` is deprecated, please use `<Tag v-show="visible" />` instead.'), Z(() => {
226
226
  e.visible !== void 0 && (s.value = e.visible);
227
227
  });
228
228
  const n = (i) => {
229
229
  i.stopPropagation(), a("update:visible", !1), a("close", i), !i.defaultPrevented && e.visible === void 0 && (s.value = !1);
230
- }, u = m(() => Q(e.color) || Z(e.color)), H = m(() => F(o.value, C.value, {
230
+ }, u = m(() => Q(e.color) || Y(e.color)), w = m(() => F(o.value, C.value, {
231
231
  [`${o.value}-${e.color}`]: u.value,
232
232
  [`${o.value}-has-color`]: e.color && !u.value,
233
233
  [`${o.value}-hidden`]: !s.value,
234
234
  [`${o.value}-rtl`]: c.value === "rtl",
235
235
  [`${o.value}-borderless`]: !e.bordered
236
- })), N = (i) => {
236
+ })), A = (i) => {
237
237
  a("click", i);
238
238
  };
239
239
  return () => {
240
- var i, p, f;
240
+ var i, f, p;
241
241
  const {
242
242
  icon: M = (i = l.icon) === null || i === void 0 ? void 0 : i.call(l),
243
243
  color: $,
244
- closeIcon: y = (p = l.closeIcon) === null || p === void 0 ? void 0 : p.call(l),
245
- closable: A = !1
246
- } = e, E = () => A ? y ? d("span", {
244
+ closeIcon: y = (f = l.closeIcon) === null || f === void 0 ? void 0 : f.call(l),
245
+ closable: N = !1
246
+ } = e, E = () => N ? y ? d("span", {
247
247
  class: `${o.value}-close-icon`,
248
248
  onClick: n
249
- }, [y]) : d(J, {
249
+ }, [y]) : d(q, {
250
250
  class: `${o.value}-close-icon`,
251
251
  onClick: n
252
252
  }, null) : null, _ = {
253
253
  backgroundColor: $ && !u.value ? $ : void 0
254
- }, T = M || null, I = (f = l.default) === null || f === void 0 ? void 0 : f.call(l), k = T ? d(G, null, [T, d("span", null, [I])]) : I, W = e.onClick !== void 0, x = d("span", b(b({}, r), {}, {
255
- onClick: N,
256
- class: [H.value, r.class],
254
+ }, T = M || null, x = (p = l.default) === null || p === void 0 ? void 0 : p.call(l), k = T ? d(G, null, [T, d("span", null, [x])]) : x, O = e.onClick !== void 0, I = d("span", b(b({}, r), {}, {
255
+ onClick: A,
256
+ class: [w.value, r.class],
257
257
  style: [_, r.style]
258
258
  }), [k, E()]);
259
- return g(W ? d(V, null, {
260
- default: () => [x]
261
- }) : x);
259
+ return g(O ? d(V, null, {
260
+ default: () => [I]
261
+ }) : I);
262
262
  };
263
263
  }
264
264
  });
265
- v.CheckableTag = S;
266
- v.install = function(e) {
267
- return e.component(v.name, v), e.component(S.name, S), e;
265
+ h.CheckableTag = S;
266
+ h.install = function(e) {
267
+ return e.component(h.name, h), e.component(S.name, S), e;
268
268
  };
269
269
  export {
270
- v as T
270
+ h as T
271
271
  };