@xinlian-frontend/lui 0.0.1-beta.5
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/README.md +22 -0
- package/assets/style.css +1 -0
- package/components/ApprovalSteps/index.d.ts +11 -0
- package/components/ApprovalSteps/index.vue.d.ts +10 -0
- package/components/ApprovalSteps/privite-type.d.ts +381 -0
- package/components/ApprovalSteps/type.d.ts +61 -0
- package/components/FilePreview/file-preview.vue.d.ts +6 -0
- package/components/FilePreview/index.d.ts +7 -0
- package/components/button/button.vue.d.ts +3 -0
- package/components/button/index.d.ts +4 -0
- package/components/button/type.d.ts +1 -0
- package/components/detail-layout/detail-layout.vue.d.ts +42 -0
- package/components/detail-layout/index.d.ts +2 -0
- package/components/detail-layout/type.d.ts +9 -0
- package/components/drawer/index.d.ts +107 -0
- package/components/drawer/index.vue.d.ts +51 -0
- package/components/drawer/type.d.ts +1 -0
- package/components/error-page/404.vue.d.ts +3 -0
- package/components/error-page/index.d.ts +4 -0
- package/components/filter-panel/filter-panel.vue.d.ts +36 -0
- package/components/filter-panel/index.d.ts +79 -0
- package/components/filter-panel/type.d.ts +28 -0
- package/components/fixed-footer/fixed-footer.vue.d.ts +13 -0
- package/components/fixed-footer/index.d.ts +2 -0
- package/components/form-footer/form-footer.vue.d.ts +13 -0
- package/components/form-footer/index.d.ts +15 -0
- package/components/form-footer/type.d.ts +36 -0
- package/components/form-section-page/form-section-page.vue.d.ts +13 -0
- package/components/form-section-page/index.d.ts +3 -0
- package/components/form-submit-page/form-submit-page-card.vue.d.ts +22 -0
- package/components/form-submit-page/form-submit-page.vue.d.ts +79 -0
- package/components/form-submit-page/index.d.ts +4 -0
- package/components/info-layout/index.d.ts +50 -0
- package/components/info-layout/info-layout.vue.d.ts +28 -0
- package/components/info-layout/type.d.ts +6 -0
- package/components/modal/index.d.ts +44 -0
- package/components/modal/index.vue.d.ts +25 -0
- package/components/page-table/index.d.ts +204 -0
- package/components/page-table/page-table.vue.d.ts +95 -0
- package/components/page-table/setting.vue.d.ts +10 -0
- package/components/page-table/type.d.ts +19 -0
- package/components/role-tree/index.d.ts +23 -0
- package/components/role-tree/role-tree-item.vue.d.ts +17 -0
- package/components/role-tree/role-tree.vue.d.ts +21 -0
- package/components/role-tree/type.d.ts +13 -0
- package/components/second-bar/SecondBar.vue.d.ts +16 -0
- package/components/second-bar/index.d.ts +22 -0
- package/components/section-block/index.d.ts +2 -0
- package/components/section-block/section-block.vue.d.ts +31 -0
- package/components/sign-status-flow/index.d.ts +12 -0
- package/components/sign-status-flow/sign-status-flow.vue.d.ts +9 -0
- package/components/sign-status-flow/type.d.ts +8 -0
- package/components/upload-file/constant.d.ts +18 -0
- package/components/upload-file/index.d.ts +170 -0
- package/components/upload-file/service.d.ts +4 -0
- package/components/upload-file/type.d.ts +8 -0
- package/components/upload-file/upload-file.vue.d.ts +48 -0
- package/components/upload-file/upload-image.vue.d.ts +46 -0
- package/exported-components.d.ts +19 -0
- package/index.d.ts +2 -0
- package/l-ui.es.js +3823 -0
- package/package.json +32 -0
- package/type.d.ts +9 -0
- package/utils/index.d.ts +3 -0
- package/vue-office-docx.js +5857 -0
- package/vue-office-excel.js +64323 -0
- package/vue-office-pdf.js +2012 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../utils';
|
|
2
|
+
import { CreateComponentPublicInstanceWithMixins, Ref, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
3
|
+
declare const LDrawer: SFCWithInstall<{
|
|
4
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
5
|
+
mask?: boolean;
|
|
6
|
+
placement?: "top" | "right" | "bottom" | "left";
|
|
7
|
+
width?: string | number;
|
|
8
|
+
title?: string;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
disabledNext?: boolean;
|
|
11
|
+
disabledPrev?: boolean;
|
|
12
|
+
showRefresh?: boolean;
|
|
13
|
+
page?: boolean;
|
|
14
|
+
}> & Readonly<{
|
|
15
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
onPrev?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
onNext?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
open(): void;
|
|
21
|
+
close: () => void;
|
|
22
|
+
visable: Ref<boolean, boolean>;
|
|
23
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
24
|
+
close: (...args: any[]) => void;
|
|
25
|
+
prev: (...args: any[]) => void;
|
|
26
|
+
next: (...args: any[]) => void;
|
|
27
|
+
refresh: (...args: any[]) => void;
|
|
28
|
+
}, PublicProps, {
|
|
29
|
+
width: string | number;
|
|
30
|
+
mask: boolean;
|
|
31
|
+
placement: "top" | "right" | "bottom" | "left";
|
|
32
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
33
|
+
P: {};
|
|
34
|
+
B: {};
|
|
35
|
+
D: {};
|
|
36
|
+
C: {};
|
|
37
|
+
M: {};
|
|
38
|
+
Defaults: {};
|
|
39
|
+
}, Readonly<{
|
|
40
|
+
mask?: boolean;
|
|
41
|
+
placement?: "top" | "right" | "bottom" | "left";
|
|
42
|
+
width?: string | number;
|
|
43
|
+
title?: string;
|
|
44
|
+
loading?: boolean;
|
|
45
|
+
disabledNext?: boolean;
|
|
46
|
+
disabledPrev?: boolean;
|
|
47
|
+
showRefresh?: boolean;
|
|
48
|
+
page?: boolean;
|
|
49
|
+
}> & Readonly<{
|
|
50
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
onPrev?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
onNext?: ((...args: any[]) => any) | undefined;
|
|
53
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
}>, {
|
|
55
|
+
open(): void;
|
|
56
|
+
close: () => void;
|
|
57
|
+
visable: Ref<boolean, boolean>;
|
|
58
|
+
}, {}, {}, {}, {
|
|
59
|
+
width: string | number;
|
|
60
|
+
mask: boolean;
|
|
61
|
+
placement: "top" | "right" | "bottom" | "left";
|
|
62
|
+
}>;
|
|
63
|
+
__isFragment?: never;
|
|
64
|
+
__isTeleport?: never;
|
|
65
|
+
__isSuspense?: never;
|
|
66
|
+
} & ComponentOptionsBase<Readonly<{
|
|
67
|
+
mask?: boolean;
|
|
68
|
+
placement?: "top" | "right" | "bottom" | "left";
|
|
69
|
+
width?: string | number;
|
|
70
|
+
title?: string;
|
|
71
|
+
loading?: boolean;
|
|
72
|
+
disabledNext?: boolean;
|
|
73
|
+
disabledPrev?: boolean;
|
|
74
|
+
showRefresh?: boolean;
|
|
75
|
+
page?: boolean;
|
|
76
|
+
}> & Readonly<{
|
|
77
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
78
|
+
onPrev?: ((...args: any[]) => any) | undefined;
|
|
79
|
+
onNext?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
}>, {
|
|
82
|
+
open(): void;
|
|
83
|
+
close: () => void;
|
|
84
|
+
visable: Ref<boolean, boolean>;
|
|
85
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
86
|
+
close: (...args: any[]) => void;
|
|
87
|
+
prev: (...args: any[]) => void;
|
|
88
|
+
next: (...args: any[]) => void;
|
|
89
|
+
refresh: (...args: any[]) => void;
|
|
90
|
+
}, string, {
|
|
91
|
+
width: string | number;
|
|
92
|
+
mask: boolean;
|
|
93
|
+
placement: "top" | "right" | "bottom" | "left";
|
|
94
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
95
|
+
$slots: {
|
|
96
|
+
default?: (props: {}) => any;
|
|
97
|
+
} & {
|
|
98
|
+
footer?: (props: {}) => any;
|
|
99
|
+
} & {
|
|
100
|
+
extra?: (props: {}) => any;
|
|
101
|
+
} & {
|
|
102
|
+
title?: (props: {}) => any;
|
|
103
|
+
} & {
|
|
104
|
+
'title-extra'?: (props: {}) => any;
|
|
105
|
+
};
|
|
106
|
+
})> & Record<string, any>;
|
|
107
|
+
export default LDrawer;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
mask?: boolean;
|
|
4
|
+
placement?: 'top' | 'right' | 'bottom' | 'left';
|
|
5
|
+
width?: string | number;
|
|
6
|
+
title?: string;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
disabledNext?: boolean;
|
|
9
|
+
disabledPrev?: boolean;
|
|
10
|
+
showRefresh?: boolean;
|
|
11
|
+
page?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare function close(): void;
|
|
14
|
+
declare var __VLS_14: {}, __VLS_16: {}, __VLS_18: {}, __VLS_52: {}, __VLS_54: {};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
default?: (props: typeof __VLS_14) => any;
|
|
17
|
+
} & {
|
|
18
|
+
footer?: (props: typeof __VLS_16) => any;
|
|
19
|
+
} & {
|
|
20
|
+
extra?: (props: typeof __VLS_18) => any;
|
|
21
|
+
} & {
|
|
22
|
+
title?: (props: typeof __VLS_52) => any;
|
|
23
|
+
} & {
|
|
24
|
+
'title-extra'?: (props: typeof __VLS_54) => any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
27
|
+
open(): void;
|
|
28
|
+
close: typeof close;
|
|
29
|
+
visable: Ref<boolean, boolean>;
|
|
30
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
31
|
+
close: (...args: any[]) => void;
|
|
32
|
+
prev: (...args: any[]) => void;
|
|
33
|
+
next: (...args: any[]) => void;
|
|
34
|
+
refresh: (...args: any[]) => void;
|
|
35
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
36
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
onPrev?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
onNext?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
width: string | number;
|
|
42
|
+
mask: boolean;
|
|
43
|
+
placement: "top" | "right" | "bottom" | "left";
|
|
44
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../utils';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const LPageNotFound: SFCWithInstall<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
|
|
4
|
+
export default LPageNotFound;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { LFilterPanelProps, LFilterPanelItem } from './type';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare var __VLS_16: `filter-${string}`, __VLS_17: {
|
|
4
|
+
item: LFilterPanelItem;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
[K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: DefineComponent<LFilterPanelProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
10
|
+
search: () => any;
|
|
11
|
+
"update:modelValue": (value: Record<string, any>) => any;
|
|
12
|
+
reset: () => any;
|
|
13
|
+
toggle: (expanded: boolean) => any;
|
|
14
|
+
}, string, PublicProps, Readonly<LFilterPanelProps> & Readonly<{
|
|
15
|
+
onSearch?: (() => any) | undefined;
|
|
16
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
17
|
+
onReset?: (() => any) | undefined;
|
|
18
|
+
onToggle?: ((expanded: boolean) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
card: boolean;
|
|
21
|
+
filterItems: LFilterPanelItem[];
|
|
22
|
+
labelWidth: number | string;
|
|
23
|
+
collapsible: boolean;
|
|
24
|
+
collapsedRows: number;
|
|
25
|
+
searchText: string;
|
|
26
|
+
resetText: string;
|
|
27
|
+
expandText: string;
|
|
28
|
+
collapseText: string;
|
|
29
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../utils';
|
|
2
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
3
|
+
import { LFilterPanelProps, LFilterPanelItem } from './type';
|
|
4
|
+
declare const LFilterPanel: SFCWithInstall<{
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< LFilterPanelProps> & Readonly<{
|
|
6
|
+
onSearch?: (() => any) | undefined;
|
|
7
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
8
|
+
onReset?: (() => any) | undefined;
|
|
9
|
+
onToggle?: ((expanded: boolean) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
11
|
+
search: () => any;
|
|
12
|
+
"update:modelValue": (value: Record<string, any>) => any;
|
|
13
|
+
reset: () => any;
|
|
14
|
+
toggle: (expanded: boolean) => any;
|
|
15
|
+
}, PublicProps, {
|
|
16
|
+
card: boolean;
|
|
17
|
+
filterItems: LFilterPanelItem[];
|
|
18
|
+
labelWidth: number | string;
|
|
19
|
+
collapsible: boolean;
|
|
20
|
+
collapsedRows: number;
|
|
21
|
+
searchText: string;
|
|
22
|
+
resetText: string;
|
|
23
|
+
expandText: string;
|
|
24
|
+
collapseText: string;
|
|
25
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
26
|
+
P: {};
|
|
27
|
+
B: {};
|
|
28
|
+
D: {};
|
|
29
|
+
C: {};
|
|
30
|
+
M: {};
|
|
31
|
+
Defaults: {};
|
|
32
|
+
}, Readonly< LFilterPanelProps> & Readonly<{
|
|
33
|
+
onSearch?: (() => any) | undefined;
|
|
34
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
35
|
+
onReset?: (() => any) | undefined;
|
|
36
|
+
onToggle?: ((expanded: boolean) => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, {
|
|
38
|
+
card: boolean;
|
|
39
|
+
filterItems: LFilterPanelItem[];
|
|
40
|
+
labelWidth: number | string;
|
|
41
|
+
collapsible: boolean;
|
|
42
|
+
collapsedRows: number;
|
|
43
|
+
searchText: string;
|
|
44
|
+
resetText: string;
|
|
45
|
+
expandText: string;
|
|
46
|
+
collapseText: string;
|
|
47
|
+
}>;
|
|
48
|
+
__isFragment?: never;
|
|
49
|
+
__isTeleport?: never;
|
|
50
|
+
__isSuspense?: never;
|
|
51
|
+
} & ComponentOptionsBase<Readonly< LFilterPanelProps> & Readonly<{
|
|
52
|
+
onSearch?: (() => any) | undefined;
|
|
53
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
54
|
+
onReset?: (() => any) | undefined;
|
|
55
|
+
onToggle?: ((expanded: boolean) => any) | undefined;
|
|
56
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
57
|
+
search: () => any;
|
|
58
|
+
"update:modelValue": (value: Record<string, any>) => any;
|
|
59
|
+
reset: () => any;
|
|
60
|
+
toggle: (expanded: boolean) => any;
|
|
61
|
+
}, string, {
|
|
62
|
+
card: boolean;
|
|
63
|
+
filterItems: LFilterPanelItem[];
|
|
64
|
+
labelWidth: number | string;
|
|
65
|
+
collapsible: boolean;
|
|
66
|
+
collapsedRows: number;
|
|
67
|
+
searchText: string;
|
|
68
|
+
resetText: string;
|
|
69
|
+
expandText: string;
|
|
70
|
+
collapseText: string;
|
|
71
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
72
|
+
$slots: {
|
|
73
|
+
[x: `filter-${string}`]: ((props: {
|
|
74
|
+
item: LFilterPanelItem;
|
|
75
|
+
}) => any) | undefined;
|
|
76
|
+
};
|
|
77
|
+
})> & Record<string, any>;
|
|
78
|
+
export default LFilterPanel;
|
|
79
|
+
export * from './type';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface LFilterPanelItem {
|
|
2
|
+
key: string;
|
|
3
|
+
label: string;
|
|
4
|
+
type?: 'input' | 'select' | 'daterange' | 'datetimerange';
|
|
5
|
+
options?: {
|
|
6
|
+
label: string;
|
|
7
|
+
value: any;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}[];
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
startPlaceholder?: string;
|
|
12
|
+
endPlaceholder?: string;
|
|
13
|
+
multiple?: boolean;
|
|
14
|
+
hide?: boolean;
|
|
15
|
+
change?: (...args: any[]) => void;
|
|
16
|
+
}
|
|
17
|
+
export interface LFilterPanelProps {
|
|
18
|
+
modelValue: Record<string, any>;
|
|
19
|
+
filterItems: LFilterPanelItem[];
|
|
20
|
+
labelWidth?: number | string;
|
|
21
|
+
collapsible?: boolean;
|
|
22
|
+
card?: boolean;
|
|
23
|
+
collapsedRows?: number;
|
|
24
|
+
searchText?: string;
|
|
25
|
+
resetText?: string;
|
|
26
|
+
expandText?: string;
|
|
27
|
+
collapseText?: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare var __VLS_5: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
footer?: (props: typeof __VLS_5) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FormFooterProps, FormFooterButton } from './type';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<FormFooterProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<FormFooterProps> & Readonly<{}>, {
|
|
4
|
+
loading: boolean;
|
|
5
|
+
showSave: boolean;
|
|
6
|
+
showSubmit: boolean;
|
|
7
|
+
saveText: string;
|
|
8
|
+
submitText: string;
|
|
9
|
+
closeText: string;
|
|
10
|
+
buttons: FormFooterButton[];
|
|
11
|
+
showClose: boolean;
|
|
12
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../utils';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { FormFooterProps, FormFooterButton } from './type';
|
|
4
|
+
declare const LFormFooter: SFCWithInstall<DefineComponent<FormFooterProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< FormFooterProps> & Readonly<{}>, {
|
|
5
|
+
loading: boolean;
|
|
6
|
+
showSave: boolean;
|
|
7
|
+
showSubmit: boolean;
|
|
8
|
+
saveText: string;
|
|
9
|
+
submitText: string;
|
|
10
|
+
closeText: string;
|
|
11
|
+
buttons: FormFooterButton[];
|
|
12
|
+
showClose: boolean;
|
|
13
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>> & Record<string, any>;
|
|
14
|
+
export default LFormFooter;
|
|
15
|
+
export * from './type';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface FormFooterButton {
|
|
2
|
+
/** 按钮文本 */
|
|
3
|
+
text: string;
|
|
4
|
+
/** 按钮类型 */
|
|
5
|
+
type?: 'default' | 'primary' | 'dashed' | 'link' | 'text';
|
|
6
|
+
/** 是否显示 loading 状态 */
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
/** 是否禁用 */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** 点击事件 */
|
|
11
|
+
onClick?: () => void | Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export interface FormFooterProps {
|
|
14
|
+
/** 按钮配置列表 */
|
|
15
|
+
buttons?: FormFooterButton[];
|
|
16
|
+
/** 是否显示默认的关闭按钮 */
|
|
17
|
+
showClose?: boolean;
|
|
18
|
+
/** 是否显示默认的保存按钮 */
|
|
19
|
+
showSave?: boolean;
|
|
20
|
+
/** 是否显示默认的提交按钮 */
|
|
21
|
+
showSubmit?: boolean;
|
|
22
|
+
/** 全局 loading 状态,会应用到所有按钮 */
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
/** 关闭按钮点击事件 */
|
|
25
|
+
onClose?: () => void;
|
|
26
|
+
/** 保存按钮点击事件 */
|
|
27
|
+
onSave?: () => void | Promise<void>;
|
|
28
|
+
/** 提交按钮点击事件 */
|
|
29
|
+
onSubmit?: () => void | Promise<void>;
|
|
30
|
+
/** 关闭按钮文本 */
|
|
31
|
+
closeText?: string;
|
|
32
|
+
/** 保存按钮文本 */
|
|
33
|
+
saveText?: string;
|
|
34
|
+
/** 提交按钮文本 */
|
|
35
|
+
submitText?: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare var __VLS_6: string | number, __VLS_7: any;
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
[K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 卡片标题 */
|
|
4
|
+
title?: string;
|
|
5
|
+
/** 卡片外层 class,如 mb-4 */
|
|
6
|
+
cardClass?: string;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_6: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_6) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
+
title: string;
|
|
14
|
+
cardClass: string;
|
|
15
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
/** 卡片区块配置,与 #card-xxx 插槽配套 */
|
|
3
|
+
export interface FormSubmitPageSection {
|
|
4
|
+
key: string;
|
|
5
|
+
title: string;
|
|
6
|
+
desc?: string;
|
|
7
|
+
}
|
|
8
|
+
interface Props {
|
|
9
|
+
/** 表单绑定数据,透传给 a-form */
|
|
10
|
+
model?: Record<string, unknown>;
|
|
11
|
+
/** 校验规则,透传给 a-form(与 ant-design-vue Form rules 类型一致) */
|
|
12
|
+
rules?: object;
|
|
13
|
+
/** 表单布局 */
|
|
14
|
+
layout?: 'horizontal' | 'vertical' | 'inline';
|
|
15
|
+
/** 展示形态:card=卡片样式,section=分区样式(左侧蓝条标题+右侧锚点导航) */
|
|
16
|
+
variant?: 'card' | 'section';
|
|
17
|
+
/** 是否显示右侧悬浮的布局切换(卡片/分区样式图标),仅在有 sections 时生效 */
|
|
18
|
+
showLayoutSwitch?: boolean;
|
|
19
|
+
/** 卡片区块配置,有则用 #card-{key} 插槽渲染 a-card/区块,无则用默认插槽 */
|
|
20
|
+
sections?: FormSubmitPageSection[];
|
|
21
|
+
showRightNav?: boolean;
|
|
22
|
+
/** 是否显示保存按钮 */
|
|
23
|
+
showSave?: boolean;
|
|
24
|
+
/** 是否显示提交按钮 */
|
|
25
|
+
showSubmit?: boolean;
|
|
26
|
+
/** 提交按钮 loading */
|
|
27
|
+
submitLoading?: boolean;
|
|
28
|
+
/** 保存按钮 loading */
|
|
29
|
+
saveLoading?: boolean;
|
|
30
|
+
/** 取消按钮文案 */
|
|
31
|
+
cancelText?: string;
|
|
32
|
+
/** 保存按钮文案 */
|
|
33
|
+
saveText?: string;
|
|
34
|
+
/** 提交按钮文案 */
|
|
35
|
+
submitText?: string;
|
|
36
|
+
}
|
|
37
|
+
declare var __VLS_8: `card-${string}`, __VLS_9: {}, __VLS_11: {};
|
|
38
|
+
type __VLS_Slots = {} & {
|
|
39
|
+
[K in NonNullable<typeof __VLS_8>]?: (props: typeof __VLS_9) => any;
|
|
40
|
+
} & {
|
|
41
|
+
default?: (props: typeof __VLS_11) => any;
|
|
42
|
+
};
|
|
43
|
+
declare const __VLS_component: DefineComponent<Props, {
|
|
44
|
+
formRef: any;
|
|
45
|
+
/**
|
|
46
|
+
* 手动滚动到第一个校验错误的表单项
|
|
47
|
+
* 解决 scroll-to-first-error 在复杂布局下失效的问题
|
|
48
|
+
*/
|
|
49
|
+
scrollToFirstError(): void;
|
|
50
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
51
|
+
cancel: () => any;
|
|
52
|
+
submit: () => any;
|
|
53
|
+
save: () => any;
|
|
54
|
+
"update:variant": (value: "section" | "card") => any;
|
|
55
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
56
|
+
onCancel?: (() => any) | undefined;
|
|
57
|
+
onSubmit?: (() => any) | undefined;
|
|
58
|
+
onSave?: (() => any) | undefined;
|
|
59
|
+
"onUpdate:variant"?: ((value: "section" | "card") => any) | undefined;
|
|
60
|
+
}>, {
|
|
61
|
+
cancelText: string;
|
|
62
|
+
layout: "horizontal" | "vertical" | "inline";
|
|
63
|
+
variant: "card" | "section";
|
|
64
|
+
showLayoutSwitch: boolean;
|
|
65
|
+
showRightNav: boolean;
|
|
66
|
+
showSave: boolean;
|
|
67
|
+
showSubmit: boolean;
|
|
68
|
+
submitLoading: boolean;
|
|
69
|
+
saveLoading: boolean;
|
|
70
|
+
saveText: string;
|
|
71
|
+
submitText: string;
|
|
72
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
73
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
74
|
+
export default _default;
|
|
75
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
76
|
+
new (): {
|
|
77
|
+
$slots: S;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../utils';
|
|
2
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
3
|
+
import { LInfoLayoutItems } from './type';
|
|
4
|
+
declare const LInfoLayout: SFCWithInstall<{
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
6
|
+
items: LInfoLayoutItems[];
|
|
7
|
+
showMenu?: boolean;
|
|
8
|
+
}> & Readonly<{
|
|
9
|
+
"onUpdate:items"?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
|
+
"update:items": (...args: any[]) => void;
|
|
12
|
+
}, PublicProps, {
|
|
13
|
+
showMenu: boolean;
|
|
14
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
15
|
+
P: {};
|
|
16
|
+
B: {};
|
|
17
|
+
D: {};
|
|
18
|
+
C: {};
|
|
19
|
+
M: {};
|
|
20
|
+
Defaults: {};
|
|
21
|
+
}, Readonly<{
|
|
22
|
+
items: LInfoLayoutItems[];
|
|
23
|
+
showMenu?: boolean;
|
|
24
|
+
}> & Readonly<{
|
|
25
|
+
"onUpdate:items"?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, {
|
|
27
|
+
showMenu: boolean;
|
|
28
|
+
}>;
|
|
29
|
+
__isFragment?: never;
|
|
30
|
+
__isTeleport?: never;
|
|
31
|
+
__isSuspense?: never;
|
|
32
|
+
} & ComponentOptionsBase<Readonly<{
|
|
33
|
+
items: LInfoLayoutItems[];
|
|
34
|
+
showMenu?: boolean;
|
|
35
|
+
}> & Readonly<{
|
|
36
|
+
"onUpdate:items"?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
38
|
+
"update:items": (...args: any[]) => void;
|
|
39
|
+
}, string, {
|
|
40
|
+
showMenu: boolean;
|
|
41
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
42
|
+
$slots: {
|
|
43
|
+
[x: `title-${string}`]: ((props: {}) => any) | undefined;
|
|
44
|
+
} & {
|
|
45
|
+
[x: string]: ((props: {}) => any) | undefined;
|
|
46
|
+
} & {
|
|
47
|
+
footer?: (props: {}) => any;
|
|
48
|
+
};
|
|
49
|
+
})> & Record<string, any>;
|
|
50
|
+
export default LInfoLayout;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LInfoLayoutItems } from './type';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
items: LInfoLayoutItems[];
|
|
5
|
+
showMenu?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_2: `title-${string}`, __VLS_3: {}, __VLS_6: string, __VLS_7: {}, __VLS_9: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
10
|
+
} & {
|
|
11
|
+
[K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
|
|
12
|
+
} & {
|
|
13
|
+
footer?: (props: typeof __VLS_9) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
16
|
+
"update:items": (...args: any[]) => void;
|
|
17
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
"onUpdate:items"?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
showMenu: boolean;
|
|
21
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../utils';
|
|
2
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
3
|
+
declare const LModal: SFCWithInstall<{
|
|
4
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
5
|
+
modelValue?: boolean;
|
|
6
|
+
title?: string;
|
|
7
|
+
}> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (...args: any[]) => void;
|
|
11
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
12
|
+
P: {};
|
|
13
|
+
B: {};
|
|
14
|
+
D: {};
|
|
15
|
+
C: {};
|
|
16
|
+
M: {};
|
|
17
|
+
Defaults: {};
|
|
18
|
+
}, Readonly<{
|
|
19
|
+
modelValue?: boolean;
|
|
20
|
+
title?: string;
|
|
21
|
+
}> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, {}>;
|
|
24
|
+
__isFragment?: never;
|
|
25
|
+
__isTeleport?: never;
|
|
26
|
+
__isSuspense?: never;
|
|
27
|
+
} & ComponentOptionsBase<Readonly<{
|
|
28
|
+
modelValue?: boolean;
|
|
29
|
+
title?: string;
|
|
30
|
+
}> & Readonly<{
|
|
31
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
33
|
+
"update:modelValue": (...args: any[]) => void;
|
|
34
|
+
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
35
|
+
$slots: {
|
|
36
|
+
default?: (props: {}) => any;
|
|
37
|
+
} & {
|
|
38
|
+
title?: (props: {}) => any;
|
|
39
|
+
} & {
|
|
40
|
+
footer?: (props: {}) => any;
|
|
41
|
+
};
|
|
42
|
+
})> & Record<string, any>;
|
|
43
|
+
export * from './index';
|
|
44
|
+
export default LModal;
|