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
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TreeDataSource } from '../../tree';
|
|
3
|
+
import { LewSize } from '../../..';
|
|
3
4
|
|
|
4
5
|
export type TreeSelectOptions = {
|
|
5
6
|
label: string;
|
|
6
|
-
value:
|
|
7
|
+
value: string | number;
|
|
7
8
|
labelPaths?: string[];
|
|
8
9
|
keysPaths?: string[];
|
|
9
10
|
level: number;
|
|
@@ -16,10 +17,11 @@ export type TreeSelectOptions = {
|
|
|
16
17
|
children?: TreeSelectOptions[];
|
|
17
18
|
};
|
|
18
19
|
export type TreeSelectTriggerType = 'click' | 'hover';
|
|
20
|
+
export type TreeSelectAlign = 'left' | 'center' | 'right';
|
|
19
21
|
export declare const treeSelectModel: {
|
|
20
22
|
modelValue: {
|
|
21
|
-
type: (StringConstructor | NumberConstructor
|
|
22
|
-
default:
|
|
23
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
24
|
+
default: undefined;
|
|
23
25
|
description: string;
|
|
24
26
|
};
|
|
25
27
|
};
|
|
@@ -28,13 +30,19 @@ export type TreeSelectSearchMethodParams = {
|
|
|
28
30
|
keyword?: string;
|
|
29
31
|
};
|
|
30
32
|
export declare const treeSelectProps: {
|
|
33
|
+
modelValue: {
|
|
34
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
35
|
+
default: undefined;
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
31
38
|
dataSource: {
|
|
32
39
|
type: PropType<TreeDataSource[]>;
|
|
33
|
-
default: never[];
|
|
40
|
+
default: () => never[];
|
|
34
41
|
description: string;
|
|
42
|
+
validator: (value: TreeDataSource[]) => boolean;
|
|
35
43
|
};
|
|
36
|
-
|
|
37
|
-
type: StringConstructor;
|
|
44
|
+
defaultValue: {
|
|
45
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
38
46
|
default: string;
|
|
39
47
|
description: string;
|
|
40
48
|
};
|
|
@@ -44,49 +52,78 @@ export declare const treeSelectProps: {
|
|
|
44
52
|
description: string;
|
|
45
53
|
};
|
|
46
54
|
size: {
|
|
47
|
-
type:
|
|
55
|
+
type: PropType<LewSize>;
|
|
48
56
|
default: string;
|
|
49
57
|
description: string;
|
|
58
|
+
validator: (value: LewSize) => boolean;
|
|
59
|
+
};
|
|
60
|
+
disabled: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
clearable: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
70
|
+
showCheckbox: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
description: string;
|
|
50
74
|
};
|
|
51
75
|
showAllLevels: {
|
|
52
76
|
type: BooleanConstructor;
|
|
53
77
|
default: boolean;
|
|
54
78
|
description: string;
|
|
55
79
|
};
|
|
56
|
-
|
|
80
|
+
showCheckIcon: {
|
|
57
81
|
type: BooleanConstructor;
|
|
58
82
|
default: boolean;
|
|
59
83
|
description: string;
|
|
60
84
|
};
|
|
61
|
-
|
|
62
|
-
type:
|
|
63
|
-
default:
|
|
85
|
+
showLine: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
64
88
|
description: string;
|
|
65
89
|
};
|
|
66
|
-
|
|
90
|
+
expandAll: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
description: string;
|
|
94
|
+
};
|
|
95
|
+
searchable: {
|
|
67
96
|
type: BooleanConstructor;
|
|
68
97
|
default: boolean;
|
|
69
98
|
description: string;
|
|
70
99
|
};
|
|
100
|
+
searchDelay: {
|
|
101
|
+
type: NumberConstructor;
|
|
102
|
+
default: number;
|
|
103
|
+
description: string;
|
|
104
|
+
validator: (value: number) => boolean;
|
|
105
|
+
};
|
|
71
106
|
readonly: {
|
|
72
107
|
type: BooleanConstructor;
|
|
73
108
|
default: boolean;
|
|
74
109
|
description: string;
|
|
75
110
|
};
|
|
76
|
-
|
|
111
|
+
free: {
|
|
77
112
|
type: BooleanConstructor;
|
|
78
113
|
default: boolean;
|
|
79
114
|
description: string;
|
|
80
115
|
};
|
|
81
116
|
align: {
|
|
82
|
-
type:
|
|
117
|
+
type: PropType<TreeSelectAlign>;
|
|
83
118
|
default: string;
|
|
84
119
|
description: string;
|
|
120
|
+
validator: (value: TreeSelectAlign) => boolean;
|
|
85
121
|
};
|
|
86
|
-
|
|
87
|
-
type:
|
|
88
|
-
default:
|
|
122
|
+
trigger: {
|
|
123
|
+
type: PropType<TreeSelectTriggerType>;
|
|
124
|
+
default: string;
|
|
89
125
|
description: string;
|
|
126
|
+
validator: (value: TreeSelectTriggerType) => boolean;
|
|
90
127
|
};
|
|
91
128
|
keyField: {
|
|
92
129
|
type: StringConstructor;
|
|
@@ -103,39 +140,14 @@ export declare const treeSelectProps: {
|
|
|
103
140
|
default: string;
|
|
104
141
|
description: string;
|
|
105
142
|
};
|
|
106
|
-
defaultValue: {
|
|
107
|
-
type: StringConstructor;
|
|
108
|
-
default: string;
|
|
109
|
-
description: string;
|
|
110
|
-
};
|
|
111
|
-
showCheckbox: {
|
|
112
|
-
type: BooleanConstructor;
|
|
113
|
-
default: boolean;
|
|
114
|
-
description: string;
|
|
115
|
-
};
|
|
116
143
|
initTree: {
|
|
117
|
-
type: PropType<() => void
|
|
144
|
+
type: PropType<() => void>;
|
|
118
145
|
default: undefined;
|
|
119
146
|
description: string;
|
|
120
147
|
};
|
|
121
148
|
onload: {
|
|
122
|
-
type: PropType<() => void
|
|
149
|
+
type: PropType<() => void>;
|
|
123
150
|
default: undefined;
|
|
124
151
|
description: string;
|
|
125
152
|
};
|
|
126
|
-
showLine: {
|
|
127
|
-
type: BooleanConstructor;
|
|
128
|
-
default: boolean;
|
|
129
|
-
description: string;
|
|
130
|
-
};
|
|
131
|
-
expandAll: {
|
|
132
|
-
type: BooleanConstructor;
|
|
133
|
-
default: boolean;
|
|
134
|
-
description: string;
|
|
135
|
-
};
|
|
136
|
-
free: {
|
|
137
|
-
type: BooleanConstructor;
|
|
138
|
-
default: boolean;
|
|
139
|
-
description: string;
|
|
140
|
-
};
|
|
141
153
|
};
|
|
@@ -2,19 +2,14 @@ import { UploadFileItem } from './props';
|
|
|
2
2
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<{
|
|
4
4
|
modelValue: import('vue').PropType<UploadFileItem[]>;
|
|
5
|
-
size: {
|
|
6
|
-
type: PropType<import('../..').FormSize>;
|
|
7
|
-
default: string;
|
|
8
|
-
description: string;
|
|
9
|
-
};
|
|
10
5
|
accept: {
|
|
11
6
|
type: StringConstructor;
|
|
12
7
|
default: string;
|
|
13
8
|
description: string;
|
|
14
9
|
};
|
|
15
|
-
|
|
16
|
-
type:
|
|
17
|
-
default:
|
|
10
|
+
multiple: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
18
13
|
description: string;
|
|
19
14
|
};
|
|
20
15
|
disabled: {
|
|
@@ -27,43 +22,48 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
27
22
|
default: boolean;
|
|
28
23
|
description: string;
|
|
29
24
|
};
|
|
30
|
-
|
|
31
|
-
type:
|
|
32
|
-
default:
|
|
33
|
-
description: string;
|
|
34
|
-
};
|
|
35
|
-
multiple: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
25
|
+
limit: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
default: number;
|
|
38
28
|
description: string;
|
|
29
|
+
validator: (value: number) => boolean;
|
|
39
30
|
};
|
|
40
|
-
|
|
31
|
+
maxFileSize: {
|
|
41
32
|
type: NumberConstructor;
|
|
42
33
|
default: number;
|
|
43
34
|
description: string;
|
|
35
|
+
validator: (value: number) => boolean;
|
|
36
|
+
};
|
|
37
|
+
size: {
|
|
38
|
+
type: PropType<import('../../..').LewSize>;
|
|
39
|
+
default: string;
|
|
40
|
+
description: string;
|
|
41
|
+
validator: (value: import('../../..').LewSize) => boolean;
|
|
42
|
+
};
|
|
43
|
+
tips: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
description: string;
|
|
47
|
+
validator: (value: string) => boolean;
|
|
44
48
|
};
|
|
45
49
|
uploadHelper: {
|
|
46
50
|
type: FunctionConstructor;
|
|
47
|
-
default: () => void
|
|
51
|
+
default: () => Promise<void>;
|
|
48
52
|
description: string;
|
|
53
|
+
validator: (value: Function) => boolean;
|
|
49
54
|
};
|
|
50
55
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
51
56
|
change: (...args: any[]) => void;
|
|
52
57
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
53
58
|
modelValue: import('vue').PropType<UploadFileItem[]>;
|
|
54
|
-
size: {
|
|
55
|
-
type: PropType<import('../..').FormSize>;
|
|
56
|
-
default: string;
|
|
57
|
-
description: string;
|
|
58
|
-
};
|
|
59
59
|
accept: {
|
|
60
60
|
type: StringConstructor;
|
|
61
61
|
default: string;
|
|
62
62
|
description: string;
|
|
63
63
|
};
|
|
64
|
-
|
|
65
|
-
type:
|
|
66
|
-
default:
|
|
64
|
+
multiple: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
67
|
description: string;
|
|
68
68
|
};
|
|
69
69
|
disabled: {
|
|
@@ -76,37 +76,47 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
76
76
|
default: boolean;
|
|
77
77
|
description: string;
|
|
78
78
|
};
|
|
79
|
-
|
|
80
|
-
type:
|
|
81
|
-
default:
|
|
82
|
-
description: string;
|
|
83
|
-
};
|
|
84
|
-
multiple: {
|
|
85
|
-
type: BooleanConstructor;
|
|
86
|
-
default: boolean;
|
|
79
|
+
limit: {
|
|
80
|
+
type: NumberConstructor;
|
|
81
|
+
default: number;
|
|
87
82
|
description: string;
|
|
83
|
+
validator: (value: number) => boolean;
|
|
88
84
|
};
|
|
89
|
-
|
|
85
|
+
maxFileSize: {
|
|
90
86
|
type: NumberConstructor;
|
|
91
87
|
default: number;
|
|
92
88
|
description: string;
|
|
89
|
+
validator: (value: number) => boolean;
|
|
90
|
+
};
|
|
91
|
+
size: {
|
|
92
|
+
type: PropType<import('../../..').LewSize>;
|
|
93
|
+
default: string;
|
|
94
|
+
description: string;
|
|
95
|
+
validator: (value: import('../../..').LewSize) => boolean;
|
|
96
|
+
};
|
|
97
|
+
tips: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
description: string;
|
|
101
|
+
validator: (value: string) => boolean;
|
|
93
102
|
};
|
|
94
103
|
uploadHelper: {
|
|
95
104
|
type: FunctionConstructor;
|
|
96
|
-
default: () => void
|
|
105
|
+
default: () => Promise<void>;
|
|
97
106
|
description: string;
|
|
107
|
+
validator: (value: Function) => boolean;
|
|
98
108
|
};
|
|
99
109
|
}>> & {
|
|
100
110
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
101
111
|
}, {
|
|
102
|
-
size: import('
|
|
112
|
+
size: import('../../..').LewSize;
|
|
113
|
+
disabled: boolean;
|
|
103
114
|
multiple: boolean;
|
|
104
115
|
readonly: boolean;
|
|
105
|
-
disabled: boolean;
|
|
106
116
|
tips: string;
|
|
107
117
|
accept: string;
|
|
108
|
-
maxFileSize: number;
|
|
109
118
|
limit: number;
|
|
119
|
+
maxFileSize: number;
|
|
110
120
|
uploadHelper: Function;
|
|
111
121
|
}, {}>;
|
|
112
122
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { LewSize } from '../../..';
|
|
3
3
|
|
|
4
4
|
export type UploadStatus = 'success' | 'fail' | 'uploading' | 'pending' | 'complete' | 'wrong_type' | 'wrong_size';
|
|
5
5
|
export type UploadFileItem = {
|
|
@@ -11,23 +11,18 @@ export type UploadFileItem = {
|
|
|
11
11
|
file?: File;
|
|
12
12
|
size?: number;
|
|
13
13
|
type?: string;
|
|
14
|
-
lastModifiedDate?:
|
|
15
|
-
lastModified?:
|
|
14
|
+
lastModifiedDate?: Date;
|
|
15
|
+
lastModified?: number;
|
|
16
16
|
};
|
|
17
17
|
export declare const uploadProps: {
|
|
18
|
-
size: {
|
|
19
|
-
type: PropType<FormSize>;
|
|
20
|
-
default: string;
|
|
21
|
-
description: string;
|
|
22
|
-
};
|
|
23
18
|
accept: {
|
|
24
19
|
type: StringConstructor;
|
|
25
20
|
default: string;
|
|
26
21
|
description: string;
|
|
27
22
|
};
|
|
28
|
-
|
|
29
|
-
type:
|
|
30
|
-
default:
|
|
23
|
+
multiple: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
31
26
|
description: string;
|
|
32
27
|
};
|
|
33
28
|
disabled: {
|
|
@@ -40,25 +35,35 @@ export declare const uploadProps: {
|
|
|
40
35
|
default: boolean;
|
|
41
36
|
description: string;
|
|
42
37
|
};
|
|
43
|
-
|
|
44
|
-
type:
|
|
45
|
-
default:
|
|
46
|
-
description: string;
|
|
47
|
-
};
|
|
48
|
-
multiple: {
|
|
49
|
-
type: BooleanConstructor;
|
|
50
|
-
default: boolean;
|
|
38
|
+
limit: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
51
41
|
description: string;
|
|
42
|
+
validator: (value: number) => boolean;
|
|
52
43
|
};
|
|
53
|
-
|
|
44
|
+
maxFileSize: {
|
|
54
45
|
type: NumberConstructor;
|
|
55
46
|
default: number;
|
|
56
47
|
description: string;
|
|
48
|
+
validator: (value: number) => boolean;
|
|
49
|
+
};
|
|
50
|
+
size: {
|
|
51
|
+
type: PropType<LewSize>;
|
|
52
|
+
default: string;
|
|
53
|
+
description: string;
|
|
54
|
+
validator: (value: LewSize) => boolean;
|
|
55
|
+
};
|
|
56
|
+
tips: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
description: string;
|
|
60
|
+
validator: (value: string) => boolean;
|
|
57
61
|
};
|
|
58
62
|
uploadHelper: {
|
|
59
63
|
type: FunctionConstructor;
|
|
60
|
-
default: () => void
|
|
64
|
+
default: () => Promise<void>;
|
|
61
65
|
description: string;
|
|
66
|
+
validator: (value: Function) => boolean;
|
|
62
67
|
};
|
|
63
68
|
};
|
|
64
69
|
export type UploadProps = ExtractPropTypes<typeof uploadProps>;
|
|
@@ -4,14 +4,10 @@ declare function __VLS_template(): {
|
|
|
4
4
|
};
|
|
5
5
|
declare const __VLS_component: import('vue').DefineComponent<{
|
|
6
6
|
type: {
|
|
7
|
-
type: globalThis.PropType<import('../../..').ButtonColor>;
|
|
8
|
-
default: string;
|
|
9
|
-
description: string;
|
|
10
|
-
};
|
|
11
|
-
layout: {
|
|
12
7
|
type: StringConstructor;
|
|
13
8
|
default: string;
|
|
14
9
|
description: string;
|
|
10
|
+
validator: (value: string) => boolean;
|
|
15
11
|
};
|
|
16
12
|
okText: {
|
|
17
13
|
type: StringConstructor;
|
|
@@ -33,6 +29,12 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
33
29
|
default: () => boolean;
|
|
34
30
|
description: string;
|
|
35
31
|
};
|
|
32
|
+
layout: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
description: string;
|
|
36
|
+
validator: (value: string) => boolean;
|
|
37
|
+
};
|
|
36
38
|
closeOnClickOverlay: {
|
|
37
39
|
type: BooleanConstructor;
|
|
38
40
|
default: boolean;
|
|
@@ -52,14 +54,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
52
54
|
close: (...args: any[]) => void;
|
|
53
55
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
54
56
|
type: {
|
|
55
|
-
type: globalThis.PropType<import('../../..').ButtonColor>;
|
|
56
|
-
default: string;
|
|
57
|
-
description: string;
|
|
58
|
-
};
|
|
59
|
-
layout: {
|
|
60
57
|
type: StringConstructor;
|
|
61
58
|
default: string;
|
|
62
59
|
description: string;
|
|
60
|
+
validator: (value: string) => boolean;
|
|
63
61
|
};
|
|
64
62
|
okText: {
|
|
65
63
|
type: StringConstructor;
|
|
@@ -81,6 +79,12 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
81
79
|
default: () => boolean;
|
|
82
80
|
description: string;
|
|
83
81
|
};
|
|
82
|
+
layout: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: string;
|
|
85
|
+
description: string;
|
|
86
|
+
validator: (value: string) => boolean;
|
|
87
|
+
};
|
|
84
88
|
closeOnClickOverlay: {
|
|
85
89
|
type: BooleanConstructor;
|
|
86
90
|
default: boolean;
|
|
@@ -99,15 +103,15 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
99
103
|
}>> & {
|
|
100
104
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
101
105
|
}, {
|
|
102
|
-
type:
|
|
106
|
+
type: string;
|
|
103
107
|
ok: Function;
|
|
104
108
|
cancel: Function;
|
|
105
109
|
closeByEsc: boolean;
|
|
106
110
|
closeOnClickOverlay: boolean;
|
|
107
111
|
transformOrigin: string;
|
|
108
|
-
layout: string;
|
|
109
112
|
okText: string;
|
|
110
113
|
cancelText: string;
|
|
114
|
+
layout: string;
|
|
111
115
|
}, {}>;
|
|
112
116
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
113
117
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
type Options = {
|
|
2
2
|
title: string;
|
|
3
3
|
content: string;
|
|
4
|
-
ok
|
|
5
|
-
cancel
|
|
6
|
-
layout
|
|
7
|
-
okText
|
|
8
|
-
cancelText
|
|
4
|
+
ok?: () => boolean | Promise<boolean>;
|
|
5
|
+
cancel?: () => boolean | Promise<boolean>;
|
|
6
|
+
layout?: string;
|
|
7
|
+
okText?: string;
|
|
8
|
+
cancelText?: string;
|
|
9
9
|
closeOnClickOverlay?: boolean;
|
|
10
10
|
closeByEsc?: boolean;
|
|
11
11
|
};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { ExtractPropTypes
|
|
2
|
-
import { ButtonColor } from '../../..';
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
3
2
|
|
|
4
3
|
export declare const dialogProps: {
|
|
5
4
|
type: {
|
|
6
|
-
type: PropType<ButtonColor>;
|
|
7
|
-
default: string;
|
|
8
|
-
description: string;
|
|
9
|
-
};
|
|
10
|
-
layout: {
|
|
11
5
|
type: StringConstructor;
|
|
12
6
|
default: string;
|
|
13
7
|
description: string;
|
|
8
|
+
validator: (value: string) => boolean;
|
|
14
9
|
};
|
|
15
10
|
okText: {
|
|
16
11
|
type: StringConstructor;
|
|
@@ -32,6 +27,12 @@ export declare const dialogProps: {
|
|
|
32
27
|
default: () => boolean;
|
|
33
28
|
description: string;
|
|
34
29
|
};
|
|
30
|
+
layout: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
description: string;
|
|
34
|
+
validator: (value: string) => boolean;
|
|
35
|
+
};
|
|
35
36
|
closeOnClickOverlay: {
|
|
36
37
|
type: BooleanConstructor;
|
|
37
38
|
default: boolean;
|