@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,114 @@
|
|
|
1
|
+
import { defineComponent as N, useSlots as h, ref as d, resolveComponent as s, createBlock as I, openBlock as S, normalizeClass as f, withCtx as a, createVNode as n, mergeProps as m, renderSlot as z, createCommentVNode as k, unref as $, normalizeProps as w, guardReactiveProps as x, createTextVNode as R } from "vue";
|
|
2
|
+
import { testUserName as U } from "../pro-login/regexp.js";
|
|
3
|
+
const c = "keyblade-find-password", E = /* @__PURE__ */ N({
|
|
4
|
+
__name: "verify-user-name",
|
|
5
|
+
props: {
|
|
6
|
+
current: {},
|
|
7
|
+
phoneNum: {},
|
|
8
|
+
inputProps: { default: () => ({
|
|
9
|
+
size: "large"
|
|
10
|
+
}) },
|
|
11
|
+
countdown: {},
|
|
12
|
+
formItemProps: { default: () => ({
|
|
13
|
+
hideLabel: !0,
|
|
14
|
+
validateTrigger: []
|
|
15
|
+
}) },
|
|
16
|
+
onNext: {},
|
|
17
|
+
onSendSmsCode: {},
|
|
18
|
+
onEntry: {},
|
|
19
|
+
"update:current": {},
|
|
20
|
+
prefixClsName: {}
|
|
21
|
+
},
|
|
22
|
+
emits: ["submit"],
|
|
23
|
+
setup(q, { expose: v, emit: y }) {
|
|
24
|
+
const P = y, _ = h(), l = d(), r = d({
|
|
25
|
+
username: "",
|
|
26
|
+
captcha: ""
|
|
27
|
+
}), b = {
|
|
28
|
+
username: [{
|
|
29
|
+
required: !0,
|
|
30
|
+
message: "请输入用户名或手机号"
|
|
31
|
+
}, {
|
|
32
|
+
validator: U
|
|
33
|
+
}],
|
|
34
|
+
captcha: [{
|
|
35
|
+
required: !0,
|
|
36
|
+
message: "请输入验证码"
|
|
37
|
+
}]
|
|
38
|
+
}, p = (o) => {
|
|
39
|
+
var e;
|
|
40
|
+
(e = l.value) == null || e.clearValidate(o);
|
|
41
|
+
}, g = () => {
|
|
42
|
+
P("submit", r.value);
|
|
43
|
+
};
|
|
44
|
+
return v({
|
|
45
|
+
formRef: l
|
|
46
|
+
}), (o, e) => {
|
|
47
|
+
const i = s("a-input"), u = s("a-form-item"), V = s("a-button"), C = s("a-form");
|
|
48
|
+
return S(), I(C, {
|
|
49
|
+
ref_key: "formRef",
|
|
50
|
+
ref: l,
|
|
51
|
+
model: r.value,
|
|
52
|
+
rules: b,
|
|
53
|
+
class: f(`${c}-verify-user-name`),
|
|
54
|
+
onSubmitSuccess: g
|
|
55
|
+
}, {
|
|
56
|
+
default: a(() => [
|
|
57
|
+
n(u, m({ field: "username" }, o.formItemProps), {
|
|
58
|
+
default: a(() => [
|
|
59
|
+
n(i, m(o.inputProps, {
|
|
60
|
+
modelValue: r.value.username,
|
|
61
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => r.value.username = t),
|
|
62
|
+
"max-length": 16,
|
|
63
|
+
placeholder: "请输入用户名/手机号",
|
|
64
|
+
onInput: e[1] || (e[1] = (t) => p("username"))
|
|
65
|
+
}), null, 16, ["modelValue"])
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 16),
|
|
69
|
+
n(u, m({ field: "captcha" }, o.formItemProps), {
|
|
70
|
+
default: a(() => [
|
|
71
|
+
n(i, m(o.inputProps, {
|
|
72
|
+
modelValue: r.value.captcha,
|
|
73
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => r.value.captcha = t),
|
|
74
|
+
"max-length": 4,
|
|
75
|
+
placeholder: "请输入短信验证码",
|
|
76
|
+
onInput: e[3] || (e[3] = (t) => p("captcha"))
|
|
77
|
+
}), {
|
|
78
|
+
append: a(() => [
|
|
79
|
+
$(_)["verify-code"] ? z(o.$slots, "verify-code", { key: 0 }) : k("", !0)
|
|
80
|
+
]),
|
|
81
|
+
_: 3
|
|
82
|
+
}, 16, ["modelValue"])
|
|
83
|
+
]),
|
|
84
|
+
_: 3
|
|
85
|
+
}, 16),
|
|
86
|
+
n(u, w(x(o.formItemProps)), {
|
|
87
|
+
default: a(() => {
|
|
88
|
+
var t;
|
|
89
|
+
return [
|
|
90
|
+
n(V, {
|
|
91
|
+
type: "primary",
|
|
92
|
+
long: "",
|
|
93
|
+
"html-type": "submit",
|
|
94
|
+
size: (t = o.inputProps) == null ? void 0 : t.size,
|
|
95
|
+
class: f(`${c}-verify-submit`)
|
|
96
|
+
}, {
|
|
97
|
+
default: a(() => e[4] || (e[4] = [
|
|
98
|
+
R(" 下一步 ")
|
|
99
|
+
])),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 8, ["size", "class"])
|
|
102
|
+
];
|
|
103
|
+
}),
|
|
104
|
+
_: 1
|
|
105
|
+
}, 16)
|
|
106
|
+
]),
|
|
107
|
+
_: 3
|
|
108
|
+
}, 8, ["model", "class"]);
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
export {
|
|
113
|
+
E as default
|
|
114
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
declare const ProFooterBar: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./interface').ProFooterBarProps> & Readonly<{
|
|
4
4
|
onBack?: (() => any) | undefined;
|
|
5
5
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
6
|
back: () => any;
|
|
@@ -13,7 +13,7 @@ declare const ProFooterBar: {
|
|
|
13
13
|
C: {};
|
|
14
14
|
M: {};
|
|
15
15
|
Defaults: {};
|
|
16
|
-
}, Readonly<import('./
|
|
16
|
+
}, Readonly<import('./interface').ProFooterBarProps> & Readonly<{
|
|
17
17
|
onBack?: (() => any) | undefined;
|
|
18
18
|
}>, {}, {}, {}, {}, {
|
|
19
19
|
backText: string;
|
|
@@ -21,7 +21,7 @@ declare const ProFooterBar: {
|
|
|
21
21
|
__isFragment?: never;
|
|
22
22
|
__isTeleport?: never;
|
|
23
23
|
__isSuspense?: never;
|
|
24
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./
|
|
24
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./interface').ProFooterBarProps> & Readonly<{
|
|
25
25
|
onBack?: (() => any) | undefined;
|
|
26
26
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
27
27
|
back: () => any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-05cbcd1b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -2,11 +2,11 @@ import { App } from 'vue';
|
|
|
2
2
|
declare const ProFormGroup: {
|
|
3
3
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
4
|
label: string;
|
|
5
|
-
heading?:
|
|
5
|
+
heading?: 1 | 6 | 2 | 3 | 4 | 5;
|
|
6
6
|
extra?: string;
|
|
7
7
|
hideIcon?: boolean;
|
|
8
8
|
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
9
|
-
heading:
|
|
9
|
+
heading: 1 | 6 | 2 | 3 | 4 | 5;
|
|
10
10
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
11
11
|
P: {};
|
|
12
12
|
B: {};
|
|
@@ -16,22 +16,22 @@ declare const ProFormGroup: {
|
|
|
16
16
|
Defaults: {};
|
|
17
17
|
}, Readonly<{
|
|
18
18
|
label: string;
|
|
19
|
-
heading?:
|
|
19
|
+
heading?: 1 | 6 | 2 | 3 | 4 | 5;
|
|
20
20
|
extra?: string;
|
|
21
21
|
hideIcon?: boolean;
|
|
22
22
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
23
|
-
heading:
|
|
23
|
+
heading: 1 | 6 | 2 | 3 | 4 | 5;
|
|
24
24
|
}>;
|
|
25
25
|
__isFragment?: never;
|
|
26
26
|
__isTeleport?: never;
|
|
27
27
|
__isSuspense?: never;
|
|
28
28
|
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
29
29
|
label: string;
|
|
30
|
-
heading?:
|
|
30
|
+
heading?: 1 | 6 | 2 | 3 | 4 | 5;
|
|
31
31
|
extra?: string;
|
|
32
32
|
hideIcon?: boolean;
|
|
33
33
|
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
34
|
-
heading:
|
|
34
|
+
heading: 1 | 6 | 2 | 3 | 4 | 5;
|
|
35
35
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
36
36
|
$slots: {
|
|
37
37
|
default?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
label: string;
|
|
3
3
|
/** 标题大小 */
|
|
4
|
-
heading?:
|
|
4
|
+
heading?: 1 | 6 | 2 | 3 | 4 | 5;
|
|
5
5
|
/** 扩展提示 */
|
|
6
6
|
extra?: string;
|
|
7
7
|
/** 隐藏icon */
|
|
@@ -17,7 +17,7 @@ declare function __VLS_template(): {
|
|
|
17
17
|
};
|
|
18
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
19
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
-
heading:
|
|
20
|
+
heading: 1 | 6 | 2 | 3 | 4 | 5;
|
|
21
21
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
23
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-da3b25bd"]]);
|
|
5
5
|
export {
|
|
6
6
|
_ as default
|
|
7
7
|
};
|
|
@@ -716,8 +716,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
716
716
|
}>, {
|
|
717
717
|
disabled: boolean;
|
|
718
718
|
name: string;
|
|
719
|
-
multiple: boolean;
|
|
720
719
|
accept: string[];
|
|
720
|
+
multiple: boolean;
|
|
721
721
|
singleLimit: number;
|
|
722
722
|
hideInnerBeforeUploadLoading: boolean;
|
|
723
723
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -662,8 +662,8 @@ declare const ProImageUpload: {
|
|
|
662
662
|
}, import('vue').PublicProps, {
|
|
663
663
|
disabled: boolean;
|
|
664
664
|
name: string;
|
|
665
|
-
multiple: boolean;
|
|
666
665
|
accept: string[];
|
|
666
|
+
multiple: boolean;
|
|
667
667
|
singleLimit: number;
|
|
668
668
|
hideInnerBeforeUploadLoading: boolean;
|
|
669
669
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
@@ -1370,8 +1370,8 @@ declare const ProImageUpload: {
|
|
|
1370
1370
|
}, {}, {}, {}, {
|
|
1371
1371
|
disabled: boolean;
|
|
1372
1372
|
name: string;
|
|
1373
|
-
multiple: boolean;
|
|
1374
1373
|
accept: string[];
|
|
1374
|
+
multiple: boolean;
|
|
1375
1375
|
singleLimit: number;
|
|
1376
1376
|
hideInnerBeforeUploadLoading: boolean;
|
|
1377
1377
|
}>;
|
|
@@ -2040,8 +2040,8 @@ declare const ProImageUpload: {
|
|
|
2040
2040
|
}, string, {
|
|
2041
2041
|
disabled: boolean;
|
|
2042
2042
|
name: string;
|
|
2043
|
-
multiple: boolean;
|
|
2044
2043
|
accept: string[];
|
|
2044
|
+
multiple: boolean;
|
|
2045
2045
|
singleLimit: number;
|
|
2046
2046
|
hideInnerBeforeUploadLoading: boolean;
|
|
2047
2047
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
package/es/pro-layout/index.d.ts
CHANGED
|
@@ -7,12 +7,12 @@ declare const ProLayout: {
|
|
|
7
7
|
collapse: (_collapsed: boolean) => void;
|
|
8
8
|
keepAliveIncludeChange: (_keepAliveInclude: string[]) => void;
|
|
9
9
|
}, import('vue').PublicProps, {
|
|
10
|
+
layout: import('./enum').ProLayoutMode;
|
|
10
11
|
title: string;
|
|
11
12
|
menuProps: Partial<import('@arco-design/web-vue/es/menu/interface').MenuProps>;
|
|
12
13
|
tabsSize: "mini" | "small" | "medium" | "large";
|
|
13
14
|
tabsType: "line" | "card" | "card-gutter" | "text" | "rounded" | "capsule";
|
|
14
15
|
tabsHeaderPadding: boolean;
|
|
15
|
-
layout: import('./enum').ProLayoutMode;
|
|
16
16
|
hideHeader: boolean;
|
|
17
17
|
hiderSider: boolean;
|
|
18
18
|
headerHeight: number;
|
|
@@ -36,12 +36,12 @@ declare const ProLayout: {
|
|
|
36
36
|
onCollapse?: ((_collapsed: boolean) => any) | undefined;
|
|
37
37
|
onKeepAliveIncludeChange?: ((_keepAliveInclude: string[]) => any) | undefined;
|
|
38
38
|
}>, {}, {}, {}, {}, {
|
|
39
|
+
layout: import('./enum').ProLayoutMode;
|
|
39
40
|
title: string;
|
|
40
41
|
menuProps: Partial<import('@arco-design/web-vue/es/menu/interface').MenuProps>;
|
|
41
42
|
tabsSize: "mini" | "small" | "medium" | "large";
|
|
42
43
|
tabsType: "line" | "card" | "card-gutter" | "text" | "rounded" | "capsule";
|
|
43
44
|
tabsHeaderPadding: boolean;
|
|
44
|
-
layout: import('./enum').ProLayoutMode;
|
|
45
45
|
hideHeader: boolean;
|
|
46
46
|
hiderSider: boolean;
|
|
47
47
|
headerHeight: number;
|
|
@@ -65,12 +65,12 @@ declare const ProLayout: {
|
|
|
65
65
|
collapse: (_collapsed: boolean) => void;
|
|
66
66
|
keepAliveIncludeChange: (_keepAliveInclude: string[]) => void;
|
|
67
67
|
}, string, {
|
|
68
|
+
layout: import('./enum').ProLayoutMode;
|
|
68
69
|
title: string;
|
|
69
70
|
menuProps: Partial<import('@arco-design/web-vue/es/menu/interface').MenuProps>;
|
|
70
71
|
tabsSize: "mini" | "small" | "medium" | "large";
|
|
71
72
|
tabsType: "line" | "card" | "card-gutter" | "text" | "rounded" | "capsule";
|
|
72
73
|
tabsHeaderPadding: boolean;
|
|
73
|
-
layout: import('./enum').ProLayoutMode;
|
|
74
74
|
hideHeader: boolean;
|
|
75
75
|
hiderSider: boolean;
|
|
76
76
|
headerHeight: number;
|
|
@@ -86,6 +86,8 @@ declare const ProLayout: {
|
|
|
86
86
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
87
87
|
$slots: {
|
|
88
88
|
'header-left'?(_: {}): any;
|
|
89
|
+
'header-left-logo-img'?(_: {}): any;
|
|
90
|
+
'header-left-logo-title'?(_: {}): any;
|
|
89
91
|
'header-center-left'?(_: {}): any;
|
|
90
92
|
'header-center-center'?(_: {}): any;
|
|
91
93
|
'header-center-right'?(_: {}): any;
|
|
@@ -4,6 +4,8 @@ declare function __VLS_template(): {
|
|
|
4
4
|
attrs: Partial<{}>;
|
|
5
5
|
slots: {
|
|
6
6
|
'header-left'?(_: {}): any;
|
|
7
|
+
'header-left-logo-img'?(_: {}): any;
|
|
8
|
+
'header-left-logo-title'?(_: {}): any;
|
|
7
9
|
'header-center-left'?(_: {}): any;
|
|
8
10
|
'header-center-center'?(_: {}): any;
|
|
9
11
|
'header-center-right'?(_: {}): any;
|
|
@@ -22,12 +24,12 @@ declare const __VLS_component: import('vue').DefineComponent<IProLayoutProps, {}
|
|
|
22
24
|
onCollapse?: ((_collapsed: boolean) => any) | undefined;
|
|
23
25
|
onKeepAliveIncludeChange?: ((_keepAliveInclude: string[]) => any) | undefined;
|
|
24
26
|
}>, {
|
|
27
|
+
layout: ProLayoutMode;
|
|
25
28
|
title: string;
|
|
26
29
|
menuProps: Partial<import('@arco-design/web-vue/es/menu/interface').MenuProps>;
|
|
27
30
|
tabsSize: "mini" | "small" | "medium" | "large";
|
|
28
31
|
tabsType: "line" | "card" | "card-gutter" | "text" | "rounded" | "capsule";
|
|
29
32
|
tabsHeaderPadding: boolean;
|
|
30
|
-
layout: ProLayoutMode;
|
|
31
33
|
hideHeader: boolean;
|
|
32
34
|
hiderSider: boolean;
|
|
33
35
|
headerHeight: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as ne, useCssVars as de, ref as V, useSlots as re, computed as ie, provide as P, onMounted as ue, watch as F, resolveComponent as a, createBlock as
|
|
1
|
+
import { defineComponent as ne, useCssVars as de, ref as V, useSlots as re, computed as ie, provide as P, onMounted as ue, watch as F, resolveComponent as a, createBlock as u, openBlock as s, normalizeClass as l, withCtx as n, createCommentVNode as d, createVNode as p, createElementVNode as h, renderSlot as c, createElementBlock as k, unref as o, Fragment as b, createTextVNode as T, toDisplayString as B } from "vue";
|
|
2
2
|
import { useHooks as pe } from "./hooks.js";
|
|
3
3
|
import { ProLayoutMode as ce, ProLayoutMenuType as g } from "./enum.js";
|
|
4
|
-
const me = ["src"],
|
|
4
|
+
const me = ["src"], fe = ["src"], t = "keyblade-pro-layout", ye = 48, ge = /* @__PURE__ */ ne({
|
|
5
5
|
__name: "pro-layout",
|
|
6
6
|
props: {
|
|
7
7
|
layout: { default: ce.mix },
|
|
@@ -32,11 +32,11 @@ const me = ["src"], ye = ["src"], o = "keyblade-pro-layout", fe = 48, ge = /* @_
|
|
|
32
32
|
},
|
|
33
33
|
setup(_, { emit: E }) {
|
|
34
34
|
de((e) => ({
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
35
|
+
"02b0fea0": W.value,
|
|
36
|
+
"8612f486": Q,
|
|
37
|
+
"77c045a8": U
|
|
38
38
|
}));
|
|
39
|
-
const
|
|
39
|
+
const m = _, I = E, y = re(), M = ie(() => m.hiderSider || v.value.length > 0 && H.value.length === 0), {
|
|
40
40
|
topMenuItems: v,
|
|
41
41
|
siderMenuItems: H,
|
|
42
42
|
topMenuSelectedKeys: L,
|
|
@@ -50,90 +50,93 @@ const me = ["src"], ye = ["src"], o = "keyblade-pro-layout", fe = 48, ge = /* @_
|
|
|
50
50
|
onProMenuOpenKeysChange: w,
|
|
51
51
|
onTabClick: J,
|
|
52
52
|
onTabDelete: z
|
|
53
|
-
} = pe(
|
|
53
|
+
} = pe(m);
|
|
54
54
|
P("ProBreadcrumbItems", G), P("ProKeepAliveInclude", $), P("onProReuseTabDelete", z);
|
|
55
|
-
const W = V(`${
|
|
55
|
+
const W = V(`${m.headerHeight}px`), Q = `${m.siderWidth}px`, U = `${ye}px`, r = V(m.siderCollapsed), A = (e) => {
|
|
56
56
|
r.value = e, I("collapse", e);
|
|
57
57
|
};
|
|
58
58
|
return ue(() => {
|
|
59
|
-
|
|
60
|
-
}), F(() =>
|
|
61
|
-
r.value =
|
|
59
|
+
m.hideHeader && (W.value = "0px");
|
|
60
|
+
}), F(() => m.siderCollapsed, () => {
|
|
61
|
+
r.value = m.siderCollapsed;
|
|
62
62
|
}, { immediate: !0 }), F($, () => {
|
|
63
63
|
I("keepAliveIncludeChange", $.value);
|
|
64
|
-
}, { immediate: !0 }), (e,
|
|
65
|
-
const D = a("a-typography-title"), N = a("a-space"), O = a("kb-pro-menu"), X = a("a-layout-header"), Y = a("icon-menu-unfold"), Z = a("icon-menu-fold"), x = a("a-button"), ee = a("a-layout-sider"),
|
|
66
|
-
return
|
|
67
|
-
class:
|
|
64
|
+
}, { immediate: !0 }), (e, i) => {
|
|
65
|
+
const D = a("a-typography-title"), N = a("a-space"), O = a("kb-pro-menu"), X = a("a-layout-header"), Y = a("icon-menu-unfold"), Z = a("icon-menu-fold"), x = a("a-button"), ee = a("a-layout-sider"), oe = a("kb-pro-reuse-tabs"), te = a("a-affix"), le = a("kb-pro-keep-alive-router-view"), se = a("a-layout-content"), ae = a("a-layout-footer"), C = a("a-layout");
|
|
66
|
+
return s(), u(C, {
|
|
67
|
+
class: l([t, `${t}-${e.layout}`])
|
|
68
68
|
}, {
|
|
69
69
|
default: n(() => [
|
|
70
|
-
e.hideHeader ? d("", !0) : (
|
|
70
|
+
e.hideHeader ? d("", !0) : (s(), u(X, {
|
|
71
71
|
key: 0,
|
|
72
|
-
class:
|
|
72
|
+
class: l([`${t}-header`, { [`${t}-header-collapsed`]: r.value }])
|
|
73
73
|
}, {
|
|
74
74
|
default: n(() => [
|
|
75
75
|
h("div", {
|
|
76
|
-
class:
|
|
76
|
+
class: l(`${t}-header-left`)
|
|
77
77
|
}, [
|
|
78
|
-
|
|
79
|
-
e.layout !== "side" ? (
|
|
78
|
+
o(y)["header-left"] ? c(e.$slots, "header-left", { key: 0 }) : (s(), k(b, { key: 1 }, [
|
|
79
|
+
e.layout !== "side" ? (s(), k("div", {
|
|
80
80
|
key: 0,
|
|
81
|
-
class:
|
|
81
|
+
class: l(`${t}-header-left-logo`)
|
|
82
82
|
}, [
|
|
83
|
-
|
|
83
|
+
p(N, null, {
|
|
84
84
|
default: n(() => [
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
85
|
+
c(e.$slots, "header-left-logo-img", {}, () => [
|
|
86
|
+
h("img", {
|
|
87
|
+
class: l(`${t}-header-left-logo-img`),
|
|
88
|
+
alt: "logo",
|
|
89
|
+
src: e.logo
|
|
90
|
+
}, null, 10, me)
|
|
91
|
+
]),
|
|
92
|
+
r.value ? d("", !0) : c(e.$slots, "header-left-logo-title", { key: 0 }, () => [
|
|
93
|
+
p(D, {
|
|
94
|
+
class: l(`${t}-header-left-logo-title`),
|
|
95
|
+
heading: 5
|
|
96
|
+
}, {
|
|
97
|
+
default: n(() => [
|
|
98
|
+
T(B(e.title), 1)
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 8, ["class"])
|
|
102
|
+
])
|
|
100
103
|
]),
|
|
101
|
-
_:
|
|
104
|
+
_: 3
|
|
102
105
|
})
|
|
103
106
|
], 2)) : d("", !0)
|
|
104
107
|
], 64))
|
|
105
108
|
], 2),
|
|
106
109
|
h("div", {
|
|
107
|
-
class:
|
|
110
|
+
class: l(`${t}-header-center`)
|
|
108
111
|
}, [
|
|
109
|
-
|
|
110
|
-
|
|
112
|
+
o(y)["header-center-left"] ? c(e.$slots, "header-center-left", { key: 0 }) : d("", !0),
|
|
113
|
+
o(v).length > 0 ? (s(), u(O, {
|
|
111
114
|
key: 1,
|
|
112
115
|
mode: "horizontal",
|
|
113
|
-
"selected-keys":
|
|
114
|
-
"open-keys":
|
|
115
|
-
items:
|
|
116
|
+
"selected-keys": o(L),
|
|
117
|
+
"open-keys": o(j),
|
|
118
|
+
items: o(v),
|
|
116
119
|
"menu-props": e.menuProps,
|
|
117
|
-
onMenuItemClick:
|
|
118
|
-
onOpenKeysChange:
|
|
119
|
-
}, null, 8, ["selected-keys", "open-keys", "items", "menu-props"])) : (
|
|
120
|
-
|
|
120
|
+
onMenuItemClick: i[0] || (i[0] = (f) => o(S)(o(g).top, f)),
|
|
121
|
+
onOpenKeysChange: i[1] || (i[1] = (f) => o(w)(o(g).side, f))
|
|
122
|
+
}, null, 8, ["selected-keys", "open-keys", "items", "menu-props"])) : (s(), k(b, { key: 2 }, [
|
|
123
|
+
o(y)["header-center-center"] ? c(e.$slots, "header-center-center", { key: 0 }) : d("", !0)
|
|
121
124
|
], 64)),
|
|
122
|
-
|
|
125
|
+
o(y)["header-center-right"] ? c(e.$slots, "header-center-right", { key: 3 }) : d("", !0)
|
|
123
126
|
], 2),
|
|
124
127
|
h("div", {
|
|
125
|
-
class:
|
|
128
|
+
class: l(`${t}-header-right`)
|
|
126
129
|
}, [
|
|
127
|
-
|
|
130
|
+
c(e.$slots, "header-right")
|
|
128
131
|
], 2)
|
|
129
132
|
]),
|
|
130
133
|
_: 3
|
|
131
134
|
}, 8, ["class"])),
|
|
132
|
-
|
|
135
|
+
p(C, null, {
|
|
133
136
|
default: n(() => [
|
|
134
|
-
M.value ? d("", !0) : (
|
|
137
|
+
M.value ? d("", !0) : (s(), u(ee, {
|
|
135
138
|
key: 0,
|
|
136
|
-
class:
|
|
139
|
+
class: l([`${t}-sider`, { [`${t}-sider-collapsed`]: r.value }]),
|
|
137
140
|
width: e.siderWidth,
|
|
138
141
|
collapsible: !0,
|
|
139
142
|
breakpoint: e.siderBreakpoint,
|
|
@@ -143,23 +146,23 @@ const me = ["src"], ye = ["src"], o = "keyblade-pro-layout", fe = 48, ge = /* @_
|
|
|
143
146
|
}, {
|
|
144
147
|
default: n(() => [
|
|
145
148
|
h("div", {
|
|
146
|
-
class:
|
|
149
|
+
class: l(`${t}-sider-content`)
|
|
147
150
|
}, [
|
|
148
|
-
|
|
149
|
-
e.layout === "side" ? (
|
|
151
|
+
o(y)["sider-top"] ? c(e.$slots, "sider-top", { key: 0 }) : (s(), k(b, { key: 1 }, [
|
|
152
|
+
e.layout === "side" ? (s(), k("div", {
|
|
150
153
|
key: 0,
|
|
151
|
-
class:
|
|
154
|
+
class: l(`${t}-sider-content-logo`)
|
|
152
155
|
}, [
|
|
153
|
-
|
|
156
|
+
p(N, null, {
|
|
154
157
|
default: n(() => [
|
|
155
158
|
h("img", {
|
|
156
|
-
class:
|
|
159
|
+
class: l(`${t}-sider-content-logo-img`),
|
|
157
160
|
alt: "logo",
|
|
158
161
|
src: e.logo
|
|
159
|
-
}, null, 10,
|
|
160
|
-
r.value ? d("", !0) : (
|
|
162
|
+
}, null, 10, fe),
|
|
163
|
+
r.value ? d("", !0) : (s(), u(D, {
|
|
161
164
|
key: 0,
|
|
162
|
-
class:
|
|
165
|
+
class: l(`${t}-sider-content-logo-title`),
|
|
163
166
|
heading: 5
|
|
164
167
|
}, {
|
|
165
168
|
default: n(() => [
|
|
@@ -172,66 +175,66 @@ const me = ["src"], ye = ["src"], o = "keyblade-pro-layout", fe = 48, ge = /* @_
|
|
|
172
175
|
})
|
|
173
176
|
], 2)) : d("", !0)
|
|
174
177
|
], 64)),
|
|
175
|
-
|
|
178
|
+
p(O, {
|
|
176
179
|
mode: "vertical",
|
|
177
180
|
collapsed: r.value,
|
|
178
|
-
"selected-keys":
|
|
179
|
-
"open-keys":
|
|
180
|
-
items:
|
|
181
|
+
"selected-keys": o(R),
|
|
182
|
+
"open-keys": o(q),
|
|
183
|
+
items: o(H),
|
|
181
184
|
"menu-props": e.menuProps,
|
|
182
|
-
onMenuItemClick:
|
|
183
|
-
onOpenKeysChange:
|
|
185
|
+
onMenuItemClick: i[2] || (i[2] = (f) => o(S)(o(g).side, f)),
|
|
186
|
+
onOpenKeysChange: i[3] || (i[3] = (f) => o(w)(o(g).side, f))
|
|
184
187
|
}, null, 8, ["collapsed", "selected-keys", "open-keys", "items", "menu-props"])
|
|
185
188
|
], 2),
|
|
186
|
-
|
|
187
|
-
class:
|
|
189
|
+
p(x, {
|
|
190
|
+
class: l(`${t}-sider-collapse-btn`),
|
|
188
191
|
size: "mini",
|
|
189
|
-
onClick:
|
|
192
|
+
onClick: i[4] || (i[4] = (f) => A(!r.value))
|
|
190
193
|
}, {
|
|
191
194
|
icon: n(() => [
|
|
192
|
-
r.value ? (
|
|
195
|
+
r.value ? (s(), u(Y, { key: 0 })) : (s(), u(Z, { key: 1 }))
|
|
193
196
|
]),
|
|
194
197
|
_: 1
|
|
195
198
|
}, 8, ["class"])
|
|
196
199
|
]),
|
|
197
200
|
_: 3
|
|
198
201
|
}, 8, ["class", "width", "breakpoint", "collapsed"])),
|
|
199
|
-
|
|
200
|
-
class:
|
|
201
|
-
`${
|
|
202
|
-
{ [`${
|
|
203
|
-
{ [`${
|
|
202
|
+
p(C, {
|
|
203
|
+
class: l([
|
|
204
|
+
`${t}-body`,
|
|
205
|
+
{ [`${t}-body-hide-sider`]: M.value },
|
|
206
|
+
{ [`${t}-body-collapsed`]: r.value }
|
|
204
207
|
])
|
|
205
208
|
}, {
|
|
206
209
|
default: n(() => [
|
|
207
|
-
e.hideTabs ? d("", !0) : (
|
|
210
|
+
e.hideTabs ? d("", !0) : (s(), u(te, {
|
|
208
211
|
key: 0,
|
|
209
|
-
class:
|
|
212
|
+
class: l(`${t}-body-affix`),
|
|
210
213
|
offsetTop: e.hideHeader ? 0 : e.headerHeight
|
|
211
214
|
}, {
|
|
212
215
|
default: n(() => [
|
|
213
|
-
|
|
216
|
+
o(K).length > 0 ? (s(), u(oe, {
|
|
214
217
|
key: 0,
|
|
215
|
-
tabs:
|
|
218
|
+
tabs: o(K),
|
|
216
219
|
"tabs-size": e.tabsSize,
|
|
217
220
|
"tabs-type": e.tabsType,
|
|
218
221
|
"tabs-header-padding": e.tabsHeaderPadding,
|
|
219
|
-
onTabClick:
|
|
220
|
-
onTabDelete:
|
|
222
|
+
onTabClick: o(J),
|
|
223
|
+
onTabDelete: o(z)
|
|
221
224
|
}, null, 8, ["tabs", "tabs-size", "tabs-type", "tabs-header-padding", "onTabClick", "onTabDelete"])) : d("", !0)
|
|
222
225
|
]),
|
|
223
226
|
_: 1
|
|
224
227
|
}, 8, ["class", "offsetTop"])),
|
|
225
|
-
|
|
228
|
+
p(se, null, {
|
|
226
229
|
default: n(() => [
|
|
227
|
-
|
|
230
|
+
p(le)
|
|
228
231
|
]),
|
|
229
232
|
_: 1
|
|
230
233
|
}),
|
|
231
|
-
e.hideFooter ? d("", !0) : (
|
|
232
|
-
|
|
234
|
+
e.hideFooter ? d("", !0) : (s(), k(b, { key: 1 }, [
|
|
235
|
+
o(y).footer !== void 0 ? c(e.$slots, "footer", { key: 0 }) : (s(), u(ae, {
|
|
233
236
|
key: 1,
|
|
234
|
-
class:
|
|
237
|
+
class: l(`${t}-body-footer`)
|
|
235
238
|
}, {
|
|
236
239
|
default: n(() => [
|
|
237
240
|
T(B(e.footerTitle), 1)
|