@zl-ui-kit/components 0.23.0 → 0.24.0

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,9 +1,10 @@
1
- import { defineComponent as D, getCurrentInstance as N, ref as r, computed as g, onBeforeUnmount as S, resolveComponent as b, openBlock as d, createElementBlock as c, normalizeStyle as F, createVNode as v, withCtx as w, createElementVNode as u, toDisplayString as y, Fragment as I, renderList as P, normalizeClass as Z, createCommentVNode as E } from "vue";
1
+ import { defineComponent as Y, getCurrentInstance as D, ref as u, computed as g, onBeforeUnmount as N, resolveComponent as L, openBlock as d, createElementBlock as c, normalizeStyle as S, createVNode as v, withCtx as w, createElementVNode as i, toDisplayString as b, Fragment as F, renderList as I, normalizeClass as P, createCommentVNode as E } from "vue";
2
+ import Z from "../ZlButton/index.vue.mjs";
2
3
  import j from "../ZlIcon/index.vue.mjs";
3
4
  const q = { class: "zl-dev-menu__panel" }, A = { class: "zl-dev-menu__title" }, G = { class: "zl-dev-menu__list" }, H = ["onClick"], J = { class: "zl-dev-menu__label" }, K = { class: "zl-dev-menu__path" }, O = {
4
5
  key: 0,
5
6
  class: "zl-dev-menu__empty"
6
- }, ee = /* @__PURE__ */ D({
7
+ }, te = /* @__PURE__ */ Y({
7
8
  name: "ZlDevMenu",
8
9
  __name: "index",
9
10
  props: {
@@ -16,30 +17,30 @@ const q = { class: "zl-dev-menu__panel" }, A = { class: "zl-dev-menu__title" },
16
17
  offsetBottom: { default: 20 }
17
18
  },
18
19
  setup(p, { expose: V }) {
19
- const n = p, m = N()?.appContext.config.globalProperties.$router, i = r(n.offsetRight), f = r(n.offsetBottom), a = r(!1), h = r(""), z = g(() => {
20
- if (n.routes?.length) return n.routes;
20
+ const l = p, m = D()?.appContext.config.globalProperties.$router, r = u(l.offsetRight), f = u(l.offsetBottom), a = u(!1), h = u(""), y = g(() => {
21
+ if (l.routes?.length) return l.routes;
21
22
  const t = /* @__PURE__ */ new Set();
22
- return (m?.getRoutes?.() ?? []).filter((e) => e.path && !e.redirect && !e.path.includes(":")).filter((e) => t.has(e.path) ? !1 : (t.add(e.path), !0)).map((e) => ({ label: e.meta?.title || e.path, path: e.path })).sort((e, l) => e.path.localeCompare(l.path));
23
- }), C = g(() => {
23
+ return (m?.getRoutes?.() ?? []).filter((e) => e.path && !e.redirect && !e.path.includes(":")).filter((e) => t.has(e.path) ? !1 : (t.add(e.path), !0)).map((e) => ({ label: e.meta?.title || e.path, path: e.path })).sort((e, n) => e.path.localeCompare(n.path));
24
+ }), z = g(() => {
24
25
  const t = h.value.trim().toLowerCase();
25
- return t ? z.value.filter((e) => `${e.label} ${e.path}`.toLowerCase().includes(t)) : z.value;
26
- }), R = g(() => m?.currentRoute?.value?.path ?? "");
27
- function $(t) {
28
- a.value = !1, n.navigate ? n.navigate(t.path) : m?.push?.(t.path);
26
+ return t ? y.value.filter((e) => `${e.label} ${e.path}`.toLowerCase().includes(t)) : y.value;
27
+ }), $ = g(() => m?.currentRoute?.value?.path ?? "");
28
+ function R(t) {
29
+ a.value = !1, l.navigate ? l.navigate(t.path) : m?.push?.(t.path);
29
30
  }
30
- let k = 0, x = 0, M = 0, B = 0, s = !1;
31
+ let C = 0, k = 0, x = 0, M = 0, s = !1;
31
32
  function _(t) {
32
- const e = k - t.clientX, l = x - t.clientY;
33
- !s && (Math.abs(e) > 3 || Math.abs(l) > 3) && (s = !0), s && (i.value = Math.max(8, M + e), f.value = Math.max(8, B + l));
33
+ const e = C - t.clientX, n = k - t.clientY;
34
+ !s && (Math.abs(e) > 3 || Math.abs(n) > 3) && (s = !0), s && (r.value = Math.max(8, x + e), f.value = Math.max(8, M + n));
34
35
  }
35
- function L() {
36
- window.removeEventListener("mousemove", _), s && (i.value = n.offsetRight);
36
+ function B() {
37
+ window.removeEventListener("mousemove", _), s && (r.value = l.offsetRight);
37
38
  }
38
39
  function U(t) {
39
- n.draggable && (k = t.clientX, x = t.clientY, M = i.value, B = f.value, s = !1, window.addEventListener("mousemove", _), window.addEventListener("mouseup", L, { once: !0 }));
40
+ l.draggable && (C = t.clientX, k = t.clientY, x = r.value, M = f.value, s = !1, window.addEventListener("mousemove", _), window.addEventListener("mouseup", B, { once: !0 }));
40
41
  }
41
- return S(() => {
42
- window.removeEventListener("mousemove", _), window.removeEventListener("mouseup", L);
42
+ return N(() => {
43
+ window.removeEventListener("mousemove", _), window.removeEventListener("mouseup", B);
43
44
  }), V({
44
45
  /** 展开路由面板 */
45
46
  open: () => {
@@ -50,14 +51,14 @@ const q = { class: "zl-dev-menu__panel" }, A = { class: "zl-dev-menu__title" },
50
51
  a.value = !1;
51
52
  }
52
53
  }), (t, e) => {
53
- const l = b("el-button"), X = b("el-input"), Y = b("el-popover");
54
+ const n = L("el-input"), X = L("el-popover");
54
55
  return p.visible ? (d(), c("div", {
55
56
  key: 0,
56
57
  class: "zl-dev-menu",
57
- style: F({ right: `${i.value}px`, bottom: `${f.value}px` }),
58
+ style: S({ right: `${r.value}px`, bottom: `${f.value}px` }),
58
59
  onMousedown: U
59
60
  }, [
60
- v(Y, {
61
+ v(X, {
61
62
  visible: a.value,
62
63
  "onUpdate:visible": e[1] || (e[1] = (o) => a.value = o),
63
64
  trigger: "click",
@@ -65,7 +66,7 @@ const q = { class: "zl-dev-menu__panel" }, A = { class: "zl-dev-menu__title" },
65
66
  width: 320
66
67
  }, {
67
68
  reference: w(() => [
68
- v(l, {
69
+ v(Z, {
69
70
  class: "zl-dev-menu__button",
70
71
  circle: ""
71
72
  }, {
@@ -76,24 +77,24 @@ const q = { class: "zl-dev-menu__panel" }, A = { class: "zl-dev-menu__title" },
76
77
  })
77
78
  ]),
78
79
  default: w(() => [
79
- u("div", q, [
80
- u("div", A, y(p.title), 1),
81
- v(X, {
80
+ i("div", q, [
81
+ i("div", A, b(p.title), 1),
82
+ v(n, {
82
83
  modelValue: h.value,
83
84
  "onUpdate:modelValue": e[0] || (e[0] = (o) => h.value = o),
84
85
  placeholder: "搜索路由",
85
86
  clearable: ""
86
87
  }, null, 8, ["modelValue"]),
87
- u("div", G, [
88
- (d(!0), c(I, null, P(C.value, (o) => (d(), c("div", {
88
+ i("div", G, [
89
+ (d(!0), c(F, null, I(z.value, (o) => (d(), c("div", {
89
90
  key: o.path,
90
- class: Z(["zl-dev-menu__item", { "is-active": o.path === R.value }]),
91
- onClick: (Q) => $(o)
91
+ class: P(["zl-dev-menu__item", { "is-active": o.path === $.value }]),
92
+ onClick: (Q) => R(o)
92
93
  }, [
93
- u("span", J, y(o.label), 1),
94
- u("span", K, y(o.path), 1)
94
+ i("span", J, b(o.label), 1),
95
+ i("span", K, b(o.path), 1)
95
96
  ], 10, H))), 128)),
96
- C.value.length ? E("", !0) : (d(), c("div", O, "未匹配到路由"))
97
+ z.value.length ? E("", !0) : (d(), c("div", O, "未匹配到路由"))
97
98
  ])
98
99
  ])
99
100
  ]),
@@ -104,6 +105,6 @@ const q = { class: "zl-dev-menu__panel" }, A = { class: "zl-dev-menu__title" },
104
105
  }
105
106
  });
106
107
  export {
107
- ee as default
108
+ te as default
108
109
  };
109
110
  //# sourceMappingURL=index.vue.mjs.map
@@ -1,6 +1,7 @@
1
- import { defineComponent as z, useModel as w, ref as x, computed as f, useAttrs as A, resolveComponent as m, resolveDirective as D, openBlock as d, createBlock as g, mergeProps as _, withCtx as a, withDirectives as M, createElementBlock as N, renderSlot as v, createTextVNode as y, toDisplayString as p, unref as T, createCommentVNode as Z, createVNode as $, mergeModels as O } from "vue";
1
+ import { defineComponent as h, useModel as z, ref as w, computed as c, useAttrs as x, resolveComponent as A, resolveDirective as D, openBlock as d, createBlock as f, mergeProps as _, withCtx as n, withDirectives as $, createElementBlock as M, renderSlot as m, createTextVNode as g, toDisplayString as v, unref as N, createCommentVNode as T, createVNode as Z, mergeModels as O } from "vue";
2
2
  import { useZlT as S } from "@zl-ui-kit/composables";
3
- const E = { class: "zl-dialog__body" }, U = /* @__PURE__ */ z({
3
+ import y from "../ZlButton/index.vue.mjs";
4
+ const E = { class: "zl-dialog__body" }, j = /* @__PURE__ */ h({
4
5
  name: "ZlDialog",
5
6
  inheritAttrs: !1,
6
7
  __name: "index",
@@ -17,12 +18,12 @@ const E = { class: "zl-dialog__body" }, U = /* @__PURE__ */ z({
17
18
  }),
18
19
  emits: ["update:visible"],
19
20
  setup(e) {
20
- const { t: i } = S(), o = e, t = w(e, "visible");
21
+ const { t: i } = S(), o = e, t = z(e, "visible");
21
22
  async function r() {
22
23
  o.onCancel && !await o.onCancel() || (t.value = !1);
23
24
  }
24
- const s = x(!1);
25
- async function C() {
25
+ const s = w(!1);
26
+ async function p() {
26
27
  s.value = !0;
27
28
  try {
28
29
  await o.onOk?.(), o.autoCloseAfterConfirm && (t.value = !1);
@@ -32,44 +33,44 @@ const E = { class: "zl-dialog__body" }, U = /* @__PURE__ */ z({
32
33
  s.value = !1;
33
34
  }
34
35
  }
35
- const b = f(() => o.readonly ? i("zl.dialog.close", "关闭") : i("zl.dialog.confirm", "确定")), k = A(), B = f(() => ({ width: "600px", "destroy-on-close": !0, ...k }));
36
- return (l, n) => {
37
- const u = m("el-button"), V = m("el-dialog"), h = D("loading");
38
- return d(), g(V, _({
36
+ const C = c(() => o.readonly ? i("zl.dialog.close", "关闭") : i("zl.dialog.confirm", "确定")), k = x(), b = c(() => ({ width: "600px", "destroy-on-close": !0, ...k }));
37
+ return (l, a) => {
38
+ const B = A("el-dialog"), V = D("loading");
39
+ return d(), f(B, _({
39
40
  class: ["zl-dialog", { "zl-dialog--no-footer": !e.footerVisible }]
40
- }, B.value, {
41
+ }, b.value, {
41
42
  modelValue: t.value,
42
- "onUpdate:modelValue": n[1] || (n[1] = (c) => t.value = c),
43
+ "onUpdate:modelValue": a[1] || (a[1] = (u) => t.value = u),
43
44
  "before-close": r
44
45
  }), {
45
- footer: a(() => [
46
- v(l.$slots, "footer", {}, () => [
47
- e.readonly ? Z("", !0) : (d(), g(u, {
46
+ footer: n(() => [
47
+ m(l.$slots, "footer", {}, () => [
48
+ e.readonly ? T("", !0) : (d(), f(y, {
48
49
  key: 0,
49
50
  onClick: r
50
51
  }, {
51
- default: a(() => [
52
- y(p(T(i)("zl.dialog.cancel", "取消")), 1)
52
+ default: n(() => [
53
+ g(v(N(i)("zl.dialog.cancel", "取消")), 1)
53
54
  ]),
54
55
  _: 1
55
56
  })),
56
- $(u, {
57
+ Z(y, {
57
58
  type: "primary",
58
59
  loading: s.value,
59
- onClick: n[0] || (n[0] = (c) => e.readonly ? r() : C())
60
+ onClick: a[0] || (a[0] = (u) => e.readonly ? r() : p())
60
61
  }, {
61
- default: a(() => [
62
- y(p(b.value), 1)
62
+ default: n(() => [
63
+ g(v(C.value), 1)
63
64
  ]),
64
65
  _: 1
65
66
  }, 8, ["loading"])
66
67
  ])
67
68
  ]),
68
- default: a(() => [
69
- M((d(), N("div", E, [
70
- v(l.$slots, "default")
69
+ default: n(() => [
70
+ $((d(), M("div", E, [
71
+ m(l.$slots, "default")
71
72
  ])), [
72
- [h, e.loading]
73
+ [V, e.loading]
73
74
  ])
74
75
  ]),
75
76
  _: 3
@@ -78,6 +79,6 @@ const E = { class: "zl-dialog__body" }, U = /* @__PURE__ */ z({
78
79
  }
79
80
  });
80
81
  export {
81
- U as default
82
+ j as default
82
83
  };
83
84
  //# sourceMappingURL=index.vue.mjs.map
@@ -1,6 +1,7 @@
1
- import { defineComponent as V, useModel as h, ref as A, computed as f, useAttrs as D, resolveComponent as m, resolveDirective as _, openBlock as d, createBlock as v, mergeProps as x, withCtx as n, withDirectives as M, createElementBlock as N, renderSlot as y, createTextVNode as w, toDisplayString as C, unref as T, createCommentVNode as Z, createVNode as $, mergeModels as O } from "vue";
1
+ import { defineComponent as B, useModel as V, ref as h, computed as u, useAttrs as A, resolveComponent as D, resolveDirective as x, openBlock as d, createBlock as f, mergeProps as _, withCtx as a, withDirectives as $, createElementBlock as M, renderSlot as m, createTextVNode as v, toDisplayString as y, unref as N, createCommentVNode as T, createVNode as Z, mergeModels as O } from "vue";
2
2
  import { useZlT as S } from "@zl-ui-kit/composables";
3
- const E = { class: "zl-drawer__body" }, U = /* @__PURE__ */ V({
3
+ import w from "../ZlButton/index.vue.mjs";
4
+ const E = { class: "zl-drawer__body" }, j = /* @__PURE__ */ B({
4
5
  name: "ZlDrawer",
5
6
  inheritAttrs: !1,
6
7
  __name: "index",
@@ -17,12 +18,12 @@ const E = { class: "zl-drawer__body" }, U = /* @__PURE__ */ V({
17
18
  }),
18
19
  emits: ["update:visible"],
19
20
  setup(o) {
20
- const { t: a } = S(), l = o, r = h(o, "visible");
21
+ const { t: n } = S(), l = o, r = V(o, "visible");
21
22
  async function s() {
22
23
  l.onCancel && !await l.onCancel() || (r.value = !1);
23
24
  }
24
- const i = A(!1);
25
- async function p() {
25
+ const i = h(!1);
26
+ async function C() {
26
27
  i.value = !0;
27
28
  try {
28
29
  await l.onOk?.(), l.autoCloseAfterConfirm && (r.value = !1);
@@ -32,47 +33,47 @@ const E = { class: "zl-drawer__body" }, U = /* @__PURE__ */ V({
32
33
  i.value = !1;
33
34
  }
34
35
  }
35
- const b = f(() => l.readonly ? a("zl.drawer.close", "关闭") : a("zl.drawer.confirm", "确定")), g = D(), k = f(() => {
36
+ const p = u(() => l.readonly ? n("zl.drawer.close", "关闭") : n("zl.drawer.confirm", "确定")), g = A(), k = u(() => {
36
37
  const { width: e, ...t } = g;
37
38
  return { size: 600, ...e !== void 0 ? { size: e } : {}, "destroy-on-close": !0, ...t };
38
39
  });
39
40
  return (e, t) => {
40
- const u = m("el-button"), z = m("el-drawer"), B = _("loading");
41
- return d(), v(z, x({
41
+ const b = D("el-drawer"), z = x("loading");
42
+ return d(), f(b, _({
42
43
  class: ["zl-drawer", { "zl-drawer--no-footer": !o.footerVisible }]
43
44
  }, k.value, {
44
45
  modelValue: r.value,
45
46
  "onUpdate:modelValue": t[1] || (t[1] = (c) => r.value = c),
46
47
  "before-close": s
47
48
  }), {
48
- footer: n(() => [
49
- y(e.$slots, "footer", {}, () => [
50
- o.readonly ? Z("", !0) : (d(), v(u, {
49
+ footer: a(() => [
50
+ m(e.$slots, "footer", {}, () => [
51
+ o.readonly ? T("", !0) : (d(), f(w, {
51
52
  key: 0,
52
53
  onClick: s
53
54
  }, {
54
- default: n(() => [
55
- w(C(T(a)("zl.drawer.cancel", "取消")), 1)
55
+ default: a(() => [
56
+ v(y(N(n)("zl.drawer.cancel", "取消")), 1)
56
57
  ]),
57
58
  _: 1
58
59
  })),
59
- $(u, {
60
+ Z(w, {
60
61
  type: "primary",
61
62
  loading: i.value,
62
- onClick: t[0] || (t[0] = (c) => o.readonly ? s() : p())
63
+ onClick: t[0] || (t[0] = (c) => o.readonly ? s() : C())
63
64
  }, {
64
- default: n(() => [
65
- w(C(b.value), 1)
65
+ default: a(() => [
66
+ v(y(p.value), 1)
66
67
  ]),
67
68
  _: 1
68
69
  }, 8, ["loading"])
69
70
  ])
70
71
  ]),
71
- default: n(() => [
72
- M((d(), N("div", E, [
73
- y(e.$slots, "default")
72
+ default: a(() => [
73
+ $((d(), M("div", E, [
74
+ m(e.$slots, "default")
74
75
  ])), [
75
- [B, o.loading]
76
+ [z, o.loading]
76
77
  ])
77
78
  ]),
78
79
  _: 3
@@ -81,6 +82,6 @@ const E = { class: "zl-drawer__body" }, U = /* @__PURE__ */ V({
81
82
  }
82
83
  });
83
84
  export {
84
- U as default
85
+ j as default
85
86
  };
86
87
  //# sourceMappingURL=index.vue.mjs.map
@@ -1 +1 @@
1
- .zl-login__action[data-v-a1724530]{margin-top:15px}[data-v-a1724530] .el-form-item{margin-bottom:20px}
1
+ .zl-login__action[data-v-4085ea37]{margin-top:15px}[data-v-4085ea37] .el-form-item{margin-bottom:20px}
@@ -1,7 +1,7 @@
1
1
  import o from "./LoginForm2.vue.mjs";
2
2
  import './LoginForm.css';/* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a1724530"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4085ea37"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,48 +1,49 @@
1
- import { defineComponent as y, ref as m, reactive as z, computed as V, resolveComponent as d, openBlock as _, createBlock as C, withModifiers as S, withCtx as n, createVNode as t, unref as s, createTextVNode as R, toDisplayString as q, createElementBlock as P, renderSlot as x, createCommentVNode as B } from "vue";
2
- import { useZlT as F } from "@zl-ui-kit/composables";
1
+ import { defineComponent as k, ref as u, reactive as y, computed as z, resolveComponent as m, openBlock as _, createBlock as V, withModifiers as C, withCtx as n, createVNode as r, unref as s, createTextVNode as S, toDisplayString as R, createElementBlock as q, renderSlot as P, createCommentVNode as x } from "vue";
2
+ import { useZlT as B } from "@zl-ui-kit/composables";
3
+ import F from "../../ZlButton/index.vue.mjs";
3
4
  import L from "./SlideChecker.vue.mjs";
4
5
  const N = {
5
6
  key: 0,
6
7
  class: "zl-login__action"
7
- }, $ = /* @__PURE__ */ y({
8
+ }, D = /* @__PURE__ */ k({
8
9
  name: "ZlLoginForm",
9
10
  __name: "LoginForm",
10
11
  props: {
11
12
  onSubmit: { type: Function }
12
13
  },
13
14
  setup(h) {
14
- const { t: e } = F(), p = h, c = m(), l = z({}), b = V(() => ({
15
+ const { t: e } = B(), p = h, c = u(), l = y({}), v = z(() => ({
15
16
  username: [{ required: !0, message: e("zl.login.usernamePlaceholder", "请输入用户名") }],
16
17
  password: [{ required: !0, message: e("zl.login.passwordPlaceholder", "请输入密码") }],
17
18
  slideChecked: [
18
19
  { type: "boolean", required: !0, message: e("zl.login.slideRequired", "请将滑块移至右侧") }
19
20
  ]
20
- })), f = m(null), i = m(!1);
21
- async function v() {
21
+ })), f = u(null), i = u(!1);
22
+ async function b() {
22
23
  try {
23
24
  if (await f.value?.validate().catch((o) => o) !== !0) return;
24
25
  i.value = !0, p.onSubmit && await p.onSubmit(l), i.value = !1;
25
- } catch (r) {
26
- i.value = !1, c.value?.reset(), console.error("Login Submit: ", r);
26
+ } catch (t) {
27
+ i.value = !1, c.value?.reset(), console.error("Login Submit: ", t);
27
28
  }
28
29
  }
29
- return (r, o) => {
30
- const g = d("el-input"), u = d("el-form-item"), w = d("el-button"), k = d("el-form");
31
- return _(), C(k, {
30
+ return (t, o) => {
31
+ const g = m("el-input"), d = m("el-form-item"), w = m("el-form");
32
+ return _(), V(w, {
32
33
  ref_key: "formRef",
33
34
  ref: f,
34
35
  model: l,
35
- rules: b.value,
36
+ rules: v.value,
36
37
  "label-position": "top",
37
- onSubmit: S(v, ["prevent"])
38
+ onSubmit: C(b, ["prevent"])
38
39
  }, {
39
40
  default: n(() => [
40
- t(u, {
41
+ r(d, {
41
42
  label: s(e)("zl.login.username", "用户名"),
42
43
  prop: "username"
43
44
  }, {
44
45
  default: n(() => [
45
- t(g, {
46
+ r(g, {
46
47
  modelValue: l.username,
47
48
  "onUpdate:modelValue": o[0] || (o[0] = (a) => l.username = a),
48
49
  placeholder: s(e)("zl.login.usernamePlaceholder", "请输入用户名"),
@@ -51,12 +52,12 @@ const N = {
51
52
  ]),
52
53
  _: 1
53
54
  }, 8, ["label"]),
54
- t(u, {
55
+ r(d, {
55
56
  label: s(e)("zl.login.password", "密码"),
56
57
  prop: "password"
57
58
  }, {
58
59
  default: n(() => [
59
- t(g, {
60
+ r(g, {
60
61
  modelValue: l.password,
61
62
  "onUpdate:modelValue": o[1] || (o[1] = (a) => l.password = a),
62
63
  type: "password",
@@ -67,9 +68,9 @@ const N = {
67
68
  ]),
68
69
  _: 1
69
70
  }, 8, ["label"]),
70
- t(u, { prop: "slideChecked" }, {
71
+ r(d, { prop: "slideChecked" }, {
71
72
  default: n(() => [
72
- t(L, {
73
+ r(L, {
73
74
  ref_key: "slideCheckerRef",
74
75
  ref: c,
75
76
  modelValue: l.slideChecked,
@@ -78,7 +79,7 @@ const N = {
78
79
  ]),
79
80
  _: 1
80
81
  }),
81
- t(w, {
82
+ r(F, {
82
83
  type: "primary",
83
84
  "native-type": "submit",
84
85
  size: "large",
@@ -87,13 +88,13 @@ const N = {
87
88
  style: { width: "100%", "margin-top": "20px" }
88
89
  }, {
89
90
  default: n(() => [
90
- R(q(s(e)("zl.login.submit", "登 录")), 1)
91
+ S(R(s(e)("zl.login.submit", "登 录")), 1)
91
92
  ]),
92
93
  _: 1
93
94
  }, 8, ["loading"]),
94
- r.$slots.action ? (_(), P("div", N, [
95
- x(r.$slots, "action", {}, void 0, !0)
96
- ])) : B("", !0)
95
+ t.$slots.action ? (_(), q("div", N, [
96
+ P(t.$slots, "action", {}, void 0, !0)
97
+ ])) : x("", !0)
97
98
  ]),
98
99
  _: 3
99
100
  }, 8, ["model", "rules"]);
@@ -101,6 +102,6 @@ const N = {
101
102
  }
102
103
  });
103
104
  export {
104
- $ as default
105
+ D as default
105
106
  };
106
107
  //# sourceMappingURL=LoginForm2.vue.mjs.map
@@ -1,10 +1,11 @@
1
- import { defineComponent as B, computed as d, ref as x, resolveComponent as _, openBlock as u, createBlock as y, mergeProps as $, withCtx as t, createElementVNode as n, createVNode as r, createElementBlock as g, renderSlot as s, createTextVNode as c, toDisplayString as l, createCommentVNode as N } from "vue";
1
+ import { defineComponent as T, computed as f, ref as B, resolveComponent as x, openBlock as d, createBlock as $, mergeProps as y, withCtx as t, createElementVNode as n, createVNode as r, createElementBlock as g, renderSlot as s, createTextVNode as c, toDisplayString as l, createCommentVNode as N } from "vue";
2
2
  import { useZlT as V } from "@zl-ui-kit/composables";
3
+ import _ from "../ZlButton/index.vue.mjs";
3
4
  import Z from "../ZlIcon/index.vue.mjs";
4
- const b = { class: "zl-popconfirm-panel" }, w = { class: "zl-popconfirm-panel__main" }, E = {
5
+ const w = { class: "zl-popconfirm-panel" }, E = { class: "zl-popconfirm-panel__main" }, P = {
5
6
  key: 0,
6
7
  class: "zl-popconfirm-panel__title"
7
- }, P = { class: "zl-popconfirm-panel__content" }, R = { class: "zl-popconfirm-panel__actions" }, j = /* @__PURE__ */ B({
8
+ }, R = { class: "zl-popconfirm-panel__content" }, S = { class: "zl-popconfirm-panel__actions" }, q = /* @__PURE__ */ T({
8
9
  name: "ZlPopconfirm",
9
10
  inheritAttrs: !1,
10
11
  __name: "index",
@@ -15,17 +16,17 @@ const b = { class: "zl-popconfirm-panel" }, w = { class: "zl-popconfirm-panel__m
15
16
  cancelButtonText: {}
16
17
  },
17
18
  emits: ["confirm", "cancel"],
18
- setup(o, { emit: v }) {
19
- const a = o, { t: p } = V(), z = d(() => a.confirmButtonText ?? p("zl.popconfirm.confirm", "确定")), h = d(() => a.cancelButtonText ?? p("zl.popconfirm.cancel", "取消")), i = x(null), m = v;
20
- function k() {
21
- i.value?.hide?.(), m("confirm");
19
+ setup(o, { emit: u }) {
20
+ const a = o, { t: m } = V(), v = f(() => a.confirmButtonText ?? m("zl.popconfirm.confirm", "确定")), z = f(() => a.cancelButtonText ?? m("zl.popconfirm.cancel", "取消")), i = B(null), p = u;
21
+ function h() {
22
+ i.value?.hide?.(), p("confirm");
22
23
  }
23
- function C() {
24
- i.value?.hide?.(), m("cancel");
24
+ function k() {
25
+ i.value?.hide?.(), p("cancel");
25
26
  }
26
- return (e, S) => {
27
- const f = _("el-button"), T = _("el-popover");
28
- return u(), y(T, $({
27
+ return (e, A) => {
28
+ const C = x("el-popover");
29
+ return d(), $(C, y({
29
30
  ref_key: "popoverRef",
30
31
  ref: i,
31
32
  class: "zl-popconfirm"
@@ -34,39 +35,39 @@ const b = { class: "zl-popconfirm-panel" }, w = { class: "zl-popconfirm-panel__m
34
35
  s(e.$slots, "default")
35
36
  ]),
36
37
  default: t(() => [
37
- n("div", b, [
38
+ n("div", w, [
38
39
  r(Z, {
39
40
  class: "zl-popconfirm-panel__icon",
40
41
  icon: "zl:information-color"
41
42
  }),
42
- n("div", w, [
43
- e.$slots.title || o.title ? (u(), g("div", E, [
43
+ n("div", E, [
44
+ e.$slots.title || o.title ? (d(), g("div", P, [
44
45
  s(e.$slots, "title", {}, () => [
45
46
  c(l(o.title), 1)
46
47
  ])
47
48
  ])) : N("", !0),
48
- n("div", P, [
49
+ n("div", R, [
49
50
  s(e.$slots, "content", {}, () => [
50
51
  c(l(o.content), 1)
51
52
  ])
52
53
  ]),
53
- n("div", R, [
54
- r(f, {
54
+ n("div", S, [
55
+ r(_, {
55
56
  size: "small",
56
- onClick: C
57
+ onClick: k
57
58
  }, {
58
59
  default: t(() => [
59
- c(l(h.value), 1)
60
+ c(l(z.value), 1)
60
61
  ]),
61
62
  _: 1
62
63
  }),
63
- r(f, {
64
+ r(_, {
64
65
  size: "small",
65
66
  type: "primary",
66
- onClick: k
67
+ onClick: h
67
68
  }, {
68
69
  default: t(() => [
69
- c(l(z.value), 1)
70
+ c(l(v.value), 1)
70
71
  ]),
71
72
  _: 1
72
73
  })
@@ -80,6 +81,6 @@ const b = { class: "zl-popconfirm-panel" }, w = { class: "zl-popconfirm-panel__m
80
81
  }
81
82
  });
82
83
  export {
83
- j as default
84
+ q as default
84
85
  };
85
86
  //# sourceMappingURL=index.vue.mjs.map