@keyblade/pro-components 1.13.8-alpha.39 → 1.13.8-alpha.40
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/es/index.js +1 -1
- package/es/pro-calendar/index.d.ts +2 -0
- package/es/pro-calendar/index.js +1 -0
- package/es/pro-date-range-picker/index.d.ts +176 -7
- package/es/pro-date-range-picker/interface.d.ts +2 -2
- package/es/pro-date-range-picker/pro-date-range-picker.vue.d.ts +171 -5
- package/es/pro-date-range-picker/pro-date-range-picker.vue.js +1 -1
- package/es/pro-date-range-picker/pro-date-range-picker.vue2.js +111 -113
- package/es/pro-dates-picker/index.d.ts +11 -8
- package/es/pro-dates-picker/index.js +8 -8
- package/es/pro-dates-picker/index.vue.d.ts +3 -3
- package/es/pro-dates-picker/index.vue.js +96 -97
- package/es/pro-find-password/index.d.ts +2 -0
- package/es/pro-find-password/index.js +5 -5
- package/es/pro-find-password/index.vue.d.ts +830 -66
- package/es/pro-find-password/index.vue.js +132 -134
- package/es/pro-find-password/reset-password.vue.d.ts +192 -1
- package/es/pro-find-password/reset-password.vue.js +120 -122
- package/es/pro-find-password/verify-user-name.vue.d.ts +384 -2
- package/es/pro-find-password/verify-user-name.vue.js +74 -76
- package/es/pro-footer-bar/index.d.ts +3 -0
- package/es/pro-footer-bar/index.vue.js +2 -2
- package/es/pro-footer-bar/index.vue2.js +24 -26
- package/es/pro-form-group/index.d.ts +1 -0
- package/es/pro-form-group/index.vue.js +1 -1
- package/es/pro-form-group/index.vue2.js +31 -32
- package/es/pro-image-upload/cropper.vue.js +2 -2
- package/es/pro-image-upload/cropper.vue2.js +198 -199
- package/es/pro-image-upload/image-upload.vue.d.ts +648 -2
- package/es/pro-image-upload/image-upload.vue.js +74 -75
- package/es/pro-image-upload/index.d.ts +327 -1
- package/es/pro-image-upload/index.js +1 -1
- package/es/pro-keep-alive-router-view/index.d.ts +1 -0
- package/es/pro-layout/index.d.ts +4 -3
- package/es/pro-layout/index.js +1 -1
- package/es/pro-layout/pro-layout.vue.d.ts +1 -1
- package/es/pro-layout/pro-layout.vue.js +222 -218
- package/es/pro-loader/index.d.ts +2 -0
- package/es/pro-login/form-mobile.vue.d.ts +384 -2
- package/es/pro-login/form-mobile.vue.js +97 -99
- package/es/pro-login/form-password.vue.d.ts +192 -1
- package/es/pro-login/form-password.vue.js +72 -74
- package/es/pro-login/index.d.ts +2 -0
- package/es/pro-login/index.vue.d.ts +831 -67
- package/es/pro-login/index.vue.js +62 -64
- package/es/pro-menu/index.d.ts +2 -0
- package/es/pro-menu/menu-item.vue.js +13 -13
- package/es/pro-menu/pro-menu.vue.js +28 -30
- package/es/pro-menu/sub-menu.vue.js +20 -19
- package/es/pro-page-container/index.d.ts +3 -0
- package/es/pro-page-container/pro-page-container.vue.js +46 -44
- package/es/pro-page-header/index.d.ts +3 -0
- package/es/pro-page-header/index.js +6 -6
- package/es/pro-page-header/pro-page-header.vue.js +78 -77
- package/es/pro-reuse-tabs/index.d.ts +5 -3
- package/es/pro-reuse-tabs/index.js +1 -1
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.d.ts +1 -1
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.js +33 -35
- package/es/pro-table/index.d.ts +6 -3
- package/es/pro-table/index.js +7 -7
- package/es/pro-table/index.vue.d.ts +2 -2
- package/es/pro-table/index.vue.js +68 -70
- package/es/pro-textarea/index.d.ts +7 -5
- package/es/pro-textarea/index.vue.js +2 -2
- package/es/pro-textarea/index.vue2.js +14 -16
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { regexp as
|
|
3
|
-
|
|
1
|
+
import { defineComponent as B, ref as i, onBeforeUnmount as U, createBlock as I, openBlock as c, unref as o, normalizeClass as f, withCtx as r, createVNode as s, mergeProps as u, createElementBlock as q, createTextVNode as V, toDisplayString as F, normalizeProps as R, guardReactiveProps as T } from "vue";
|
|
2
|
+
import { regexp as E, message as x } from "../pro-login/regexp.js";
|
|
3
|
+
import { Form as D, FormItem as p, Input as b, Button as C, InputPassword as N } from "@arco-design/web-vue";
|
|
4
|
+
const G = /* @__PURE__ */ B({
|
|
4
5
|
__name: "reset-password",
|
|
5
6
|
props: {
|
|
6
7
|
current: {},
|
|
@@ -26,156 +27,153 @@ const j = /* @__PURE__ */ U({
|
|
|
26
27
|
required: !0,
|
|
27
28
|
message: "请输入新密码"
|
|
28
29
|
}, {
|
|
29
|
-
validator: (
|
|
30
|
-
|
|
30
|
+
validator: (a, e) => {
|
|
31
|
+
E.password.test(a) || e(x.password);
|
|
31
32
|
}
|
|
32
33
|
}],
|
|
33
34
|
again: [{
|
|
34
35
|
required: !0,
|
|
35
36
|
message: "请再次输入新密码"
|
|
36
37
|
}, {
|
|
37
|
-
validator: (
|
|
38
|
-
|
|
38
|
+
validator: (a, e) => {
|
|
39
|
+
t.value.password !== a && e("两次输入的密码不同");
|
|
39
40
|
}
|
|
40
41
|
}],
|
|
41
42
|
captcha: [{
|
|
42
43
|
required: !0,
|
|
43
44
|
message: "请输入验证码"
|
|
44
45
|
}]
|
|
45
|
-
},
|
|
46
|
+
}, m = i(), t = i({
|
|
46
47
|
password: "",
|
|
47
48
|
again: "",
|
|
48
49
|
captcha: ""
|
|
49
|
-
}),
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
}), d = i(), n = i(v.countdown), P = k;
|
|
51
|
+
U(() => {
|
|
52
|
+
d.value && w();
|
|
52
53
|
});
|
|
53
54
|
const $ = () => {
|
|
54
|
-
P("submit",
|
|
55
|
-
},
|
|
55
|
+
P("submit", t.value);
|
|
56
|
+
}, g = (a) => {
|
|
56
57
|
var e;
|
|
57
|
-
(e =
|
|
58
|
+
(e = m.value) == null || e.clearValidate(a);
|
|
58
59
|
}, w = () => {
|
|
59
|
-
|
|
60
|
+
n.value = v.countdown, clearInterval(d.value), d.value = void 0;
|
|
60
61
|
}, z = () => {
|
|
61
|
-
var
|
|
62
|
-
(
|
|
63
|
-
if (!e &&
|
|
64
|
-
if (
|
|
62
|
+
var a;
|
|
63
|
+
(a = m.value) == null || a.validateField("mobile", (e) => {
|
|
64
|
+
if (!e && n.value >= 60) {
|
|
65
|
+
if (d.value)
|
|
65
66
|
return;
|
|
66
|
-
P("send-sms-code"),
|
|
67
|
-
|
|
67
|
+
P("send-sms-code"), n.value--, d.value = setInterval(() => {
|
|
68
|
+
n.value > 0 ? n.value-- : w();
|
|
68
69
|
}, 1e3);
|
|
69
70
|
}
|
|
70
71
|
});
|
|
71
72
|
};
|
|
72
73
|
return h({
|
|
73
|
-
formRef:
|
|
74
|
+
formRef: m,
|
|
74
75
|
resetTime: w
|
|
75
|
-
}), (
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
class: f(`${o.prefixClsName}-mobile-send-code`),
|
|
111
|
-
onClick: z
|
|
112
|
-
}, {
|
|
113
|
-
default: s(() => e[6] || (e[6] = [
|
|
114
|
-
N(" 获取短信验证码 ")
|
|
115
|
-
])),
|
|
116
|
-
_: 1
|
|
117
|
-
}, 8, ["class"])) : (g(), R("div", {
|
|
118
|
-
key: 1,
|
|
119
|
-
class: f(`${o.prefixClsName}-mobile-time`)
|
|
120
|
-
}, T(r.value) + "秒后可重新发送 ", 3))
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
}, 16, ["modelValue"])
|
|
124
|
-
]),
|
|
125
|
-
_: 1
|
|
126
|
-
}, 16),
|
|
127
|
-
t(p, n({ field: "password" }, o.formItemProps), {
|
|
128
|
-
default: s(() => [
|
|
129
|
-
t(I, n(o.inputProps, {
|
|
130
|
-
modelValue: l.value.password,
|
|
131
|
-
"onUpdate:modelValue": e[2] || (e[2] = (a) => l.value.password = a),
|
|
132
|
-
"max-length": 32,
|
|
133
|
-
placeholder: "请输入您新的登录密码",
|
|
134
|
-
autocomplete: "new-password",
|
|
135
|
-
onInput: e[3] || (e[3] = (a) => c("password"))
|
|
136
|
-
}), null, 16, ["modelValue"])
|
|
137
|
-
]),
|
|
138
|
-
_: 1
|
|
139
|
-
}, 16),
|
|
140
|
-
t(p, n({ field: "again" }, o.formItemProps), {
|
|
141
|
-
default: s(() => [
|
|
142
|
-
t(I, n(o.inputProps, {
|
|
143
|
-
modelValue: l.value.again,
|
|
144
|
-
"onUpdate:modelValue": e[4] || (e[4] = (a) => l.value.again = a),
|
|
145
|
-
"max-length": 32,
|
|
146
|
-
placeholder: "请再次输入您新的登录密码",
|
|
147
|
-
autocomplete: "new-password",
|
|
148
|
-
onInput: e[5] || (e[5] = (a) => c("again"))
|
|
149
|
-
}), null, 16, ["modelValue"])
|
|
150
|
-
]),
|
|
151
|
-
_: 1
|
|
152
|
-
}, 16),
|
|
153
|
-
t(p, E(_(o.formItemProps)), {
|
|
154
|
-
default: s(() => {
|
|
155
|
-
var a;
|
|
156
|
-
return [
|
|
157
|
-
t(C, {
|
|
158
|
-
type: "primary",
|
|
159
|
-
long: "",
|
|
160
|
-
"html-type": "submit",
|
|
161
|
-
size: (a = o.inputProps) == null ? void 0 : a.size,
|
|
162
|
-
class: f(`${o.prefixClsName}-reset-password-submit`)
|
|
76
|
+
}), (a, e) => (c(), I(o(D), {
|
|
77
|
+
ref_key: "formRef",
|
|
78
|
+
ref: m,
|
|
79
|
+
model: t.value,
|
|
80
|
+
rules: S,
|
|
81
|
+
class: f(`${a.prefixClsName}-reset-password`),
|
|
82
|
+
onSubmitSuccess: $
|
|
83
|
+
}, {
|
|
84
|
+
default: r(() => [
|
|
85
|
+
s(o(p), u({ field: "phoneNum" }, a.formItemProps), {
|
|
86
|
+
default: r(() => [
|
|
87
|
+
s(o(b), u(a.inputProps, {
|
|
88
|
+
"default-value": a.phoneNum,
|
|
89
|
+
"max-length": 16,
|
|
90
|
+
disabled: ""
|
|
91
|
+
}), null, 16, ["default-value"])
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
}, 16),
|
|
95
|
+
s(o(p), u({ field: "captcha" }, a.formItemProps), {
|
|
96
|
+
default: r(() => [
|
|
97
|
+
s(o(b), u(a.inputProps, {
|
|
98
|
+
modelValue: t.value.captcha,
|
|
99
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.captcha = l),
|
|
100
|
+
"max-length": 6,
|
|
101
|
+
placeholder: "请输入短信验证码",
|
|
102
|
+
autocomplete: "off",
|
|
103
|
+
onInput: e[1] || (e[1] = (l) => g("captcha"))
|
|
104
|
+
}), {
|
|
105
|
+
append: r(() => [
|
|
106
|
+
n.value >= v.countdown ? (c(), I(o(C), {
|
|
107
|
+
key: 0,
|
|
108
|
+
type: "outline",
|
|
109
|
+
class: f(`${a.prefixClsName}-mobile-send-code`),
|
|
110
|
+
onClick: z
|
|
163
111
|
}, {
|
|
164
|
-
default:
|
|
165
|
-
|
|
112
|
+
default: r(() => e[6] || (e[6] = [
|
|
113
|
+
V(" 获取短信验证码 ")
|
|
166
114
|
])),
|
|
167
115
|
_: 1
|
|
168
|
-
}, 8, ["
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
116
|
+
}, 8, ["class"])) : (c(), q("div", {
|
|
117
|
+
key: 1,
|
|
118
|
+
class: f(`${a.prefixClsName}-mobile-time`)
|
|
119
|
+
}, F(n.value) + "秒后可重新发送 ", 3))
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
}, 16, ["modelValue"])
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
}, 16),
|
|
126
|
+
s(o(p), u({ field: "password" }, a.formItemProps), {
|
|
127
|
+
default: r(() => [
|
|
128
|
+
s(o(N), u(a.inputProps, {
|
|
129
|
+
modelValue: t.value.password,
|
|
130
|
+
"onUpdate:modelValue": e[2] || (e[2] = (l) => t.value.password = l),
|
|
131
|
+
"max-length": 32,
|
|
132
|
+
placeholder: "请输入您新的登录密码",
|
|
133
|
+
autocomplete: "new-password",
|
|
134
|
+
onInput: e[3] || (e[3] = (l) => g("password"))
|
|
135
|
+
}), null, 16, ["modelValue"])
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}, 16),
|
|
139
|
+
s(o(p), u({ field: "again" }, a.formItemProps), {
|
|
140
|
+
default: r(() => [
|
|
141
|
+
s(o(N), u(a.inputProps, {
|
|
142
|
+
modelValue: t.value.again,
|
|
143
|
+
"onUpdate:modelValue": e[4] || (e[4] = (l) => t.value.again = l),
|
|
144
|
+
"max-length": 32,
|
|
145
|
+
placeholder: "请再次输入您新的登录密码",
|
|
146
|
+
autocomplete: "new-password",
|
|
147
|
+
onInput: e[5] || (e[5] = (l) => g("again"))
|
|
148
|
+
}), null, 16, ["modelValue"])
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
}, 16),
|
|
152
|
+
s(o(p), R(T(a.formItemProps)), {
|
|
153
|
+
default: r(() => {
|
|
154
|
+
var l;
|
|
155
|
+
return [
|
|
156
|
+
s(o(C), {
|
|
157
|
+
type: "primary",
|
|
158
|
+
long: "",
|
|
159
|
+
"html-type": "submit",
|
|
160
|
+
size: (l = a.inputProps) == null ? void 0 : l.size,
|
|
161
|
+
class: f(`${a.prefixClsName}-reset-password-submit`)
|
|
162
|
+
}, {
|
|
163
|
+
default: r(() => e[7] || (e[7] = [
|
|
164
|
+
V(" 确认 ")
|
|
165
|
+
])),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["size", "class"])
|
|
168
|
+
];
|
|
169
|
+
}),
|
|
170
|
+
_: 1
|
|
171
|
+
}, 16)
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
}, 8, ["model", "class"]));
|
|
177
175
|
}
|
|
178
176
|
});
|
|
179
177
|
export {
|
|
180
|
-
|
|
178
|
+
G as default
|
|
181
179
|
};
|