@keyblade/pro-components 1.13.8-alpha.8 → 1.14.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/es/components.d.ts +7 -0
- package/es/global-props.d.ts +21 -2
- package/es/global-props.js +6 -2
- package/es/index.d.ts +7 -0
- package/es/index.js +47 -28
- package/es/inerface.d.ts +5 -1
- package/es/pro-calendar/calendar.vue.d.ts +75 -0
- package/es/pro-calendar/calendar.vue.js +159 -0
- package/es/pro-calendar/calendar.vue3.js +5 -0
- package/es/pro-calendar/enum.d.ts +6 -0
- package/es/pro-calendar/enum.js +4 -0
- package/es/pro-calendar/header.vue.d.ts +35 -0
- package/es/pro-calendar/header.vue.js +146 -0
- package/es/pro-calendar/header.vue2.js +4 -0
- package/es/pro-calendar/hooks/useCellClassName.d.ts +12 -0
- package/es/pro-calendar/hooks/useCellClassName.js +40 -0
- package/es/pro-calendar/index.d.ts +117 -0
- package/es/pro-calendar/index.js +12 -0
- package/es/pro-calendar/interface.d.ts +89 -0
- package/es/pro-calendar/month.d.ts +5 -0
- package/es/pro-calendar/month.js +53 -0
- package/es/pro-calendar/month.vue.d.ts +22 -0
- package/es/pro-calendar/month.vue.js +126 -0
- package/es/pro-calendar/month.vue2.js +4 -0
- package/es/pro-calendar/week.vue.d.ts +3 -0
- package/es/pro-calendar/week.vue.js +34 -0
- package/es/pro-calendar/week.vue2.js +4 -0
- package/es/pro-calendar/year.vue.d.ts +3 -0
- package/es/pro-calendar/year.vue.js +123 -0
- package/es/pro-calendar/year.vue2.js +4 -0
- package/es/pro-date-range-picker/index.d.ts +183 -13
- package/es/pro-date-range-picker/index.js +6 -7
- package/es/pro-date-range-picker/interface.d.ts +38 -0
- package/es/pro-date-range-picker/pro-date-range-picker.vue.d.ts +173 -6
- 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 +127 -97
- package/es/pro-dates-picker/index.d.ts +49 -0
- package/es/pro-dates-picker/index.js +11 -0
- package/es/pro-dates-picker/index.vue.d.ts +29 -0
- package/es/pro-dates-picker/index.vue.js +135 -0
- package/es/pro-dates-picker/index.vue3.js +5 -0
- package/es/pro-dates-picker/interface.d.ts +38 -0
- package/es/pro-dates-picker/util.d.ts +12 -0
- package/es/pro-dates-picker/util.js +9 -0
- package/es/pro-find-password/enum.d.ts +8 -0
- package/es/pro-find-password/enum.js +4 -0
- package/es/pro-find-password/index.d.ts +11 -0
- package/es/pro-find-password/index.js +11 -0
- package/es/pro-find-password/index.vue.d.ts +4459 -0
- package/es/pro-find-password/index.vue.js +176 -0
- package/es/pro-find-password/index.vue3.js +5 -0
- package/es/pro-find-password/interface.d.ts +45 -0
- package/es/pro-find-password/reset-password.vue.d.ts +591 -0
- package/es/pro-find-password/reset-password.vue.js +179 -0
- package/es/pro-find-password/reset-password.vue2.js +4 -0
- package/es/pro-find-password/verify-user-name.vue.d.ts +795 -0
- package/es/pro-find-password/verify-user-name.vue.js +112 -0
- package/es/pro-find-password/verify-user-name.vue3.js +5 -0
- package/es/pro-footer-bar/index.d.ts +6 -3
- package/es/pro-footer-bar/index.js +6 -7
- package/es/pro-footer-bar/index.vue.d.ts +1 -1
- package/es/pro-footer-bar/index.vue.js +2 -2
- package/es/pro-footer-bar/index.vue2.js +24 -26
- package/es/pro-footer-bar/{inerface.d.ts → interface.d.ts} +1 -0
- package/es/pro-form-group/index.d.ts +7 -6
- package/es/pro-form-group/index.js +6 -8
- package/es/pro-form-group/index.vue.d.ts +2 -2
- 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 +200 -190
- package/es/pro-image-upload/image-upload.vue.d.ts +1124 -371
- package/es/pro-image-upload/image-upload.vue.js +178 -144
- package/es/pro-image-upload/index.d.ts +1727 -1001
- package/es/pro-image-upload/index.js +6 -8
- package/es/pro-keep-alive-router-view/index.d.ts +1 -0
- package/es/pro-keep-alive-router-view/pro-keep-alive-router-view.vue.js +17 -18
- package/es/pro-layout/hooks.d.ts +80 -1
- package/es/pro-layout/hooks.js +133 -84
- package/es/pro-layout/index.d.ts +9 -6
- package/es/pro-layout/index.js +6 -11
- package/es/pro-layout/pro-layout.vue.d.ts +4 -2
- package/es/pro-layout/pro-layout.vue.js +220 -208
- package/es/pro-loader/index.d.ts +43 -0
- package/es/pro-loader/index.js +11 -0
- package/es/pro-loader/index.vue.d.ts +28 -0
- package/es/pro-loader/index.vue.js +112 -0
- package/es/pro-loader/index.vue3.js +5 -0
- package/es/pro-loader/interface.d.ts +16 -0
- package/es/pro-login/enum.d.ts +6 -0
- package/es/pro-login/enum.js +4 -0
- package/es/pro-login/form-mobile.vue.d.ts +797 -0
- package/es/pro-login/form-mobile.vue.js +146 -0
- package/es/pro-login/form-mobile.vue2.js +4 -0
- package/es/pro-login/form-password.vue.d.ts +584 -0
- package/es/pro-login/form-password.vue.js +99 -0
- package/es/pro-login/form-password.vue2.js +4 -0
- package/es/pro-login/index.d.ts +11 -0
- package/es/pro-login/index.js +11 -0
- package/es/pro-login/index.vue.d.ts +4429 -0
- package/es/pro-login/index.vue.js +105 -0
- package/es/pro-login/index.vue3.js +5 -0
- package/es/pro-login/interface.d.ts +72 -0
- package/es/pro-login/regexp.d.ts +17 -0
- package/es/pro-login/regexp.js +28 -0
- package/es/pro-menu/index.d.ts +18 -80
- package/es/pro-menu/index.js +6 -7
- package/es/pro-menu/interface.d.ts +31 -0
- package/es/pro-menu/menu-item.vue.d.ts +27 -0
- package/es/pro-menu/menu-item.vue.js +35 -0
- package/es/pro-menu/menu-item.vue2.js +4 -0
- package/es/pro-menu/pro-menu-item.vue.d.ts +9 -0
- package/es/pro-menu/pro-menu-item.vue.js +63 -0
- package/es/pro-menu/pro-menu-item.vue2.js +4 -0
- package/es/pro-menu/pro-menu.vue.d.ts +9 -55
- package/es/pro-menu/pro-menu.vue.js +36 -119
- package/es/pro-menu/sub-menu.vue.d.ts +22 -0
- package/es/pro-menu/sub-menu.vue.js +55 -0
- package/es/pro-menu/sub-menu.vue2.js +4 -0
- package/es/pro-menu/util.d.ts +9 -0
- package/es/pro-menu/util.js +7 -0
- package/es/pro-page-container/constant.d.ts +2 -0
- package/es/pro-page-container/constant.js +9 -0
- package/es/pro-page-container/index.d.ts +7 -21
- package/es/pro-page-container/index.js +6 -8
- package/es/pro-page-container/interface.d.ts +12 -0
- package/es/pro-page-container/pro-page-container.vue.d.ts +4 -15
- package/es/pro-page-container/pro-page-container.vue.js +58 -38
- package/es/pro-page-header/constant.d.ts +2 -0
- package/es/pro-page-header/constant.js +13 -0
- package/es/pro-page-header/index.d.ts +12 -146
- package/es/pro-page-header/index.js +6 -8
- package/es/pro-page-header/interface.d.ts +21 -0
- package/es/pro-page-header/pro-page-header.vue.d.ts +18 -103
- package/es/pro-page-header/pro-page-header.vue.js +141 -124
- package/es/pro-reuse-tabs/index.d.ts +8 -6
- package/es/pro-reuse-tabs/index.js +6 -7
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.d.ts +2 -2
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.js +33 -35
- package/es/pro-table/index.d.ts +18 -18
- package/es/pro-table/index.js +6 -7
- package/es/pro-table/index.vue.d.ts +6 -6
- package/es/pro-table/index.vue.js +94 -39
- package/es/pro-table/interface.d.ts +73 -65
- package/es/pro-textarea/index.d.ts +7 -5
- package/es/pro-textarea/index.js +5 -6
- package/es/pro-textarea/index.vue.d.ts +1 -1
- package/es/pro-textarea/index.vue.js +1 -1
- package/es/pro-textarea/index.vue2.js +14 -16
- package/es/pro-textarea/{inerface.d.ts → interface.d.ts} +19 -18
- package/es/style.css +1 -1
- package/es/utils.d.ts +6 -0
- package/es/utils.js +7 -0
- package/package.json +5 -4
- package/es/pro-date-range-picker/type.d.ts +0 -22
- package/es/pro-page-container/inerface.d.ts +0 -12
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { defineComponent as L, useSlots as U, ref as p, computed as z, onBeforeUnmount as h, watch as j, createBlock as S, openBlock as a, unref as r, mergeProps as g, withCtx as o, renderSlot as d, createVNode as s, createCommentVNode as k, createElementBlock as B, createTextVNode as c, createSlots as q, normalizeClass as v, normalizeProps as T, guardReactiveProps as E, createElementVNode as x, toDisplayString as A } from "vue";
|
|
2
|
+
import { Card as G, Space as H, Steps as J, Step as $, Form as K, FormItem as V, Button as M } from "@arco-design/web-vue";
|
|
3
|
+
import { EFindPasswordSteps as b } from "./enum.js";
|
|
4
|
+
import O from "./verify-user-name.vue.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import Q from "./reset-password.vue.js";
|
|
7
|
+
const W = { key: 1 }, u = "keyblade-find-password", oe = /* @__PURE__ */ L({
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
current: { default: 1 },
|
|
11
|
+
phoneNum: { default: "" },
|
|
12
|
+
cardProps: { default: () => ({
|
|
13
|
+
bordered: !1
|
|
14
|
+
}) },
|
|
15
|
+
inputProps: { default: () => ({
|
|
16
|
+
size: "large"
|
|
17
|
+
}) },
|
|
18
|
+
countdown: {},
|
|
19
|
+
formItemProps: { default: () => ({
|
|
20
|
+
hideLabel: !0,
|
|
21
|
+
validateTrigger: []
|
|
22
|
+
}) },
|
|
23
|
+
onNext: {},
|
|
24
|
+
onSendSmsCode: {},
|
|
25
|
+
onEntry: {},
|
|
26
|
+
"update:current": {}
|
|
27
|
+
},
|
|
28
|
+
emits: ["send-sms-code", "update:current", "next", "entry"],
|
|
29
|
+
setup(F, { expose: _, emit: D }) {
|
|
30
|
+
const n = F, l = D, N = U(), y = p(), R = p(), w = z(() => ({
|
|
31
|
+
inputProps: n.inputProps,
|
|
32
|
+
formItemProps: n.formItemProps,
|
|
33
|
+
prefixClsName: u
|
|
34
|
+
})), i = z({
|
|
35
|
+
get: () => n.current,
|
|
36
|
+
set: (e) => l("update:current", e)
|
|
37
|
+
}), m = p(), f = p(4);
|
|
38
|
+
h(() => {
|
|
39
|
+
m.value && I();
|
|
40
|
+
});
|
|
41
|
+
const C = (e) => {
|
|
42
|
+
n.current >= 3 || l("next", n.current + 1, e);
|
|
43
|
+
}, I = () => {
|
|
44
|
+
f.value = 4, clearInterval(m.value), m.value = void 0;
|
|
45
|
+
};
|
|
46
|
+
return j(() => n.current, (e) => {
|
|
47
|
+
e >= 3 && (m.value = setInterval(() => {
|
|
48
|
+
f.value > 0 ? f.value-- : (I(), l("entry"));
|
|
49
|
+
}, 1e3));
|
|
50
|
+
}), _({
|
|
51
|
+
get resetTime() {
|
|
52
|
+
var e, t;
|
|
53
|
+
return (t = (e = y.value) == null ? void 0 : e.resetTime) != null ? t : (() => {
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
get resetRef() {
|
|
57
|
+
var e;
|
|
58
|
+
return (e = y.value) == null ? void 0 : e.formRef;
|
|
59
|
+
},
|
|
60
|
+
get verifyRef() {
|
|
61
|
+
var e;
|
|
62
|
+
return (e = R.value) == null ? void 0 : e.formRef;
|
|
63
|
+
}
|
|
64
|
+
}), (e, t) => (a(), S(r(G), g({ class: u }, e.cardProps), {
|
|
65
|
+
default: o(() => [
|
|
66
|
+
d(e.$slots, "header"),
|
|
67
|
+
s(r(H), {
|
|
68
|
+
direction: "vertical",
|
|
69
|
+
fill: "",
|
|
70
|
+
size: "large"
|
|
71
|
+
}, {
|
|
72
|
+
default: o(() => [
|
|
73
|
+
s(r(J), {
|
|
74
|
+
current: i.value,
|
|
75
|
+
"label-placement": "vertical"
|
|
76
|
+
}, {
|
|
77
|
+
default: o(() => [
|
|
78
|
+
s(r($), null, {
|
|
79
|
+
default: o(() => t[2] || (t[2] = [
|
|
80
|
+
c("验证用户名")
|
|
81
|
+
])),
|
|
82
|
+
_: 1
|
|
83
|
+
}),
|
|
84
|
+
s(r($), null, {
|
|
85
|
+
default: o(() => t[3] || (t[3] = [
|
|
86
|
+
c("重置密码")
|
|
87
|
+
])),
|
|
88
|
+
_: 1
|
|
89
|
+
}),
|
|
90
|
+
s(r($), null, {
|
|
91
|
+
default: o(() => t[4] || (t[4] = [
|
|
92
|
+
c("完成")
|
|
93
|
+
])),
|
|
94
|
+
_: 1
|
|
95
|
+
})
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
}, 8, ["current"]),
|
|
99
|
+
d(e.$slots, "content"),
|
|
100
|
+
i.value === r(b).verify ? (a(), S(O, g({ key: 0 }, w.value, {
|
|
101
|
+
ref_key: "verifyRef",
|
|
102
|
+
ref: R,
|
|
103
|
+
onSubmit: C
|
|
104
|
+
}), q({ _: 2 }, [
|
|
105
|
+
r(N)["verify-code"] ? {
|
|
106
|
+
name: "verify-code",
|
|
107
|
+
fn: o(() => [
|
|
108
|
+
d(e.$slots, "verify-code")
|
|
109
|
+
]),
|
|
110
|
+
key: "0"
|
|
111
|
+
} : void 0
|
|
112
|
+
]), 1040)) : k("", !0),
|
|
113
|
+
i.value === r(b).reset ? (a(), S(Q, g({ key: 1 }, w.value, {
|
|
114
|
+
ref_key: "resetRef",
|
|
115
|
+
ref: y,
|
|
116
|
+
countdown: e.countdown,
|
|
117
|
+
"phone-num": e.phoneNum,
|
|
118
|
+
onSendSmsCode: t[0] || (t[0] = () => l("send-sms-code")),
|
|
119
|
+
onSubmit: C
|
|
120
|
+
}), null, 16, ["countdown", "phone-num"])) : k("", !0),
|
|
121
|
+
i.value === r(b).succeed ? (a(), B("div", {
|
|
122
|
+
key: 2,
|
|
123
|
+
class: v(`${u}-succeed`)
|
|
124
|
+
}, [
|
|
125
|
+
r(N).succeed ? d(e.$slots, "succeed", { key: 0 }) : (a(), B("div", W, [
|
|
126
|
+
s(r(K), {
|
|
127
|
+
model: {},
|
|
128
|
+
class: v(`${u}-succeed`),
|
|
129
|
+
onSubmit: t[1] || (t[1] = (P) => l("entry"))
|
|
130
|
+
}, {
|
|
131
|
+
default: o(() => [
|
|
132
|
+
s(r(V), T(E(e.formItemProps)), {
|
|
133
|
+
default: o(() => [
|
|
134
|
+
x("div", {
|
|
135
|
+
class: v(`${u}-succeed-message`)
|
|
136
|
+
}, " 重置密码成功," + A(f.value) + "秒后自动返回 ", 3)
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
}, 16),
|
|
140
|
+
s(r(V), T(E(e.formItemProps)), {
|
|
141
|
+
default: o(() => {
|
|
142
|
+
var P;
|
|
143
|
+
return [
|
|
144
|
+
s(r(M), {
|
|
145
|
+
type: "primary",
|
|
146
|
+
long: "",
|
|
147
|
+
"html-type": "submit",
|
|
148
|
+
size: (P = e.inputProps) == null ? void 0 : P.size,
|
|
149
|
+
class: v(`${u}-succeed-submit`)
|
|
150
|
+
}, {
|
|
151
|
+
default: o(() => t[5] || (t[5] = [
|
|
152
|
+
c(" 确认 ")
|
|
153
|
+
])),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 8, ["size", "class"])
|
|
156
|
+
];
|
|
157
|
+
}),
|
|
158
|
+
_: 1
|
|
159
|
+
}, 16)
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, ["class"])
|
|
163
|
+
]))
|
|
164
|
+
], 2)) : k("", !0)
|
|
165
|
+
]),
|
|
166
|
+
_: 3
|
|
167
|
+
}),
|
|
168
|
+
d(e.$slots, "footer")
|
|
169
|
+
]),
|
|
170
|
+
_: 3
|
|
171
|
+
}, 16));
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
export {
|
|
175
|
+
oe as default
|
|
176
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FormInstance, FormItemInstance } from '@arco-design/web-vue';
|
|
2
|
+
import { ICardProps, IInputProps } from '../pro-login/interface';
|
|
3
|
+
import { EFindPasswordSteps } from './enum';
|
|
4
|
+
export * from './enum';
|
|
5
|
+
export type IFindPassword = {
|
|
6
|
+
/** 当前步骤 */
|
|
7
|
+
current?: EFindPasswordSteps | number;
|
|
8
|
+
/** 手机号 */
|
|
9
|
+
phoneNum?: string;
|
|
10
|
+
/** 卡片属性 */
|
|
11
|
+
cardProps?: ICardProps;
|
|
12
|
+
/** 输入框属性 */
|
|
13
|
+
inputProps?: IInputProps;
|
|
14
|
+
/** 倒计时(秒) */
|
|
15
|
+
countdown?: number;
|
|
16
|
+
/** 表单项属性 */
|
|
17
|
+
formItemProps?: Partial<FormItemInstance>;
|
|
18
|
+
/** 下一步 */
|
|
19
|
+
onNext?: (current: number) => void;
|
|
20
|
+
/** 获取短信验证码 */
|
|
21
|
+
onSendSmsCode?: (value: string) => void;
|
|
22
|
+
/** 修改成功,返回 */
|
|
23
|
+
onEntry?: () => void;
|
|
24
|
+
} & {
|
|
25
|
+
'update:current'?: (value: number) => void;
|
|
26
|
+
};
|
|
27
|
+
export type IFindPasswordVerifyUserName = Omit<IFindPassword, 'cardProps'> & {
|
|
28
|
+
prefixClsName: string;
|
|
29
|
+
};
|
|
30
|
+
export type IFindPasswordReset = Omit<IFindPassword, 'cardProps'> & {
|
|
31
|
+
phoneNum: string;
|
|
32
|
+
prefixClsName: string;
|
|
33
|
+
};
|
|
34
|
+
export type VerifyUserNameFormField = {
|
|
35
|
+
username: string;
|
|
36
|
+
captcha: string;
|
|
37
|
+
};
|
|
38
|
+
export type ResetPasswordFormField = {
|
|
39
|
+
password: string;
|
|
40
|
+
again: string;
|
|
41
|
+
captcha: string;
|
|
42
|
+
};
|
|
43
|
+
export interface IFindPasswordFormRef {
|
|
44
|
+
formRef: FormInstance;
|
|
45
|
+
}
|