@keyblade/pro-components 1.13.8-alpha.34 → 1.13.8-alpha.36
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 +2 -0
- package/es/global-props.d.ts +12 -6
- package/es/index.d.ts +2 -0
- package/es/index.js +46 -38
- package/es/inerface.d.ts +4 -2
- package/es/pro-calendar/calendar.vue.d.ts +4 -4
- package/es/pro-calendar/header.vue.d.ts +1 -1
- package/es/pro-calendar/index.d.ts +21 -21
- package/es/pro-calendar/month.vue.d.ts +1 -1
- package/es/pro-calendar/week.vue.d.ts +1 -1
- package/es/pro-calendar/year.vue.d.ts +1 -1
- package/es/pro-date-range-picker/index.d.ts +12 -11
- package/es/pro-date-range-picker/pro-date-range-picker.vue.d.ts +3 -2
- package/es/pro-date-range-picker/pro-date-range-picker.vue.js +2 -2
- package/es/pro-date-range-picker/pro-date-range-picker.vue2.js +68 -64
- package/es/pro-dates-picker/index.d.ts +6 -6
- package/es/pro-dates-picker/index.vue.d.ts +2 -2
- 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 +9 -0
- package/es/pro-find-password/index.js +12 -0
- package/es/pro-find-password/index.vue.d.ts +3695 -0
- package/es/pro-find-password/index.vue.js +178 -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 +400 -0
- package/es/pro-find-password/reset-password.vue.js +181 -0
- package/es/pro-find-password/reset-password.vue2.js +4 -0
- package/es/pro-find-password/verify-user-name.vue.d.ts +413 -0
- package/es/pro-find-password/verify-user-name.vue.js +114 -0
- package/es/pro-find-password/verify-user-name.vue3.js +5 -0
- package/es/pro-footer-bar/index.d.ts +3 -3
- package/es/pro-footer-bar/index.vue.d.ts +1 -1
- package/es/pro-footer-bar/index.vue.js +2 -2
- package/es/pro-form-group/index.d.ts +6 -6
- package/es/pro-form-group/index.vue.d.ts +2 -2
- package/es/pro-form-group/index.vue.js +1 -1
- package/es/pro-image-upload/image-upload.vue.d.ts +1 -1
- package/es/pro-image-upload/index.d.ts +3 -3
- package/es/pro-layout/index.d.ts +5 -3
- package/es/pro-layout/pro-layout.vue.d.ts +3 -1
- package/es/pro-layout/pro-layout.vue.js +92 -89
- package/es/pro-loader/index.d.ts +3 -3
- package/es/pro-loader/index.vue.d.ts +1 -1
- 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 +415 -0
- package/es/pro-login/form-mobile.vue.js +148 -0
- package/es/pro-login/form-mobile.vue2.js +4 -0
- package/es/pro-login/form-password.vue.d.ts +393 -0
- package/es/pro-login/form-password.vue.js +101 -0
- package/es/pro-login/form-password.vue2.js +4 -0
- package/es/pro-login/index.d.ts +9 -0
- package/es/pro-login/index.js +12 -0
- package/es/pro-login/index.vue.d.ts +3665 -0
- package/es/pro-login/index.vue.js +107 -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-page-container/constant.d.ts +2 -0
- package/es/pro-page-container/constant.js +9 -0
- package/es/pro-page-container/index.d.ts +6 -33
- package/es/pro-page-container/interface.d.ts +12 -0
- package/es/pro-page-container/pro-page-container.vue.d.ts +4 -19
- package/es/pro-page-container/pro-page-container.vue.js +51 -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 +3 -153
- package/es/pro-page-header/interface.d.ts +21 -0
- package/es/pro-page-header/pro-page-header.vue.d.ts +2 -105
- package/es/pro-page-header/pro-page-header.vue.js +140 -126
- package/es/pro-reuse-tabs/index.d.ts +3 -3
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.d.ts +1 -1
- package/es/pro-table/index.d.ts +9 -9
- package/es/pro-table/index.vue.d.ts +3 -3
- package/es/pro-textarea/index.d.ts +4 -4
- package/es/pro-textarea/index.vue.d.ts +1 -1
- package/es/pro-textarea/index.vue.js +2 -2
- package/es/pro-textarea/{inerface.d.ts → interface.d.ts} +19 -18
- package/es/style.css +1 -1
- package/package.json +2 -1
- package/es/pro-page-container/inerface.d.ts +0 -12
- /package/es/pro-calendar/{inerface.d.ts → interface.d.ts} +0 -0
- /package/es/pro-date-range-picker/{inerface.d.ts → interface.d.ts} +0 -0
- /package/es/pro-dates-picker/{inerface.d.ts → interface.d.ts} +0 -0
- /package/es/pro-footer-bar/{inerface.d.ts → interface.d.ts} +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { defineComponent as $, useSlots as I, ref as _, computed as w, resolveComponent as i, createBlock as p, openBlock as u, mergeProps as l, withCtx as s, createVNode as f, renderSlot as P, unref as r, createSlots as x } from "vue";
|
|
2
|
+
import { EProLoginType as a } from "./enum.js";
|
|
3
|
+
import B from "./form-mobile.vue.js";
|
|
4
|
+
import L from "./form-password.vue.js";
|
|
5
|
+
const S = "keyblade-pro-login", V = /* @__PURE__ */ $({
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
activeKey: { default: a.password },
|
|
9
|
+
cardProps: { default: () => ({
|
|
10
|
+
bordered: !1
|
|
11
|
+
}) },
|
|
12
|
+
inputProps: { default: () => ({
|
|
13
|
+
size: "large"
|
|
14
|
+
}) },
|
|
15
|
+
formItemProps: { default: () => ({
|
|
16
|
+
hideLabel: !0,
|
|
17
|
+
validateTrigger: []
|
|
18
|
+
}) },
|
|
19
|
+
countdown: {},
|
|
20
|
+
onSendSmsCode: {},
|
|
21
|
+
onSubmitSuccess: {},
|
|
22
|
+
"update:activeKey": {}
|
|
23
|
+
},
|
|
24
|
+
emits: ["update:activeKey", "submit-success", "send-sms-code"],
|
|
25
|
+
setup(g, { expose: K, emit: k }) {
|
|
26
|
+
const n = k, R = I(), m = _(), c = _(), d = g, v = w(() => ({
|
|
27
|
+
inputProps: d.inputProps,
|
|
28
|
+
formItemProps: d.formItemProps,
|
|
29
|
+
prefixClsName: S
|
|
30
|
+
})), b = w({
|
|
31
|
+
get: () => d.activeKey,
|
|
32
|
+
set: (e) => n("update:activeKey", e)
|
|
33
|
+
});
|
|
34
|
+
return K({
|
|
35
|
+
get resetTime() {
|
|
36
|
+
var e, o;
|
|
37
|
+
return (o = (e = m.value) == null ? void 0 : e.resetTime) != null ? o : (() => {
|
|
38
|
+
});
|
|
39
|
+
},
|
|
40
|
+
get mobileRef() {
|
|
41
|
+
var e;
|
|
42
|
+
return (e = m.value) == null ? void 0 : e.formRef;
|
|
43
|
+
},
|
|
44
|
+
get passwordRef() {
|
|
45
|
+
var e;
|
|
46
|
+
return (e = c.value) == null ? void 0 : e.formRef;
|
|
47
|
+
}
|
|
48
|
+
}), (e, o) => {
|
|
49
|
+
const y = i("a-tab-pane"), C = i("a-tabs"), T = i("a-card");
|
|
50
|
+
return u(), p(T, l({ class: S }, e.cardProps), {
|
|
51
|
+
default: s(() => [
|
|
52
|
+
f(C, {
|
|
53
|
+
activeKey: b.value,
|
|
54
|
+
"onUpdate:activeKey": o[3] || (o[3] = (t) => b.value = t)
|
|
55
|
+
}, {
|
|
56
|
+
default: s(() => [
|
|
57
|
+
(u(), p(y, {
|
|
58
|
+
key: r(a).mobile,
|
|
59
|
+
title: "短信登录"
|
|
60
|
+
}, {
|
|
61
|
+
default: s(() => [
|
|
62
|
+
f(B, l({
|
|
63
|
+
ref_key: "mobileRef",
|
|
64
|
+
ref: m,
|
|
65
|
+
countdown: e.countdown
|
|
66
|
+
}, v.value, {
|
|
67
|
+
onSendSmsCode: o[0] || (o[0] = (t) => n("send-sms-code", t)),
|
|
68
|
+
onSubmit: o[1] || (o[1] = (t) => n("submit-success", { value: t, type: r(a).mobile }))
|
|
69
|
+
}), x({ _: 2 }, [
|
|
70
|
+
r(R)["area-code"] ? {
|
|
71
|
+
name: "area-code",
|
|
72
|
+
fn: s(() => [
|
|
73
|
+
P(e.$slots, "area-code")
|
|
74
|
+
]),
|
|
75
|
+
key: "0"
|
|
76
|
+
} : void 0
|
|
77
|
+
]), 1040, ["countdown"])
|
|
78
|
+
]),
|
|
79
|
+
_: 3
|
|
80
|
+
})),
|
|
81
|
+
(u(), p(y, {
|
|
82
|
+
key: r(a).password,
|
|
83
|
+
title: "密码登录"
|
|
84
|
+
}, {
|
|
85
|
+
default: s(() => [
|
|
86
|
+
f(L, l({
|
|
87
|
+
ref_key: "passwordRef",
|
|
88
|
+
ref: c
|
|
89
|
+
}, v.value, {
|
|
90
|
+
onSubmit: o[2] || (o[2] = (t) => n("submit-success", { value: t, type: r(a).password }))
|
|
91
|
+
}), null, 16)
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
}))
|
|
95
|
+
]),
|
|
96
|
+
_: 3
|
|
97
|
+
}, 8, ["activeKey"]),
|
|
98
|
+
P(e.$slots, "footer")
|
|
99
|
+
]),
|
|
100
|
+
_: 3
|
|
101
|
+
}, 16);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
export {
|
|
106
|
+
V as default
|
|
107
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
import { FormInstance, FormItemInstance } from '@arco-design/web-vue';
|
|
3
|
+
import { EProLoginType } from './enum';
|
|
4
|
+
export * from './enum';
|
|
5
|
+
export interface ICardProps {
|
|
6
|
+
/** 是否显示边框 */
|
|
7
|
+
bordered?: boolean;
|
|
8
|
+
/** 是否为加载中 */
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
/** 是否可悬浮 */
|
|
11
|
+
hoverable?: boolean;
|
|
12
|
+
/** 卡片尺寸 */
|
|
13
|
+
size?: 'small' | 'medium';
|
|
14
|
+
/** 头部样式 */
|
|
15
|
+
headerStyle?: CSSProperties;
|
|
16
|
+
/** 内容区域样式 */
|
|
17
|
+
bodyStyle?: CSSProperties;
|
|
18
|
+
/** 卡片标题 */
|
|
19
|
+
title?: string;
|
|
20
|
+
/** 卡片右上角的操作区域 */
|
|
21
|
+
extra?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IInputProps {
|
|
24
|
+
/** 输入框大小 */
|
|
25
|
+
size?: 'mini' | 'small' | 'medium' | 'large';
|
|
26
|
+
/** 是否允许清空输入框 */
|
|
27
|
+
allowClear?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export type IProLogin = {
|
|
30
|
+
activeKey?: EProLoginType;
|
|
31
|
+
/** 卡片属性 */
|
|
32
|
+
cardProps?: ICardProps;
|
|
33
|
+
/** 输入框属性 */
|
|
34
|
+
inputProps?: IInputProps;
|
|
35
|
+
/** 表单项属性 */
|
|
36
|
+
formItemProps?: Partial<FormItemInstance>;
|
|
37
|
+
/** 倒计时(秒) */
|
|
38
|
+
countdown?: number;
|
|
39
|
+
/** 获取短信验证码 */
|
|
40
|
+
onSendSmsCode?: (value: string) => void;
|
|
41
|
+
/** 提交 */
|
|
42
|
+
onSubmitSuccess?: (value: IProLoginFormData) => void;
|
|
43
|
+
} & {
|
|
44
|
+
'update:activeKey'?: (value: EProLoginType) => void;
|
|
45
|
+
};
|
|
46
|
+
export type IProLoginByMobile = Omit<IProLogin, 'activeKey' | 'cardProps'> & {
|
|
47
|
+
prefixClsName: string;
|
|
48
|
+
};
|
|
49
|
+
export type IProLoginByPassword = Pick<IProLogin, 'inputProps' | 'formItemProps'> & {
|
|
50
|
+
prefixClsName: string;
|
|
51
|
+
};
|
|
52
|
+
export interface IProLoginFormRef {
|
|
53
|
+
formRef: FormInstance;
|
|
54
|
+
}
|
|
55
|
+
export interface IProLoginRef {
|
|
56
|
+
resetTime: () => void;
|
|
57
|
+
mobileRef: FormInstance;
|
|
58
|
+
passwordRef: FormInstance;
|
|
59
|
+
}
|
|
60
|
+
export type PasswordFormField = {
|
|
61
|
+
username: string;
|
|
62
|
+
password: string;
|
|
63
|
+
};
|
|
64
|
+
export type MobileFormField = {
|
|
65
|
+
mobile: string;
|
|
66
|
+
validCode: string;
|
|
67
|
+
};
|
|
68
|
+
export interface IProLoginFormData {
|
|
69
|
+
value: PasswordFormField | MobileFormField;
|
|
70
|
+
type: EProLoginType;
|
|
71
|
+
}
|
|
72
|
+
export type ProLoginProps = Partial<IProLogin>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const regexp: {
|
|
2
|
+
mobile: RegExp;
|
|
3
|
+
validCode: RegExp;
|
|
4
|
+
password: RegExp;
|
|
5
|
+
};
|
|
6
|
+
export declare const message: {
|
|
7
|
+
mobile: string;
|
|
8
|
+
validCode: string;
|
|
9
|
+
password: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 验证用户名+手机号
|
|
13
|
+
* @param value
|
|
14
|
+
* @param callback
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
export declare const testUserName: (value: string, callback: (err: string) => void) => void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const x = {
|
|
2
|
+
mobile: /^1[3-9]\d{9}$/,
|
|
3
|
+
validCode: /^\d{6}$/,
|
|
4
|
+
password: /^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)]|[()])+$)([^(0-9a-zA-Z)]|[()]|[a-z]|[A-Z]|[0-9]){6,32}$/
|
|
5
|
+
}, $ = {
|
|
6
|
+
mobile: "请填写正确的手机号",
|
|
7
|
+
validCode: "请输入6位数字验证码",
|
|
8
|
+
password: "包含大小写字母、数字、特殊字符至少2种,且为6-32位"
|
|
9
|
+
}, c = (e, r) => {
|
|
10
|
+
const t = {
|
|
11
|
+
verify: !1,
|
|
12
|
+
errText: ""
|
|
13
|
+
};
|
|
14
|
+
if (/^\d+$/.test(e)) {
|
|
15
|
+
x.mobile.test(e) || r($.mobile);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const i = /^[\u4E00-\u9FA50-9a-zA-Z_]{4,16}$/, o = /[\u4E00-\u9FA5]/, n = /[a-zA-Z]/, f = /[0-9]/;
|
|
19
|
+
let s = 0;
|
|
20
|
+
e.indexOf("_") >= 0 && s++, o.test(e) && s++, n.test(e) && s++, f.test(e) && s++;
|
|
21
|
+
const d = e.length;
|
|
22
|
+
e.length < 4 ? t.errText = "用户名长度至少4位" : d > 16 ? t.errText = "用户名不能超过16位" : i.test(e) ? s < 2 ? t.errText = "用户名必须至少包含数字、中文字符、英文字符、下划线中的两种类型" : t.verify = !0 : t.errText = "用户名必须是数字、中英文字符、下划线组成,不能包含其他特殊字符", t.verify || r(t.errText);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
$ as message,
|
|
26
|
+
x as regexp,
|
|
27
|
+
c as testUserName
|
|
28
|
+
};
|
|
@@ -1,54 +1,27 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
declare const ProPageContainer: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
-
hidePageHeader?: boolean;
|
|
5
|
-
showFooterBar?: boolean;
|
|
6
|
-
footerBarOptions?: import('..').ProFooterBarProps;
|
|
7
|
-
pageHeader?: import('./inerface').PageHeaderProps;
|
|
8
|
-
}> & Readonly<{
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./interface').PageContainerProps> & Readonly<{
|
|
9
4
|
onBack?: (() => any) | undefined;
|
|
10
5
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
6
|
back: () => any;
|
|
12
|
-
}, import('vue').PublicProps, {
|
|
13
|
-
hidePageHeader: boolean;
|
|
14
|
-
showFooterBar: boolean;
|
|
15
|
-
pageHeader: import('./inerface').PageHeaderProps;
|
|
16
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
7
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
17
8
|
P: {};
|
|
18
9
|
B: {};
|
|
19
10
|
D: {};
|
|
20
11
|
C: {};
|
|
21
12
|
M: {};
|
|
22
13
|
Defaults: {};
|
|
23
|
-
}, Readonly<{
|
|
24
|
-
hidePageHeader?: boolean;
|
|
25
|
-
showFooterBar?: boolean;
|
|
26
|
-
footerBarOptions?: import('..').ProFooterBarProps;
|
|
27
|
-
pageHeader?: import('./inerface').PageHeaderProps;
|
|
28
|
-
}> & Readonly<{
|
|
14
|
+
}, Readonly<import('./interface').PageContainerProps> & Readonly<{
|
|
29
15
|
onBack?: (() => any) | undefined;
|
|
30
|
-
}>, {}, {}, {}, {}, {
|
|
31
|
-
hidePageHeader: boolean;
|
|
32
|
-
showFooterBar: boolean;
|
|
33
|
-
pageHeader: import('./inerface').PageHeaderProps;
|
|
34
|
-
}>;
|
|
16
|
+
}>, {}, {}, {}, {}, {}>;
|
|
35
17
|
__isFragment?: never;
|
|
36
18
|
__isTeleport?: never;
|
|
37
19
|
__isSuspense?: never;
|
|
38
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
39
|
-
hidePageHeader?: boolean;
|
|
40
|
-
showFooterBar?: boolean;
|
|
41
|
-
footerBarOptions?: import('..').ProFooterBarProps;
|
|
42
|
-
pageHeader?: import('./inerface').PageHeaderProps;
|
|
43
|
-
}> & Readonly<{
|
|
20
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./interface').PageContainerProps> & Readonly<{
|
|
44
21
|
onBack?: (() => any) | undefined;
|
|
45
22
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
46
23
|
back: () => any;
|
|
47
|
-
}, string, {
|
|
48
|
-
hidePageHeader: boolean;
|
|
49
|
-
showFooterBar: boolean;
|
|
50
|
-
pageHeader: import('./inerface').PageHeaderProps;
|
|
51
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
24
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
52
25
|
$slots: {
|
|
53
26
|
default?(_: {}): any;
|
|
54
27
|
footerBar?(_: {}): any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ProFooterBarProps } from '../pro-footer-bar/interface.ts';
|
|
2
|
+
import { PageHeaderProps } from '../pro-page-header/interface.ts';
|
|
3
|
+
export interface PageContainerProps {
|
|
4
|
+
/** 是否隐藏页头 */
|
|
5
|
+
hidePageHeader?: boolean;
|
|
6
|
+
/** 是否显示底部栏 */
|
|
7
|
+
showFooterBar?: boolean;
|
|
8
|
+
/** 底部栏属性 */
|
|
9
|
+
footerBarOptions?: ProFooterBarProps;
|
|
10
|
+
/** 页头属性 */
|
|
11
|
+
pageHeader?: PageHeaderProps;
|
|
12
|
+
}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PageHeaderProps } from './inerface';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
/** 是否隐藏页头 */
|
|
5
|
-
hidePageHeader?: boolean;
|
|
6
|
-
/** 是否显示底部栏 */
|
|
7
|
-
showFooterBar?: boolean;
|
|
8
|
-
/** 底部栏属性 */
|
|
9
|
-
footerBarOptions?: ProFooterBarProps;
|
|
10
|
-
/** 页头属性 */
|
|
11
|
-
pageHeader?: PageHeaderProps;
|
|
12
|
-
};
|
|
1
|
+
import { PageContainerProps } from './interface.ts';
|
|
13
2
|
declare function __VLS_template(): {
|
|
14
3
|
attrs: Partial<{}>;
|
|
15
4
|
slots: {
|
|
@@ -20,15 +9,11 @@ declare function __VLS_template(): {
|
|
|
20
9
|
rootEl: HTMLDivElement;
|
|
21
10
|
};
|
|
22
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<PageContainerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
24
13
|
back: () => any;
|
|
25
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<PageContainerProps> & Readonly<{
|
|
26
15
|
onBack?: (() => any) | undefined;
|
|
27
|
-
}>, {
|
|
28
|
-
hidePageHeader: boolean;
|
|
29
|
-
showFooterBar: boolean;
|
|
30
|
-
pageHeader: PageHeaderProps;
|
|
31
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
32
17
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
18
|
export default _default;
|
|
34
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,56 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var I = Object.getOwnPropertySymbols;
|
|
3
|
+
var j = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var T = (a, e, r) => e in a ? S(a, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[e] = r, $ = (a, e) => {
|
|
5
|
+
for (var r in e || (e = {}))
|
|
6
|
+
j.call(e, r) && T(a, r, e[r]);
|
|
7
|
+
if (I)
|
|
8
|
+
for (var r of I(e))
|
|
9
|
+
q.call(e, r) && T(a, r, e[r]);
|
|
10
|
+
return a;
|
|
11
|
+
};
|
|
12
|
+
import { defineComponent as A, computed as w, resolveComponent as y, createElementBlock as D, openBlock as i, normalizeClass as x, createBlock as F, createCommentVNode as M, createElementVNode as G, renderSlot as N, mergeProps as J, withCtx as K } from "vue";
|
|
13
|
+
import { merge as R } from "es-toolkit/object";
|
|
14
|
+
import { globalProps as L } from "../global-props.js";
|
|
15
|
+
import { defaultPageContainerProps as Q } from "./constant.js";
|
|
16
|
+
const n = "keyblade-pro-page-container", re = /* @__PURE__ */ A({
|
|
3
17
|
__name: "pro-page-container",
|
|
4
18
|
props: {
|
|
5
|
-
hidePageHeader: { type: Boolean
|
|
6
|
-
showFooterBar: { type: Boolean
|
|
19
|
+
hidePageHeader: { type: Boolean },
|
|
20
|
+
showFooterBar: { type: Boolean },
|
|
7
21
|
footerBarOptions: {},
|
|
8
|
-
pageHeader: {
|
|
9
|
-
title: "",
|
|
10
|
-
subTitle: "",
|
|
11
|
-
titlePosition: "top",
|
|
12
|
-
hideTitle: !1,
|
|
13
|
-
breadcrumbRouterMode: !1,
|
|
14
|
-
breadcrumbPrefixIcon: "icon-apps",
|
|
15
|
-
breadcrumbItems: []
|
|
16
|
-
}) }
|
|
22
|
+
pageHeader: {}
|
|
17
23
|
},
|
|
18
24
|
emits: ["back"],
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
setup(a, { emit: e }) {
|
|
26
|
+
const r = e, E = a, o = w(() => {
|
|
27
|
+
var t;
|
|
28
|
+
return R($({}, Q), R(((t = L) == null ? void 0 : t.pageContainer) || {}, E || {}));
|
|
29
|
+
}), O = w(() => {
|
|
30
|
+
var t;
|
|
31
|
+
return (t = o.value) != null && t.showFooterBar ? [n, `${n}-with-footer-bar`] : [n];
|
|
32
|
+
});
|
|
33
|
+
return (t, l) => {
|
|
34
|
+
var s, d, p, u, m, c, b, f, g, k, v, h, B, P, H, _, C;
|
|
35
|
+
const V = y("kb-pro-page-header"), z = y("kb-pro-footer-bar");
|
|
36
|
+
return i(), D("div", {
|
|
37
|
+
class: x(O.value)
|
|
26
38
|
}, [
|
|
27
|
-
|
|
39
|
+
(s = o.value) != null && s.hidePageHeader ? M("", !0) : (i(), F(V, {
|
|
28
40
|
key: 0,
|
|
29
|
-
title:
|
|
30
|
-
subTitle:
|
|
31
|
-
titlePosition:
|
|
32
|
-
hideTitle:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
title: (p = (d = o.value) == null ? void 0 : d.pageHeader) == null ? void 0 : p.title,
|
|
42
|
+
subTitle: (m = (u = o.value) == null ? void 0 : u.pageHeader) == null ? void 0 : m.subTitle,
|
|
43
|
+
titlePosition: (b = (c = o.value) == null ? void 0 : c.pageHeader) == null ? void 0 : b.titlePosition,
|
|
44
|
+
hideTitle: (g = (f = o.value) == null ? void 0 : f.pageHeader) == null ? void 0 : g.hideTitle,
|
|
45
|
+
"hide-back-button": (v = (k = o.value) == null ? void 0 : k.pageHeader) == null ? void 0 : v.hideBackButton,
|
|
46
|
+
breadcrumbRouterMode: (B = (h = o.value) == null ? void 0 : h.pageHeader) == null ? void 0 : B.breadcrumbRouterMode,
|
|
47
|
+
breadcrumbPrefixIcon: (H = (P = o.value) == null ? void 0 : P.pageHeader) == null ? void 0 : H.breadcrumbPrefixIcon,
|
|
48
|
+
breadcrumbItems: (C = (_ = o.value) == null ? void 0 : _.pageHeader) == null ? void 0 : C.breadcrumbItems
|
|
49
|
+
}, null, 8, ["title", "subTitle", "titlePosition", "hideTitle", "hide-back-button", "breadcrumbRouterMode", "breadcrumbPrefixIcon", "breadcrumbItems"])),
|
|
50
|
+
G("div", {
|
|
51
|
+
class: x(`${n}-content`)
|
|
39
52
|
}, [
|
|
40
|
-
|
|
53
|
+
N(t.$slots, "default")
|
|
41
54
|
], 2),
|
|
42
|
-
|
|
43
|
-
onBack:
|
|
55
|
+
t.showFooterBar ? (i(), F(z, J({ key: 1 }, t.footerBarOptions, {
|
|
56
|
+
onBack: l[0] || (l[0] = (U) => r("back"))
|
|
44
57
|
}), {
|
|
45
|
-
default:
|
|
46
|
-
|
|
58
|
+
default: K(() => [
|
|
59
|
+
N(t.$slots, "footerBar")
|
|
47
60
|
]),
|
|
48
61
|
_: 3
|
|
49
|
-
}, 16)) :
|
|
62
|
+
}, 16)) : M("", !0)
|
|
50
63
|
], 2);
|
|
51
64
|
};
|
|
52
65
|
}
|
|
53
66
|
});
|
|
54
67
|
export {
|
|
55
|
-
|
|
68
|
+
re as default
|
|
56
69
|
};
|
|
@@ -1,167 +1,17 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
declare const ProPageHeader: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('
|
|
4
|
-
title: {
|
|
5
|
-
type: import('vue').PropType<string>;
|
|
6
|
-
required: false;
|
|
7
|
-
default: string;
|
|
8
|
-
};
|
|
9
|
-
subTitle: {
|
|
10
|
-
type: import('vue').PropType<string>;
|
|
11
|
-
required: false;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
titlePosition: {
|
|
15
|
-
type: import('vue').PropType<"top" | "bottom">;
|
|
16
|
-
required: false;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
hideTitle: {
|
|
20
|
-
type: import('vue').PropType<boolean>;
|
|
21
|
-
required: false;
|
|
22
|
-
default: boolean;
|
|
23
|
-
};
|
|
24
|
-
breadcrumbRouterMode: {
|
|
25
|
-
type: import('vue').PropType<boolean>;
|
|
26
|
-
required: false;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
breadcrumbPrefixIcon: {
|
|
30
|
-
type: import('vue').PropType<boolean | string>;
|
|
31
|
-
required: false;
|
|
32
|
-
default: string;
|
|
33
|
-
};
|
|
34
|
-
breadcrumbItems: {
|
|
35
|
-
type: import('vue').PropType<{
|
|
36
|
-
path?: string;
|
|
37
|
-
label: string;
|
|
38
|
-
}[]>;
|
|
39
|
-
required: false;
|
|
40
|
-
default: () => never[];
|
|
41
|
-
};
|
|
42
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
43
|
-
title: string;
|
|
44
|
-
subTitle: string;
|
|
45
|
-
titlePosition: "top" | "bottom";
|
|
46
|
-
hideTitle: boolean;
|
|
47
|
-
breadcrumbRouterMode: boolean;
|
|
48
|
-
breadcrumbPrefixIcon: string | boolean;
|
|
49
|
-
breadcrumbItems: {
|
|
50
|
-
path?: string;
|
|
51
|
-
label: string;
|
|
52
|
-
}[];
|
|
53
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./interface').PageHeaderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
54
4
|
P: {};
|
|
55
5
|
B: {};
|
|
56
6
|
D: {};
|
|
57
7
|
C: {};
|
|
58
8
|
M: {};
|
|
59
9
|
Defaults: {};
|
|
60
|
-
}, Readonly<import('
|
|
61
|
-
title: {
|
|
62
|
-
type: import('vue').PropType<string>;
|
|
63
|
-
required: false;
|
|
64
|
-
default: string;
|
|
65
|
-
};
|
|
66
|
-
subTitle: {
|
|
67
|
-
type: import('vue').PropType<string>;
|
|
68
|
-
required: false;
|
|
69
|
-
default: string;
|
|
70
|
-
};
|
|
71
|
-
titlePosition: {
|
|
72
|
-
type: import('vue').PropType<"top" | "bottom">;
|
|
73
|
-
required: false;
|
|
74
|
-
default: string;
|
|
75
|
-
};
|
|
76
|
-
hideTitle: {
|
|
77
|
-
type: import('vue').PropType<boolean>;
|
|
78
|
-
required: false;
|
|
79
|
-
default: boolean;
|
|
80
|
-
};
|
|
81
|
-
breadcrumbRouterMode: {
|
|
82
|
-
type: import('vue').PropType<boolean>;
|
|
83
|
-
required: false;
|
|
84
|
-
default: boolean;
|
|
85
|
-
};
|
|
86
|
-
breadcrumbPrefixIcon: {
|
|
87
|
-
type: import('vue').PropType<boolean | string>;
|
|
88
|
-
required: false;
|
|
89
|
-
default: string;
|
|
90
|
-
};
|
|
91
|
-
breadcrumbItems: {
|
|
92
|
-
type: import('vue').PropType<{
|
|
93
|
-
path?: string;
|
|
94
|
-
label: string;
|
|
95
|
-
}[]>;
|
|
96
|
-
required: false;
|
|
97
|
-
default: () => never[];
|
|
98
|
-
};
|
|
99
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
100
|
-
title: string;
|
|
101
|
-
subTitle: string;
|
|
102
|
-
titlePosition: "top" | "bottom";
|
|
103
|
-
hideTitle: boolean;
|
|
104
|
-
breadcrumbRouterMode: boolean;
|
|
105
|
-
breadcrumbPrefixIcon: string | boolean;
|
|
106
|
-
breadcrumbItems: {
|
|
107
|
-
path?: string;
|
|
108
|
-
label: string;
|
|
109
|
-
}[];
|
|
110
|
-
}>;
|
|
10
|
+
}, Readonly<import('./interface').PageHeaderProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
111
11
|
__isFragment?: never;
|
|
112
12
|
__isTeleport?: never;
|
|
113
13
|
__isSuspense?: never;
|
|
114
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('
|
|
115
|
-
title: {
|
|
116
|
-
type: import('vue').PropType<string>;
|
|
117
|
-
required: false;
|
|
118
|
-
default: string;
|
|
119
|
-
};
|
|
120
|
-
subTitle: {
|
|
121
|
-
type: import('vue').PropType<string>;
|
|
122
|
-
required: false;
|
|
123
|
-
default: string;
|
|
124
|
-
};
|
|
125
|
-
titlePosition: {
|
|
126
|
-
type: import('vue').PropType<"top" | "bottom">;
|
|
127
|
-
required: false;
|
|
128
|
-
default: string;
|
|
129
|
-
};
|
|
130
|
-
hideTitle: {
|
|
131
|
-
type: import('vue').PropType<boolean>;
|
|
132
|
-
required: false;
|
|
133
|
-
default: boolean;
|
|
134
|
-
};
|
|
135
|
-
breadcrumbRouterMode: {
|
|
136
|
-
type: import('vue').PropType<boolean>;
|
|
137
|
-
required: false;
|
|
138
|
-
default: boolean;
|
|
139
|
-
};
|
|
140
|
-
breadcrumbPrefixIcon: {
|
|
141
|
-
type: import('vue').PropType<boolean | string>;
|
|
142
|
-
required: false;
|
|
143
|
-
default: string;
|
|
144
|
-
};
|
|
145
|
-
breadcrumbItems: {
|
|
146
|
-
type: import('vue').PropType<{
|
|
147
|
-
path?: string;
|
|
148
|
-
label: string;
|
|
149
|
-
}[]>;
|
|
150
|
-
required: false;
|
|
151
|
-
default: () => never[];
|
|
152
|
-
};
|
|
153
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
154
|
-
title: string;
|
|
155
|
-
subTitle: string;
|
|
156
|
-
titlePosition: "top" | "bottom";
|
|
157
|
-
hideTitle: boolean;
|
|
158
|
-
breadcrumbRouterMode: boolean;
|
|
159
|
-
breadcrumbPrefixIcon: string | boolean;
|
|
160
|
-
breadcrumbItems: {
|
|
161
|
-
path?: string;
|
|
162
|
-
label: string;
|
|
163
|
-
}[];
|
|
164
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
14
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./interface').PageHeaderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
165
15
|
install: (app: App) => void;
|
|
166
16
|
};
|
|
167
17
|
export { ProPageHeader };
|