lew-ui 2.3.5 → 2.3.8
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/LICENSE +21 -21
- package/README.md +33 -33
- package/README.zh-CN.md +35 -35
- package/dist/components/alert/src/LewAlert.vue.d.ts +9 -7
- package/dist/components/alert/src/props.d.ts +8 -6
- package/dist/components/avatar/src/LewAvatar.vue.d.ts +37 -38
- package/dist/components/avatar/src/props.d.ts +22 -20
- package/dist/components/backtop/src/LewBackTop.vue.d.ts +9 -1
- package/dist/components/backtop/src/props.d.ts +4 -0
- package/dist/components/badge/src/LewBadge.vue.d.ts +12 -8
- package/dist/components/badge/src/props.d.ts +7 -5
- package/dist/components/breadcrumb/src/LewBreadcrumb.vue.d.ts +14 -10
- package/dist/components/breadcrumb/src/props.d.ts +10 -8
- package/dist/components/button/src/LewButton.vue.d.ts +60 -36
- package/dist/components/button/src/props.d.ts +31 -19
- package/dist/components/cascader/src/LewCascader.vue.d.ts +51 -48
- package/dist/components/cascader/src/props.d.ts +29 -21
- package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +41 -39
- package/dist/components/checkbox/src/props.d.ts +43 -38
- package/dist/components/collapse/src/LewCollapse.vue.d.ts +4 -0
- package/dist/components/collapse/src/LewCollapseItem.vue.d.ts +10 -4
- package/dist/components/collapse/src/props.d.ts +8 -2
- package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +31 -27
- package/dist/components/date-picker/src/props.d.ts +21 -18
- package/dist/components/date-range-picker/src/LewDateRange.vue.d.ts +4 -0
- package/dist/components/date-range-picker/src/LewDateRangePicker.vue.d.ts +41 -35
- package/dist/components/date-range-picker/src/props.d.ts +24 -19
- package/dist/components/drawer/src/LewDrawer.vue.d.ts +36 -30
- package/dist/components/drawer/src/props.d.ts +18 -15
- package/dist/components/dropdown/src/LewDropdown.vue.d.ts +24 -16
- package/dist/components/dropdown/src/props.d.ts +14 -12
- package/dist/components/empty/src/LewEmpty.vue.d.ts +15 -5
- package/dist/components/empty/src/props.d.ts +7 -2
- package/dist/components/flex/src/LewFlex.vue.d.ts +32 -26
- package/dist/components/flex/src/props.d.ts +18 -12
- package/dist/components/form/src/LewForm.vue.d.ts +35 -23
- package/dist/components/form/src/LewFormItem.vue.d.ts +70 -62
- package/dist/components/form/src/LewGetLabelWidth.vue.d.ts +5 -3
- package/dist/components/form/src/props.d.ts +47 -36
- package/dist/components/image/src/LewImage.vue.d.ts +48 -33
- package/dist/components/image/src/props.d.ts +25 -16
- package/dist/components/input/src/LewInput.vue.d.ts +67 -64
- package/dist/components/input/src/props.d.ts +33 -29
- package/dist/components/input-number/src/LewInputNumber.vue.d.ts +52 -40
- package/dist/components/input-number/src/props.d.ts +28 -20
- package/dist/components/input-table/src/props.d.ts +62 -15
- package/dist/components/input-tag/src/LewInputTag.vue.d.ts +4 -4
- package/dist/components/input-tag/src/props.d.ts +6 -4
- package/dist/components/magic-number/src/LewMagicNumber.vue.d.ts +3 -3
- package/dist/components/magic-number/src/props.d.ts +1 -1
- package/dist/components/mark/src/LewMark.vue.d.ts +20 -16
- package/dist/components/mark/src/props.d.ts +13 -9
- package/dist/components/menu/src/LewMenu.vue.d.ts +11 -7
- package/dist/components/menu/src/props.d.ts +7 -5
- package/dist/components/menu-tree/src/LewMenuTree.vue.d.ts +3 -3
- package/dist/components/menu-tree/src/props.d.ts +3 -3
- package/dist/components/modal/src/LewModal.vue.d.ts +10 -4
- package/dist/components/modal/src/props.d.ts +4 -1
- package/dist/components/pagination/src/LewPagination.vue.d.ts +7 -3
- package/dist/components/pagination/src/props.d.ts +10 -5
- package/dist/components/popok/src/LewPopok.vue.d.ts +18 -10
- package/dist/components/popok/src/props.d.ts +7 -3
- package/dist/components/popover/src/LewPopover.vue.d.ts +38 -34
- package/dist/components/popover/src/props.d.ts +20 -16
- package/dist/components/radio/src/LewRadio.vue.d.ts +33 -31
- package/dist/components/radio/src/LewRadioGroup.vue.d.ts +27 -23
- package/dist/components/radio/src/props.d.ts +32 -28
- package/dist/components/result/src/LewResult.vue.d.ts +9 -3
- package/dist/components/result/src/props.d.ts +7 -1
- package/dist/components/select/src/LewSelect.vue.d.ts +20 -20
- package/dist/components/select/src/props.d.ts +10 -8
- package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +29 -23
- package/dist/components/select-multiple/src/props.d.ts +13 -10
- package/dist/components/steps/src/LewSteps.vue.d.ts +10 -6
- package/dist/components/steps/src/props.d.ts +7 -4
- package/dist/components/switch/src/LewSwitch.vue.d.ts +12 -8
- package/dist/components/switch/src/props.d.ts +9 -3
- package/dist/components/table/src/LewTable.vue.d.ts +30 -23
- package/dist/components/table/src/props.d.ts +23 -11
- package/dist/components/tabs/src/LewTabs.vue.d.ts +27 -17
- package/dist/components/tabs/src/props.d.ts +16 -11
- package/dist/components/tag/src/LewTag.vue.d.ts +12 -6
- package/dist/components/tag/src/props.d.ts +6 -3
- package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +42 -30
- package/dist/components/text-trim/src/props.d.ts +21 -13
- package/dist/components/textarea/src/LewTextarea.vue.d.ts +37 -42
- package/dist/components/textarea/src/props.d.ts +17 -18
- package/dist/components/title/src/LewTitle.vue.d.ts +17 -11
- package/dist/components/title/src/props.d.ts +10 -10
- package/dist/components/tree/src/LewTree.vue.d.ts +11 -9
- package/dist/components/tree/src/props.d.ts +5 -4
- package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +100 -90
- package/dist/components/tree-select/src/props.d.ts +56 -44
- package/dist/components/upload/src/LewUpload.vue.d.ts +49 -39
- package/dist/components/upload/src/props.d.ts +26 -21
- package/dist/directives/backtop/src/index.d.ts +2 -2
- package/dist/directives/dialog/src/LewDialog.vue.d.ts +16 -12
- package/dist/directives/dialog/src/index.d.ts +5 -5
- package/dist/directives/dialog/src/props.d.ts +8 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +2732 -1333
- package/dist/index.umd.js +46 -46
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/input-table/src/LewInputTable.vue.d.ts +0 -87
|
@@ -10,33 +10,41 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
10
10
|
default: string;
|
|
11
11
|
description: string;
|
|
12
12
|
};
|
|
13
|
+
position: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
validator: (value: string) => boolean;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
13
19
|
width: {
|
|
14
|
-
type: NumberConstructor;
|
|
20
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
15
21
|
default: number;
|
|
22
|
+
validator: (value: number | string) => boolean;
|
|
16
23
|
description: string;
|
|
17
24
|
};
|
|
18
25
|
height: {
|
|
19
|
-
type: NumberConstructor;
|
|
26
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
20
27
|
default: number;
|
|
28
|
+
validator: (value: number | string) => boolean;
|
|
21
29
|
description: string;
|
|
22
30
|
};
|
|
23
|
-
|
|
24
|
-
type:
|
|
25
|
-
default:
|
|
31
|
+
closeOnClickOverlay: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
26
34
|
description: string;
|
|
27
35
|
};
|
|
28
|
-
|
|
36
|
+
closeByEsc: {
|
|
29
37
|
type: BooleanConstructor;
|
|
30
38
|
default: boolean;
|
|
31
39
|
description: string;
|
|
32
40
|
};
|
|
33
|
-
|
|
41
|
+
hideFooter: {
|
|
34
42
|
type: BooleanConstructor;
|
|
35
43
|
default: boolean;
|
|
36
44
|
description: string;
|
|
37
45
|
};
|
|
38
46
|
okProps: {
|
|
39
|
-
type: PropType<import('../..').ButtonProps>;
|
|
47
|
+
type: globalThis.PropType<import('../..').ButtonProps>;
|
|
40
48
|
default: () => {
|
|
41
49
|
text: string;
|
|
42
50
|
color: string;
|
|
@@ -44,7 +52,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
44
52
|
description: string;
|
|
45
53
|
};
|
|
46
54
|
cancelProps: {
|
|
47
|
-
type: PropType<import('../..').ButtonProps>;
|
|
55
|
+
type: globalThis.PropType<import('../..').ButtonProps>;
|
|
48
56
|
default: () => {
|
|
49
57
|
type: string;
|
|
50
58
|
text: string;
|
|
@@ -52,11 +60,6 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
52
60
|
};
|
|
53
61
|
description: string;
|
|
54
62
|
};
|
|
55
|
-
closeOnClickOverlay: {
|
|
56
|
-
type: BooleanConstructor;
|
|
57
|
-
default: boolean;
|
|
58
|
-
description: string;
|
|
59
|
-
};
|
|
60
63
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
61
64
|
ok: (...args: any[]) => void;
|
|
62
65
|
cancel: (...args: any[]) => void;
|
|
@@ -67,33 +70,41 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
67
70
|
default: string;
|
|
68
71
|
description: string;
|
|
69
72
|
};
|
|
73
|
+
position: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
validator: (value: string) => boolean;
|
|
77
|
+
description: string;
|
|
78
|
+
};
|
|
70
79
|
width: {
|
|
71
|
-
type: NumberConstructor;
|
|
80
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
72
81
|
default: number;
|
|
82
|
+
validator: (value: number | string) => boolean;
|
|
73
83
|
description: string;
|
|
74
84
|
};
|
|
75
85
|
height: {
|
|
76
|
-
type: NumberConstructor;
|
|
86
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
77
87
|
default: number;
|
|
88
|
+
validator: (value: number | string) => boolean;
|
|
78
89
|
description: string;
|
|
79
90
|
};
|
|
80
|
-
|
|
81
|
-
type:
|
|
82
|
-
default:
|
|
91
|
+
closeOnClickOverlay: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
83
94
|
description: string;
|
|
84
95
|
};
|
|
85
|
-
|
|
96
|
+
closeByEsc: {
|
|
86
97
|
type: BooleanConstructor;
|
|
87
98
|
default: boolean;
|
|
88
99
|
description: string;
|
|
89
100
|
};
|
|
90
|
-
|
|
101
|
+
hideFooter: {
|
|
91
102
|
type: BooleanConstructor;
|
|
92
103
|
default: boolean;
|
|
93
104
|
description: string;
|
|
94
105
|
};
|
|
95
106
|
okProps: {
|
|
96
|
-
type: PropType<import('../..').ButtonProps>;
|
|
107
|
+
type: globalThis.PropType<import('../..').ButtonProps>;
|
|
97
108
|
default: () => {
|
|
98
109
|
text: string;
|
|
99
110
|
color: string;
|
|
@@ -101,7 +112,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
101
112
|
description: string;
|
|
102
113
|
};
|
|
103
114
|
cancelProps: {
|
|
104
|
-
type: PropType<import('../..').ButtonProps>;
|
|
115
|
+
type: globalThis.PropType<import('../..').ButtonProps>;
|
|
105
116
|
default: () => {
|
|
106
117
|
type: string;
|
|
107
118
|
text: string;
|
|
@@ -109,18 +120,13 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
109
120
|
};
|
|
110
121
|
description: string;
|
|
111
122
|
};
|
|
112
|
-
closeOnClickOverlay: {
|
|
113
|
-
type: BooleanConstructor;
|
|
114
|
-
default: boolean;
|
|
115
|
-
description: string;
|
|
116
|
-
};
|
|
117
123
|
}>> & {
|
|
118
124
|
onOk?: ((...args: any[]) => any) | undefined;
|
|
119
125
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
120
126
|
}, {
|
|
121
|
-
width: number;
|
|
127
|
+
width: string | number;
|
|
122
128
|
title: string;
|
|
123
|
-
height: number;
|
|
129
|
+
height: string | number;
|
|
124
130
|
hideFooter: boolean;
|
|
125
131
|
closeByEsc: boolean;
|
|
126
132
|
okProps: import('../..').ButtonProps;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { ButtonProps } from '../../button/index';
|
|
3
3
|
|
|
4
4
|
export declare const drawerModel: {
|
|
5
5
|
visible: {
|
|
6
|
-
type:
|
|
7
|
-
default:
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
8
|
description: string;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -14,27 +14,35 @@ export declare const drawerProps: {
|
|
|
14
14
|
default: string;
|
|
15
15
|
description: string;
|
|
16
16
|
};
|
|
17
|
+
position: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
validator: (value: string) => boolean;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
17
23
|
width: {
|
|
18
|
-
type: NumberConstructor;
|
|
24
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
19
25
|
default: number;
|
|
26
|
+
validator: (value: number | string) => boolean;
|
|
20
27
|
description: string;
|
|
21
28
|
};
|
|
22
29
|
height: {
|
|
23
|
-
type: NumberConstructor;
|
|
30
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
24
31
|
default: number;
|
|
32
|
+
validator: (value: number | string) => boolean;
|
|
25
33
|
description: string;
|
|
26
34
|
};
|
|
27
|
-
|
|
28
|
-
type:
|
|
29
|
-
default:
|
|
35
|
+
closeOnClickOverlay: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
30
38
|
description: string;
|
|
31
39
|
};
|
|
32
|
-
|
|
40
|
+
closeByEsc: {
|
|
33
41
|
type: BooleanConstructor;
|
|
34
42
|
default: boolean;
|
|
35
43
|
description: string;
|
|
36
44
|
};
|
|
37
|
-
|
|
45
|
+
hideFooter: {
|
|
38
46
|
type: BooleanConstructor;
|
|
39
47
|
default: boolean;
|
|
40
48
|
description: string;
|
|
@@ -56,10 +64,5 @@ export declare const drawerProps: {
|
|
|
56
64
|
};
|
|
57
65
|
description: string;
|
|
58
66
|
};
|
|
59
|
-
closeOnClickOverlay: {
|
|
60
|
-
type: BooleanConstructor;
|
|
61
|
-
default: boolean;
|
|
62
|
-
description: string;
|
|
63
|
-
};
|
|
64
67
|
};
|
|
65
68
|
export type DrawerProps = ExtractPropTypes<typeof drawerProps>;
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
+
import { DropdownOptions } from './props';
|
|
2
|
+
|
|
1
3
|
declare function __VLS_template(): {
|
|
2
4
|
default?(_: {}): any;
|
|
3
5
|
};
|
|
4
6
|
declare const __VLS_component: import('vue').DefineComponent<{
|
|
5
|
-
options: {
|
|
6
|
-
type: globalThis.PropType<import('../../..').ContextMenus[]>;
|
|
7
|
-
default: never[];
|
|
8
|
-
description: string;
|
|
9
|
-
};
|
|
10
7
|
trigger: {
|
|
11
|
-
type:
|
|
8
|
+
type: globalThis.PropType<import('../../..').DropdownTrigger>;
|
|
12
9
|
default: string;
|
|
13
10
|
description: string;
|
|
11
|
+
validator(value: import('../../..').DropdownTrigger): boolean;
|
|
14
12
|
};
|
|
15
13
|
placement: {
|
|
16
|
-
type:
|
|
14
|
+
type: globalThis.PropType<import('../../..').DropdownPlacement>;
|
|
17
15
|
default: string;
|
|
18
16
|
description: string;
|
|
17
|
+
validator(value: import('../../..').DropdownPlacement): boolean;
|
|
18
|
+
};
|
|
19
|
+
options: {
|
|
20
|
+
type: globalThis.PropType<DropdownOptions[]>;
|
|
21
|
+
default: () => never[];
|
|
22
|
+
description: string;
|
|
23
|
+
validator(value: DropdownOptions[]): boolean;
|
|
19
24
|
};
|
|
20
25
|
}, {
|
|
21
26
|
show: () => void;
|
|
@@ -23,27 +28,30 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
23
28
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
29
|
change: (...args: any[]) => void;
|
|
25
30
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
26
|
-
options: {
|
|
27
|
-
type: globalThis.PropType<import('../../..').ContextMenus[]>;
|
|
28
|
-
default: never[];
|
|
29
|
-
description: string;
|
|
30
|
-
};
|
|
31
31
|
trigger: {
|
|
32
|
-
type:
|
|
32
|
+
type: globalThis.PropType<import('../../..').DropdownTrigger>;
|
|
33
33
|
default: string;
|
|
34
34
|
description: string;
|
|
35
|
+
validator(value: import('../../..').DropdownTrigger): boolean;
|
|
35
36
|
};
|
|
36
37
|
placement: {
|
|
37
|
-
type:
|
|
38
|
+
type: globalThis.PropType<import('../../..').DropdownPlacement>;
|
|
38
39
|
default: string;
|
|
39
40
|
description: string;
|
|
41
|
+
validator(value: import('../../..').DropdownPlacement): boolean;
|
|
42
|
+
};
|
|
43
|
+
options: {
|
|
44
|
+
type: globalThis.PropType<DropdownOptions[]>;
|
|
45
|
+
default: () => never[];
|
|
46
|
+
description: string;
|
|
47
|
+
validator(value: DropdownOptions[]): boolean;
|
|
40
48
|
};
|
|
41
49
|
}>> & {
|
|
42
50
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
43
51
|
}, {
|
|
44
52
|
options: import('../../..').ContextMenus[];
|
|
45
|
-
trigger:
|
|
46
|
-
placement:
|
|
53
|
+
trigger: import('../../..').DropdownTrigger;
|
|
54
|
+
placement: import('../../..').DropdownPlacement;
|
|
47
55
|
}, {}>;
|
|
48
56
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
49
57
|
export default _default;
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { ContextMenus } from '../../..';
|
|
3
3
|
|
|
4
|
-
export type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
4
|
+
export type DropdownTrigger = 'hover' | 'click';
|
|
5
|
+
export type DropdownPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
6
|
+
export type DropdownOptions = ContextMenus;
|
|
8
7
|
export declare const dropdownProps: {
|
|
9
|
-
options: {
|
|
10
|
-
type: PropType<ContextMenus[]>;
|
|
11
|
-
default: never[];
|
|
12
|
-
description: string;
|
|
13
|
-
};
|
|
14
8
|
trigger: {
|
|
15
|
-
type:
|
|
9
|
+
type: PropType<DropdownTrigger>;
|
|
16
10
|
default: string;
|
|
17
11
|
description: string;
|
|
12
|
+
validator(value: DropdownTrigger): boolean;
|
|
18
13
|
};
|
|
19
14
|
placement: {
|
|
20
|
-
type:
|
|
15
|
+
type: PropType<DropdownPlacement>;
|
|
21
16
|
default: string;
|
|
22
17
|
description: string;
|
|
18
|
+
validator(value: DropdownPlacement): boolean;
|
|
19
|
+
};
|
|
20
|
+
options: {
|
|
21
|
+
type: PropType<DropdownOptions[]>;
|
|
22
|
+
default: () => never[];
|
|
23
|
+
description: string;
|
|
24
|
+
validator(value: DropdownOptions[]): boolean;
|
|
23
25
|
};
|
|
24
26
|
};
|
|
25
27
|
export type DropdownProps = ExtractPropTypes<typeof dropdownProps>;
|
|
@@ -1,69 +1,79 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
2
|
type: {
|
|
3
|
-
type: globalThis.PropType<"search" | "address" | "article" | "404" | "goods" | "likes" | "car" | "
|
|
3
|
+
type: globalThis.PropType<"search" | "address" | "article" | "404" | "goods" | "likes" | "car" | "comment" | "network" | "order">;
|
|
4
4
|
default: string;
|
|
5
|
-
|
|
5
|
+
validator: (value: "search" | "address" | "article" | "404" | "goods" | "likes" | "car" | "comment" | "network" | "order") => boolean;
|
|
6
6
|
description: string;
|
|
7
7
|
};
|
|
8
8
|
title: {
|
|
9
9
|
type: StringConstructor;
|
|
10
10
|
default: string;
|
|
11
|
+
validator: (value: string) => boolean;
|
|
11
12
|
description: string;
|
|
12
13
|
};
|
|
13
14
|
fontSize: {
|
|
14
15
|
type: (StringConstructor | NumberConstructor)[];
|
|
15
16
|
default: string;
|
|
17
|
+
validator: (value: string | number) => boolean;
|
|
16
18
|
description: string;
|
|
17
19
|
};
|
|
18
20
|
padding: {
|
|
19
21
|
type: StringConstructor;
|
|
20
22
|
default: string;
|
|
23
|
+
validator: (value: string) => boolean;
|
|
21
24
|
description: string;
|
|
22
25
|
};
|
|
23
26
|
width: {
|
|
24
27
|
type: StringConstructor;
|
|
25
28
|
default: string;
|
|
29
|
+
validator: (value: string) => boolean;
|
|
26
30
|
description: string;
|
|
27
31
|
};
|
|
28
32
|
height: {
|
|
29
33
|
type: StringConstructor;
|
|
30
34
|
default: string;
|
|
35
|
+
validator: (value: string) => boolean;
|
|
31
36
|
description: string;
|
|
32
37
|
};
|
|
33
38
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
34
39
|
type: {
|
|
35
|
-
type: globalThis.PropType<"search" | "address" | "article" | "404" | "goods" | "likes" | "car" | "
|
|
40
|
+
type: globalThis.PropType<"search" | "address" | "article" | "404" | "goods" | "likes" | "car" | "comment" | "network" | "order">;
|
|
36
41
|
default: string;
|
|
37
|
-
|
|
42
|
+
validator: (value: "search" | "address" | "article" | "404" | "goods" | "likes" | "car" | "comment" | "network" | "order") => boolean;
|
|
38
43
|
description: string;
|
|
39
44
|
};
|
|
40
45
|
title: {
|
|
41
46
|
type: StringConstructor;
|
|
42
47
|
default: string;
|
|
48
|
+
validator: (value: string) => boolean;
|
|
43
49
|
description: string;
|
|
44
50
|
};
|
|
45
51
|
fontSize: {
|
|
46
52
|
type: (StringConstructor | NumberConstructor)[];
|
|
47
53
|
default: string;
|
|
54
|
+
validator: (value: string | number) => boolean;
|
|
48
55
|
description: string;
|
|
49
56
|
};
|
|
50
57
|
padding: {
|
|
51
58
|
type: StringConstructor;
|
|
52
59
|
default: string;
|
|
60
|
+
validator: (value: string) => boolean;
|
|
53
61
|
description: string;
|
|
54
62
|
};
|
|
55
63
|
width: {
|
|
56
64
|
type: StringConstructor;
|
|
57
65
|
default: string;
|
|
66
|
+
validator: (value: string) => boolean;
|
|
58
67
|
description: string;
|
|
59
68
|
};
|
|
60
69
|
height: {
|
|
61
70
|
type: StringConstructor;
|
|
62
71
|
default: string;
|
|
72
|
+
validator: (value: string) => boolean;
|
|
63
73
|
description: string;
|
|
64
74
|
};
|
|
65
75
|
}>>, {
|
|
66
|
-
type: "search" | "address" | "article" | "404" | "goods" | "likes" | "car" | "
|
|
76
|
+
type: "search" | "address" | "article" | "404" | "goods" | "likes" | "car" | "comment" | "network" | "order";
|
|
67
77
|
width: string;
|
|
68
78
|
title: string;
|
|
69
79
|
height: string;
|
|
@@ -1,36 +1,41 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
|
|
3
|
-
type EmptyType = '404' | 'address' | 'article' | 'goods' | 'likes' | 'car' | '
|
|
3
|
+
type EmptyType = '404' | 'address' | 'article' | 'goods' | 'likes' | 'car' | 'comment' | 'network' | 'order' | 'search';
|
|
4
4
|
export declare const emptyProps: {
|
|
5
5
|
type: {
|
|
6
6
|
type: PropType<EmptyType>;
|
|
7
7
|
default: string;
|
|
8
|
-
|
|
8
|
+
validator: (value: EmptyType) => boolean;
|
|
9
9
|
description: string;
|
|
10
10
|
};
|
|
11
11
|
title: {
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
default: string;
|
|
14
|
+
validator: (value: string) => boolean;
|
|
14
15
|
description: string;
|
|
15
16
|
};
|
|
16
17
|
fontSize: {
|
|
17
18
|
type: (StringConstructor | NumberConstructor)[];
|
|
18
19
|
default: string;
|
|
20
|
+
validator: (value: string | number) => boolean;
|
|
19
21
|
description: string;
|
|
20
22
|
};
|
|
21
23
|
padding: {
|
|
22
24
|
type: StringConstructor;
|
|
23
25
|
default: string;
|
|
26
|
+
validator: (value: string) => boolean;
|
|
24
27
|
description: string;
|
|
25
28
|
};
|
|
26
29
|
width: {
|
|
27
30
|
type: StringConstructor;
|
|
28
31
|
default: string;
|
|
32
|
+
validator: (value: string) => boolean;
|
|
29
33
|
description: string;
|
|
30
34
|
};
|
|
31
35
|
height: {
|
|
32
36
|
type: StringConstructor;
|
|
33
37
|
default: string;
|
|
38
|
+
validator: (value: string) => boolean;
|
|
34
39
|
description: string;
|
|
35
40
|
};
|
|
36
41
|
};
|
|
@@ -3,88 +3,94 @@ declare function __VLS_template(): {
|
|
|
3
3
|
};
|
|
4
4
|
declare const __VLS_component: import('vue').DefineComponent<{
|
|
5
5
|
direction: {
|
|
6
|
-
type:
|
|
6
|
+
type: globalThis.PropType<import('./props').FlexDirection>;
|
|
7
7
|
default: string;
|
|
8
8
|
description: string;
|
|
9
|
+
validator(value: import('./props').FlexDirection): boolean;
|
|
9
10
|
};
|
|
10
11
|
x: {
|
|
11
|
-
type:
|
|
12
|
+
type: globalThis.PropType<import('./props').FlexAlignment>;
|
|
12
13
|
default: string;
|
|
13
|
-
typeDesc: string;
|
|
14
14
|
description: string;
|
|
15
|
+
validator(value: import('./props').FlexAlignment): boolean;
|
|
15
16
|
};
|
|
16
17
|
y: {
|
|
17
|
-
type:
|
|
18
|
+
type: globalThis.PropType<import('./props').FlexAlignment>;
|
|
18
19
|
default: string;
|
|
19
|
-
typeDesc: string;
|
|
20
20
|
description: string;
|
|
21
|
+
validator(value: import('./props').FlexAlignment): boolean;
|
|
22
|
+
};
|
|
23
|
+
mode: {
|
|
24
|
+
type: globalThis.PropType<import('./props').FlexMode>;
|
|
25
|
+
default: string;
|
|
26
|
+
description: string;
|
|
27
|
+
validator(value: import('./props').FlexMode): boolean;
|
|
21
28
|
};
|
|
22
29
|
wrap: {
|
|
23
30
|
type: BooleanConstructor;
|
|
24
31
|
default: boolean;
|
|
25
32
|
description: string;
|
|
26
33
|
};
|
|
27
|
-
mode: {
|
|
28
|
-
type: StringConstructor;
|
|
29
|
-
default: string;
|
|
30
|
-
typeDesc: string;
|
|
31
|
-
description: string;
|
|
32
|
-
};
|
|
33
34
|
gap: {
|
|
34
35
|
type: (StringConstructor | NumberConstructor)[];
|
|
35
36
|
default: number;
|
|
36
37
|
description: string;
|
|
38
|
+
validator(value: string | number): boolean;
|
|
37
39
|
};
|
|
38
40
|
width: {
|
|
39
41
|
type: (StringConstructor | NumberConstructor)[];
|
|
40
42
|
default: string;
|
|
41
43
|
description: string;
|
|
44
|
+
validator(value: string | number): boolean;
|
|
42
45
|
};
|
|
43
46
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
44
47
|
direction: {
|
|
45
|
-
type:
|
|
48
|
+
type: globalThis.PropType<import('./props').FlexDirection>;
|
|
46
49
|
default: string;
|
|
47
50
|
description: string;
|
|
51
|
+
validator(value: import('./props').FlexDirection): boolean;
|
|
48
52
|
};
|
|
49
53
|
x: {
|
|
50
|
-
type:
|
|
54
|
+
type: globalThis.PropType<import('./props').FlexAlignment>;
|
|
51
55
|
default: string;
|
|
52
|
-
typeDesc: string;
|
|
53
56
|
description: string;
|
|
57
|
+
validator(value: import('./props').FlexAlignment): boolean;
|
|
54
58
|
};
|
|
55
59
|
y: {
|
|
56
|
-
type:
|
|
60
|
+
type: globalThis.PropType<import('./props').FlexAlignment>;
|
|
57
61
|
default: string;
|
|
58
|
-
typeDesc: string;
|
|
59
62
|
description: string;
|
|
63
|
+
validator(value: import('./props').FlexAlignment): boolean;
|
|
64
|
+
};
|
|
65
|
+
mode: {
|
|
66
|
+
type: globalThis.PropType<import('./props').FlexMode>;
|
|
67
|
+
default: string;
|
|
68
|
+
description: string;
|
|
69
|
+
validator(value: import('./props').FlexMode): boolean;
|
|
60
70
|
};
|
|
61
71
|
wrap: {
|
|
62
72
|
type: BooleanConstructor;
|
|
63
73
|
default: boolean;
|
|
64
74
|
description: string;
|
|
65
75
|
};
|
|
66
|
-
mode: {
|
|
67
|
-
type: StringConstructor;
|
|
68
|
-
default: string;
|
|
69
|
-
typeDesc: string;
|
|
70
|
-
description: string;
|
|
71
|
-
};
|
|
72
76
|
gap: {
|
|
73
77
|
type: (StringConstructor | NumberConstructor)[];
|
|
74
78
|
default: number;
|
|
75
79
|
description: string;
|
|
80
|
+
validator(value: string | number): boolean;
|
|
76
81
|
};
|
|
77
82
|
width: {
|
|
78
83
|
type: (StringConstructor | NumberConstructor)[];
|
|
79
84
|
default: string;
|
|
80
85
|
description: string;
|
|
86
|
+
validator(value: string | number): boolean;
|
|
81
87
|
};
|
|
82
88
|
}>>, {
|
|
83
|
-
x:
|
|
84
|
-
|
|
85
|
-
|
|
89
|
+
x: import('./props').FlexAlignment;
|
|
90
|
+
y: import('./props').FlexAlignment;
|
|
91
|
+
direction: import('./props').FlexDirection;
|
|
92
|
+
mode: import('./props').FlexMode;
|
|
86
93
|
wrap: boolean;
|
|
87
|
-
mode: string;
|
|
88
94
|
gap: string | number;
|
|
89
95
|
width: string | number;
|
|
90
96
|
}, {}>;
|
|
@@ -1,43 +1,49 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
|
|
3
|
+
export type FlexDirection = 'x' | 'y';
|
|
4
|
+
export type FlexAlignment = 'start' | 'center' | 'end';
|
|
5
|
+
export type FlexMode = 'around' | 'between';
|
|
3
6
|
export declare const flexProps: {
|
|
4
7
|
direction: {
|
|
5
|
-
type:
|
|
8
|
+
type: PropType<FlexDirection>;
|
|
6
9
|
default: string;
|
|
7
10
|
description: string;
|
|
11
|
+
validator(value: FlexDirection): boolean;
|
|
8
12
|
};
|
|
9
13
|
x: {
|
|
10
|
-
type:
|
|
14
|
+
type: PropType<FlexAlignment>;
|
|
11
15
|
default: string;
|
|
12
|
-
typeDesc: string;
|
|
13
16
|
description: string;
|
|
17
|
+
validator(value: FlexAlignment): boolean;
|
|
14
18
|
};
|
|
15
19
|
y: {
|
|
16
|
-
type:
|
|
20
|
+
type: PropType<FlexAlignment>;
|
|
17
21
|
default: string;
|
|
18
|
-
typeDesc: string;
|
|
19
22
|
description: string;
|
|
23
|
+
validator(value: FlexAlignment): boolean;
|
|
24
|
+
};
|
|
25
|
+
mode: {
|
|
26
|
+
type: PropType<FlexMode>;
|
|
27
|
+
default: string;
|
|
28
|
+
description: string;
|
|
29
|
+
validator(value: FlexMode): boolean;
|
|
20
30
|
};
|
|
21
31
|
wrap: {
|
|
22
32
|
type: BooleanConstructor;
|
|
23
33
|
default: boolean;
|
|
24
34
|
description: string;
|
|
25
35
|
};
|
|
26
|
-
mode: {
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
default: string;
|
|
29
|
-
typeDesc: string;
|
|
30
|
-
description: string;
|
|
31
|
-
};
|
|
32
36
|
gap: {
|
|
33
37
|
type: (StringConstructor | NumberConstructor)[];
|
|
34
38
|
default: number;
|
|
35
39
|
description: string;
|
|
40
|
+
validator(value: string | number): boolean;
|
|
36
41
|
};
|
|
37
42
|
width: {
|
|
38
43
|
type: (StringConstructor | NumberConstructor)[];
|
|
39
44
|
default: string;
|
|
40
45
|
description: string;
|
|
46
|
+
validator(value: string | number): boolean;
|
|
41
47
|
};
|
|
42
48
|
};
|
|
43
49
|
export type FlexProps = ExtractPropTypes<typeof flexProps>;
|