dlzn-ui 1.94.0 → 1.95.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.
package/layout/Login.mjs CHANGED
@@ -2,16 +2,17 @@ import { E as e, p as t, t as n } from "../chunks/button-DWWr8rbi.mjs";
2
2
  import r from "../plugins/autoImport/$msg/index.mjs";
3
3
  import { t as i } from "../chunks/gradient-text-B6JwSk-u.mjs";
4
4
  import { t as a } from "../chunks/icon-COjp1yrx.mjs";
5
- import o from "../plugins/captcha/index.mjs";
6
- import { t as s } from "../chunks/LoginBg-BPY-OcAF.mjs";
7
- import { computed as c, createBlock as l, createTextVNode as u, createVNode as d, defineComponent as f, openBlock as p, resolveComponent as m, unref as h, useTemplateRef as g, withCtx as _ } from "vue";
5
+ import { t as o } from "../chunks/form-DDECRusH.mjs";
6
+ import s from "../plugins/captcha/index.mjs";
7
+ import { t as c } from "../chunks/LoginBg-BPY-OcAF.mjs";
8
+ import { computed as l, createBlock as u, createTextVNode as d, createVNode as f, defineComponent as p, openBlock as m, unref as h, useTemplateRef as g, withCtx as _ } from "vue";
8
9
  import { useRouter as v } from "vue-router";
9
10
  //#endregion
10
11
  //#region ../../packages/dlzn-ui/layout/Login.vue
11
- var y = /* @__PURE__ */ f({
12
+ var y = /* @__PURE__ */ p({
12
13
  __name: "Login",
13
- setup(f) {
14
- let y = t(), b = e(), x = v(), S = c(() => b.appInfo.appName), C = g("formRef");
14
+ setup(p) {
15
+ let y = t(), b = e(), x = v(), S = l(() => b.appInfo.appName), C = g("formRef");
15
16
  async function w(e) {
16
17
  await y.login(e), x.replace({ name: "Index" });
17
18
  }
@@ -25,7 +26,7 @@ var y = /* @__PURE__ */ f({
25
26
  r.error("请输入密码");
26
27
  return;
27
28
  }
28
- VITE_USE_LOGIN_CAPTCHA && (e.code = await o()), w(e);
29
+ VITE_USE_LOGIN_CAPTCHA && (e.code = await s()), w(e);
29
30
  }
30
31
  let E = [
31
32
  {
@@ -53,40 +54,37 @@ var y = /* @__PURE__ */ f({
53
54
  },
54
55
  { slot: "submitBtn" }
55
56
  ];
56
- return (e, t) => {
57
- let r = m("TForm");
58
- return p(), l(s, null, {
59
- default: _(() => [d(h(i), {
60
- "animation-speed": 8,
61
- "class-name": "text-center text-2xl !font-bold mt-12 mb-10",
62
- colors: [
63
- "#000000",
64
- "#444951",
65
- "#8791a1"
66
- ],
67
- "show-border": !1,
68
- text: S.value
69
- }, null, 8, ["text"]), d(r, {
70
- ref_key: "formRef",
71
- ref: C,
72
- class: "mt-8!",
73
- items: E,
74
- onSubmit: T
57
+ return (e, t) => (m(), u(c, null, {
58
+ default: _(() => [f(h(i), {
59
+ "animation-speed": 8,
60
+ "class-name": "text-center text-2xl !font-bold mt-12 mb-10",
61
+ colors: [
62
+ "#000000",
63
+ "#444951",
64
+ "#8791a1"
65
+ ],
66
+ "show-border": !1,
67
+ text: S.value
68
+ }, null, 8, ["text"]), f(h(o), {
69
+ ref_key: "formRef",
70
+ ref: C,
71
+ class: "mt-8!",
72
+ items: E,
73
+ onSubmit: T
74
+ }, {
75
+ submitBtn: _(() => [f(h(n), {
76
+ block: "",
77
+ class: "mt-4!",
78
+ size: "large",
79
+ type: "submit"
75
80
  }, {
76
- submitBtn: _(() => [d(h(n), {
77
- block: "",
78
- class: "mt-4!",
79
- size: "large",
80
- type: "submit"
81
- }, {
82
- default: _(() => [...t[0] ||= [u("登录", -1)]]),
83
- _: 1
84
- })]),
81
+ default: _(() => [...t[0] ||= [d("登录", -1)]]),
85
82
  _: 1
86
- }, 512)]),
83
+ })]),
87
84
  _: 1
88
- });
89
- };
85
+ }, 512)]),
86
+ _: 1
87
+ }));
90
88
  }
91
89
  });
92
90
  //#endregion
package/package.json CHANGED
@@ -27,6 +27,10 @@
27
27
  "types": "./store/modules/*.d.ts",
28
28
  "import": "./store/modules/*.mjs"
29
29
  },
30
+ "./router": {
31
+ "types": "./router/index.d.ts",
32
+ "import": "./router/index.mjs"
33
+ },
30
34
  "./utils": {
31
35
  "types": "./utils/index.d.ts",
32
36
  "import": "./utils/index.mjs"
@@ -90,5 +94,5 @@
90
94
  "> 1%",
91
95
  "not dead"
92
96
  ],
93
- "version": "1.94.0"
97
+ "version": "1.95.0"
94
98
  }