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
|
@@ -7,40 +7,45 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
7
7
|
};
|
|
8
8
|
options: {
|
|
9
9
|
type: globalThis.PropType<TabsOptions[]>;
|
|
10
|
-
default: never[];
|
|
10
|
+
default: () => never[];
|
|
11
11
|
description: string;
|
|
12
|
+
validator: (value: TabsOptions[]) => boolean;
|
|
13
|
+
};
|
|
14
|
+
type: {
|
|
15
|
+
type: globalThis.PropType<import('./props').TabsType>;
|
|
16
|
+
default: string;
|
|
17
|
+
description: string;
|
|
18
|
+
validator: (value: import('./props').TabsType) => boolean;
|
|
12
19
|
};
|
|
13
20
|
size: {
|
|
14
21
|
type: globalThis.PropType<import('./props').TabsSize>;
|
|
15
22
|
default: string;
|
|
16
23
|
description: string;
|
|
24
|
+
validator: (value: import('./props').TabsSize) => boolean;
|
|
17
25
|
};
|
|
18
26
|
width: {
|
|
19
27
|
type: (StringConstructor | NumberConstructor)[];
|
|
20
28
|
default: string;
|
|
21
29
|
description: string;
|
|
30
|
+
validator: (value: number | string) => boolean;
|
|
22
31
|
};
|
|
23
32
|
itemWidth: {
|
|
24
33
|
type: (StringConstructor | NumberConstructor)[];
|
|
25
34
|
default: string;
|
|
26
35
|
description: string;
|
|
36
|
+
validator: (value: number | string) => boolean;
|
|
27
37
|
};
|
|
28
38
|
round: {
|
|
29
39
|
type: BooleanConstructor;
|
|
30
40
|
default: boolean;
|
|
31
41
|
description: string;
|
|
32
42
|
};
|
|
33
|
-
|
|
34
|
-
type: globalThis.PropType<import('./props').TabsType>;
|
|
35
|
-
default: string;
|
|
36
|
-
description: string;
|
|
37
|
-
};
|
|
38
|
-
readonly: {
|
|
43
|
+
disabled: {
|
|
39
44
|
type: BooleanConstructor;
|
|
40
45
|
default: boolean;
|
|
41
46
|
description: string;
|
|
42
47
|
};
|
|
43
|
-
|
|
48
|
+
readonly: {
|
|
44
49
|
type: BooleanConstructor;
|
|
45
50
|
default: boolean;
|
|
46
51
|
description: string;
|
|
@@ -54,40 +59,45 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
54
59
|
};
|
|
55
60
|
options: {
|
|
56
61
|
type: globalThis.PropType<TabsOptions[]>;
|
|
57
|
-
default: never[];
|
|
62
|
+
default: () => never[];
|
|
63
|
+
description: string;
|
|
64
|
+
validator: (value: TabsOptions[]) => boolean;
|
|
65
|
+
};
|
|
66
|
+
type: {
|
|
67
|
+
type: globalThis.PropType<import('./props').TabsType>;
|
|
68
|
+
default: string;
|
|
58
69
|
description: string;
|
|
70
|
+
validator: (value: import('./props').TabsType) => boolean;
|
|
59
71
|
};
|
|
60
72
|
size: {
|
|
61
73
|
type: globalThis.PropType<import('./props').TabsSize>;
|
|
62
74
|
default: string;
|
|
63
75
|
description: string;
|
|
76
|
+
validator: (value: import('./props').TabsSize) => boolean;
|
|
64
77
|
};
|
|
65
78
|
width: {
|
|
66
79
|
type: (StringConstructor | NumberConstructor)[];
|
|
67
80
|
default: string;
|
|
68
81
|
description: string;
|
|
82
|
+
validator: (value: number | string) => boolean;
|
|
69
83
|
};
|
|
70
84
|
itemWidth: {
|
|
71
85
|
type: (StringConstructor | NumberConstructor)[];
|
|
72
86
|
default: string;
|
|
73
87
|
description: string;
|
|
88
|
+
validator: (value: number | string) => boolean;
|
|
74
89
|
};
|
|
75
90
|
round: {
|
|
76
91
|
type: BooleanConstructor;
|
|
77
92
|
default: boolean;
|
|
78
93
|
description: string;
|
|
79
94
|
};
|
|
80
|
-
|
|
81
|
-
type: globalThis.PropType<import('./props').TabsType>;
|
|
82
|
-
default: string;
|
|
83
|
-
description: string;
|
|
84
|
-
};
|
|
85
|
-
readonly: {
|
|
95
|
+
disabled: {
|
|
86
96
|
type: BooleanConstructor;
|
|
87
97
|
default: boolean;
|
|
88
98
|
description: string;
|
|
89
99
|
};
|
|
90
|
-
|
|
100
|
+
readonly: {
|
|
91
101
|
type: BooleanConstructor;
|
|
92
102
|
default: boolean;
|
|
93
103
|
description: string;
|
|
@@ -100,8 +110,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
100
110
|
round: boolean;
|
|
101
111
|
size: import('./props').TabsSize;
|
|
102
112
|
options: TabsOptions[];
|
|
103
|
-
readonly: boolean;
|
|
104
113
|
disabled: boolean;
|
|
114
|
+
readonly: boolean;
|
|
105
115
|
itemWidth: string | number;
|
|
106
116
|
}, {}>;
|
|
107
117
|
export default _default;
|
|
@@ -1,56 +1,61 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
|
|
3
3
|
export type TabsOptions = {
|
|
4
4
|
label: string;
|
|
5
5
|
value: string | number;
|
|
6
|
-
activeIndex: Number;
|
|
7
6
|
};
|
|
8
7
|
export type TabsSize = 'small' | 'medium' | 'large';
|
|
9
8
|
export type TabsType = 'block' | 'line';
|
|
10
9
|
export declare const tabsModel: {
|
|
11
10
|
modelValue: {
|
|
12
11
|
type: (StringConstructor | NumberConstructor)[];
|
|
13
|
-
default:
|
|
12
|
+
default: string;
|
|
14
13
|
description: string;
|
|
14
|
+
validator: (value: string | number) => boolean;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
export declare const tabsProps: {
|
|
18
18
|
options: {
|
|
19
19
|
type: PropType<TabsOptions[]>;
|
|
20
|
-
default: never[];
|
|
20
|
+
default: () => never[];
|
|
21
|
+
description: string;
|
|
22
|
+
validator: (value: TabsOptions[]) => boolean;
|
|
23
|
+
};
|
|
24
|
+
type: {
|
|
25
|
+
type: PropType<TabsType>;
|
|
26
|
+
default: string;
|
|
21
27
|
description: string;
|
|
28
|
+
validator: (value: TabsType) => boolean;
|
|
22
29
|
};
|
|
23
30
|
size: {
|
|
24
31
|
type: PropType<TabsSize>;
|
|
25
32
|
default: string;
|
|
26
33
|
description: string;
|
|
34
|
+
validator: (value: TabsSize) => boolean;
|
|
27
35
|
};
|
|
28
36
|
width: {
|
|
29
37
|
type: (StringConstructor | NumberConstructor)[];
|
|
30
38
|
default: string;
|
|
31
39
|
description: string;
|
|
40
|
+
validator: (value: number | string) => boolean;
|
|
32
41
|
};
|
|
33
42
|
itemWidth: {
|
|
34
43
|
type: (StringConstructor | NumberConstructor)[];
|
|
35
44
|
default: string;
|
|
36
45
|
description: string;
|
|
46
|
+
validator: (value: number | string) => boolean;
|
|
37
47
|
};
|
|
38
48
|
round: {
|
|
39
49
|
type: BooleanConstructor;
|
|
40
50
|
default: boolean;
|
|
41
51
|
description: string;
|
|
42
52
|
};
|
|
43
|
-
|
|
44
|
-
type: PropType<TabsType>;
|
|
45
|
-
default: string;
|
|
46
|
-
description: string;
|
|
47
|
-
};
|
|
48
|
-
readonly: {
|
|
53
|
+
disabled: {
|
|
49
54
|
type: BooleanConstructor;
|
|
50
55
|
default: boolean;
|
|
51
56
|
description: string;
|
|
52
57
|
};
|
|
53
|
-
|
|
58
|
+
readonly: {
|
|
54
59
|
type: BooleanConstructor;
|
|
55
60
|
default: boolean;
|
|
56
61
|
description: string;
|
|
@@ -8,16 +8,19 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
8
8
|
type: globalThis.PropType<import('../../..').TagType>;
|
|
9
9
|
default: string;
|
|
10
10
|
description: string;
|
|
11
|
+
validator(value: import('../../..').TagType): boolean;
|
|
11
12
|
};
|
|
12
13
|
color: {
|
|
13
|
-
type: globalThis.PropType<import('../../..').
|
|
14
|
+
type: globalThis.PropType<import('../../..').LewColor>;
|
|
14
15
|
default: string;
|
|
15
16
|
description: string;
|
|
17
|
+
validator(value: import('../../..').LewColor): boolean;
|
|
16
18
|
};
|
|
17
19
|
size: {
|
|
18
|
-
type:
|
|
20
|
+
type: globalThis.PropType<import('../../..').LewSize>;
|
|
19
21
|
default: string;
|
|
20
22
|
description: string;
|
|
23
|
+
validator(value: import('../../..').LewSize): boolean;
|
|
21
24
|
};
|
|
22
25
|
round: {
|
|
23
26
|
type: BooleanConstructor;
|
|
@@ -41,16 +44,19 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
41
44
|
type: globalThis.PropType<import('../../..').TagType>;
|
|
42
45
|
default: string;
|
|
43
46
|
description: string;
|
|
47
|
+
validator(value: import('../../..').TagType): boolean;
|
|
44
48
|
};
|
|
45
49
|
color: {
|
|
46
|
-
type: globalThis.PropType<import('../../..').
|
|
50
|
+
type: globalThis.PropType<import('../../..').LewColor>;
|
|
47
51
|
default: string;
|
|
48
52
|
description: string;
|
|
53
|
+
validator(value: import('../../..').LewColor): boolean;
|
|
49
54
|
};
|
|
50
55
|
size: {
|
|
51
|
-
type:
|
|
56
|
+
type: globalThis.PropType<import('../../..').LewSize>;
|
|
52
57
|
default: string;
|
|
53
58
|
description: string;
|
|
59
|
+
validator(value: import('../../..').LewSize): boolean;
|
|
54
60
|
};
|
|
55
61
|
round: {
|
|
56
62
|
type: BooleanConstructor;
|
|
@@ -71,9 +77,9 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
71
77
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
72
78
|
}, {
|
|
73
79
|
type: import('../../..').TagType;
|
|
74
|
-
color: import('../../..').
|
|
80
|
+
color: import('../../..').LewColor;
|
|
75
81
|
round: boolean;
|
|
76
|
-
size:
|
|
82
|
+
size: import('../../..').LewSize;
|
|
77
83
|
disabled: boolean;
|
|
78
84
|
closable: boolean;
|
|
79
85
|
}, {}>;
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { LewColor, LewSize } from '../../..';
|
|
2
3
|
|
|
3
4
|
export type TagType = 'fill' | 'light' | 'ghost';
|
|
4
|
-
export type TagColor = 'red' | 'orange' | 'yellow' | 'green' | 'mint' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray' | 'brown' | 'success' | 'normal' | 'warning' | 'error' | 'info';
|
|
5
5
|
export declare const tagProps: {
|
|
6
6
|
type: {
|
|
7
7
|
type: PropType<TagType>;
|
|
8
8
|
default: string;
|
|
9
9
|
description: string;
|
|
10
|
+
validator(value: TagType): boolean;
|
|
10
11
|
};
|
|
11
12
|
color: {
|
|
12
|
-
type: PropType<
|
|
13
|
+
type: PropType<LewColor>;
|
|
13
14
|
default: string;
|
|
14
15
|
description: string;
|
|
16
|
+
validator(value: LewColor): boolean;
|
|
15
17
|
};
|
|
16
18
|
size: {
|
|
17
|
-
type:
|
|
19
|
+
type: PropType<LewSize>;
|
|
18
20
|
default: string;
|
|
19
21
|
description: string;
|
|
22
|
+
validator(value: LewSize): boolean;
|
|
20
23
|
};
|
|
21
24
|
round: {
|
|
22
25
|
type: BooleanConstructor;
|
|
@@ -1,44 +1,57 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
2
|
text: {
|
|
3
|
-
type: (
|
|
3
|
+
type: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor | ArrayConstructor)[];
|
|
4
4
|
default: string;
|
|
5
|
+
required: boolean;
|
|
5
6
|
description: string;
|
|
6
7
|
};
|
|
8
|
+
lineClamp: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
default: undefined;
|
|
11
|
+
description: string;
|
|
12
|
+
validator(value: number): boolean;
|
|
13
|
+
};
|
|
7
14
|
allowHTML: {
|
|
8
15
|
type: BooleanConstructor;
|
|
9
16
|
default: boolean;
|
|
10
17
|
description: string;
|
|
11
18
|
};
|
|
12
19
|
placement: {
|
|
13
|
-
type:
|
|
20
|
+
type: globalThis.PropType<import('./props').TextTrimPlacement>;
|
|
14
21
|
default: string;
|
|
15
22
|
description: string;
|
|
23
|
+
validator(value: import('./props').TextTrimPlacement): boolean;
|
|
16
24
|
};
|
|
17
25
|
offset: {
|
|
18
|
-
type:
|
|
19
|
-
default: number[];
|
|
26
|
+
type: globalThis.PropType<number[]>;
|
|
27
|
+
default: () => number[];
|
|
20
28
|
description: string;
|
|
29
|
+
validator(value: [number, number]): boolean;
|
|
21
30
|
};
|
|
22
31
|
x: {
|
|
23
|
-
type:
|
|
32
|
+
type: globalThis.PropType<import('./props').TextTrimAlignment>;
|
|
24
33
|
default: string;
|
|
25
34
|
description: string;
|
|
35
|
+
validator(value: import('./props').TextTrimAlignment): boolean;
|
|
26
36
|
};
|
|
27
37
|
delay: {
|
|
28
|
-
type:
|
|
29
|
-
default: number[];
|
|
30
|
-
description: string;
|
|
31
|
-
};
|
|
32
|
-
lineClamp: {
|
|
33
|
-
type: NumberConstructor;
|
|
34
|
-
default: undefined;
|
|
38
|
+
type: globalThis.PropType<number[]>;
|
|
39
|
+
default: () => number[];
|
|
35
40
|
description: string;
|
|
41
|
+
validator(value: [number, number]): boolean;
|
|
36
42
|
};
|
|
37
43
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
38
44
|
text: {
|
|
39
|
-
type: (
|
|
45
|
+
type: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor | ArrayConstructor)[];
|
|
40
46
|
default: string;
|
|
47
|
+
required: boolean;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
lineClamp: {
|
|
51
|
+
type: NumberConstructor;
|
|
52
|
+
default: undefined;
|
|
41
53
|
description: string;
|
|
54
|
+
validator(value: number): boolean;
|
|
42
55
|
};
|
|
43
56
|
allowHTML: {
|
|
44
57
|
type: BooleanConstructor;
|
|
@@ -46,37 +59,36 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
46
59
|
description: string;
|
|
47
60
|
};
|
|
48
61
|
placement: {
|
|
49
|
-
type:
|
|
62
|
+
type: globalThis.PropType<import('./props').TextTrimPlacement>;
|
|
50
63
|
default: string;
|
|
51
64
|
description: string;
|
|
65
|
+
validator(value: import('./props').TextTrimPlacement): boolean;
|
|
52
66
|
};
|
|
53
67
|
offset: {
|
|
54
|
-
type:
|
|
55
|
-
default: number[];
|
|
68
|
+
type: globalThis.PropType<number[]>;
|
|
69
|
+
default: () => number[];
|
|
56
70
|
description: string;
|
|
71
|
+
validator(value: [number, number]): boolean;
|
|
57
72
|
};
|
|
58
73
|
x: {
|
|
59
|
-
type:
|
|
74
|
+
type: globalThis.PropType<import('./props').TextTrimAlignment>;
|
|
60
75
|
default: string;
|
|
61
76
|
description: string;
|
|
77
|
+
validator(value: import('./props').TextTrimAlignment): boolean;
|
|
62
78
|
};
|
|
63
79
|
delay: {
|
|
64
|
-
type:
|
|
65
|
-
default: number[];
|
|
66
|
-
description: string;
|
|
67
|
-
};
|
|
68
|
-
lineClamp: {
|
|
69
|
-
type: NumberConstructor;
|
|
70
|
-
default: undefined;
|
|
80
|
+
type: globalThis.PropType<number[]>;
|
|
81
|
+
default: () => number[];
|
|
71
82
|
description: string;
|
|
83
|
+
validator(value: [number, number]): boolean;
|
|
72
84
|
};
|
|
73
85
|
}>>, {
|
|
74
|
-
x:
|
|
75
|
-
text: string | number | boolean | unknown[]
|
|
76
|
-
placement:
|
|
77
|
-
offset:
|
|
78
|
-
allowHTML: boolean;
|
|
79
|
-
delay: unknown[];
|
|
86
|
+
x: import('./props').TextTrimAlignment;
|
|
87
|
+
text: string | number | boolean | unknown[] | Record<string, any>;
|
|
88
|
+
placement: import('./props').TextTrimPlacement;
|
|
89
|
+
offset: number[];
|
|
80
90
|
lineClamp: number;
|
|
91
|
+
allowHTML: boolean;
|
|
92
|
+
delay: number[];
|
|
81
93
|
}, {}>;
|
|
82
94
|
export default _default;
|
|
@@ -1,40 +1,48 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
|
|
3
|
+
export type TextTrimPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
4
|
+
export type TextTrimAlignment = 'start' | 'center' | 'end';
|
|
3
5
|
export declare const textTrimProps: {
|
|
4
6
|
text: {
|
|
5
|
-
type: (
|
|
7
|
+
type: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor | ArrayConstructor)[];
|
|
6
8
|
default: string;
|
|
9
|
+
required: boolean;
|
|
7
10
|
description: string;
|
|
8
11
|
};
|
|
12
|
+
lineClamp: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: undefined;
|
|
15
|
+
description: string;
|
|
16
|
+
validator(value: number): boolean;
|
|
17
|
+
};
|
|
9
18
|
allowHTML: {
|
|
10
19
|
type: BooleanConstructor;
|
|
11
20
|
default: boolean;
|
|
12
21
|
description: string;
|
|
13
22
|
};
|
|
14
23
|
placement: {
|
|
15
|
-
type:
|
|
24
|
+
type: PropType<TextTrimPlacement>;
|
|
16
25
|
default: string;
|
|
17
26
|
description: string;
|
|
27
|
+
validator(value: TextTrimPlacement): boolean;
|
|
18
28
|
};
|
|
19
29
|
offset: {
|
|
20
|
-
type:
|
|
21
|
-
default: number[];
|
|
30
|
+
type: PropType<number[]>;
|
|
31
|
+
default: () => number[];
|
|
22
32
|
description: string;
|
|
33
|
+
validator(value: [number, number]): boolean;
|
|
23
34
|
};
|
|
24
35
|
x: {
|
|
25
|
-
type:
|
|
36
|
+
type: PropType<TextTrimAlignment>;
|
|
26
37
|
default: string;
|
|
27
38
|
description: string;
|
|
39
|
+
validator(value: TextTrimAlignment): boolean;
|
|
28
40
|
};
|
|
29
41
|
delay: {
|
|
30
|
-
type:
|
|
31
|
-
default: number[];
|
|
32
|
-
description: string;
|
|
33
|
-
};
|
|
34
|
-
lineClamp: {
|
|
35
|
-
type: NumberConstructor;
|
|
36
|
-
default: undefined;
|
|
42
|
+
type: PropType<number[]>;
|
|
43
|
+
default: () => number[];
|
|
37
44
|
description: string;
|
|
45
|
+
validator(value: [number, number]): boolean;
|
|
38
46
|
};
|
|
39
47
|
};
|
|
40
48
|
export type TextTrimProps = ExtractPropTypes<typeof textTrimProps>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
2
|
modelValue: import('vue').PropType<any>;
|
|
3
|
-
|
|
3
|
+
placeholder: {
|
|
4
4
|
type: StringConstructor;
|
|
5
5
|
default: string;
|
|
6
6
|
description: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
disabled: {
|
|
9
9
|
type: BooleanConstructor;
|
|
10
10
|
default: boolean;
|
|
11
11
|
description: string;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
readonly: {
|
|
14
14
|
type: BooleanConstructor;
|
|
15
15
|
default: boolean;
|
|
16
16
|
description: string;
|
|
@@ -20,12 +20,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
20
20
|
default: boolean;
|
|
21
21
|
description: string;
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
type: StringConstructor;
|
|
25
|
-
default: string;
|
|
26
|
-
description: string;
|
|
27
|
-
};
|
|
28
|
-
readonly: {
|
|
23
|
+
showCount: {
|
|
29
24
|
type: BooleanConstructor;
|
|
30
25
|
default: boolean;
|
|
31
26
|
description: string;
|
|
@@ -34,16 +29,19 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
34
29
|
type: (StringConstructor | NumberConstructor)[];
|
|
35
30
|
default: string;
|
|
36
31
|
description: string;
|
|
32
|
+
validator: (value: number | string) => boolean;
|
|
37
33
|
};
|
|
38
|
-
|
|
39
|
-
type:
|
|
40
|
-
default:
|
|
34
|
+
size: {
|
|
35
|
+
type: PropType<import('../../..').LewSize>;
|
|
36
|
+
default: string;
|
|
41
37
|
description: string;
|
|
38
|
+
validator: (value: import('../../..').LewSize) => boolean;
|
|
42
39
|
};
|
|
43
|
-
|
|
44
|
-
type:
|
|
45
|
-
default:
|
|
40
|
+
resize: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
46
43
|
description: string;
|
|
44
|
+
validator: (value: string) => boolean;
|
|
47
45
|
};
|
|
48
46
|
width: {
|
|
49
47
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -75,9 +73,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
75
73
|
default: string;
|
|
76
74
|
description: string;
|
|
77
75
|
};
|
|
78
|
-
|
|
79
|
-
type:
|
|
80
|
-
default:
|
|
76
|
+
selectByFocus: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
81
79
|
description: string;
|
|
82
80
|
};
|
|
83
81
|
okByEnter: {
|
|
@@ -98,17 +96,17 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
98
96
|
"update:type": (...args: any[]) => void;
|
|
99
97
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
100
98
|
modelValue: import('vue').PropType<any>;
|
|
101
|
-
|
|
99
|
+
placeholder: {
|
|
102
100
|
type: StringConstructor;
|
|
103
101
|
default: string;
|
|
104
102
|
description: string;
|
|
105
103
|
};
|
|
106
|
-
|
|
104
|
+
disabled: {
|
|
107
105
|
type: BooleanConstructor;
|
|
108
106
|
default: boolean;
|
|
109
107
|
description: string;
|
|
110
108
|
};
|
|
111
|
-
|
|
109
|
+
readonly: {
|
|
112
110
|
type: BooleanConstructor;
|
|
113
111
|
default: boolean;
|
|
114
112
|
description: string;
|
|
@@ -118,12 +116,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
118
116
|
default: boolean;
|
|
119
117
|
description: string;
|
|
120
118
|
};
|
|
121
|
-
|
|
122
|
-
type: StringConstructor;
|
|
123
|
-
default: string;
|
|
124
|
-
description: string;
|
|
125
|
-
};
|
|
126
|
-
readonly: {
|
|
119
|
+
showCount: {
|
|
127
120
|
type: BooleanConstructor;
|
|
128
121
|
default: boolean;
|
|
129
122
|
description: string;
|
|
@@ -132,16 +125,19 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
132
125
|
type: (StringConstructor | NumberConstructor)[];
|
|
133
126
|
default: string;
|
|
134
127
|
description: string;
|
|
128
|
+
validator: (value: number | string) => boolean;
|
|
135
129
|
};
|
|
136
|
-
|
|
137
|
-
type:
|
|
138
|
-
default:
|
|
130
|
+
size: {
|
|
131
|
+
type: PropType<import('../../..').LewSize>;
|
|
132
|
+
default: string;
|
|
139
133
|
description: string;
|
|
134
|
+
validator: (value: import('../../..').LewSize) => boolean;
|
|
140
135
|
};
|
|
141
|
-
|
|
142
|
-
type:
|
|
143
|
-
default:
|
|
136
|
+
resize: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: string;
|
|
144
139
|
description: string;
|
|
140
|
+
validator: (value: string) => boolean;
|
|
145
141
|
};
|
|
146
142
|
width: {
|
|
147
143
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -173,9 +169,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
173
169
|
default: string;
|
|
174
170
|
description: string;
|
|
175
171
|
};
|
|
176
|
-
|
|
177
|
-
type:
|
|
178
|
-
default:
|
|
172
|
+
selectByFocus: {
|
|
173
|
+
type: BooleanConstructor;
|
|
174
|
+
default: boolean;
|
|
179
175
|
description: string;
|
|
180
176
|
};
|
|
181
177
|
okByEnter: {
|
|
@@ -194,19 +190,18 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
194
190
|
"onUpdate:type"?: ((...args: any[]) => any) | undefined;
|
|
195
191
|
}, {
|
|
196
192
|
width: string | number;
|
|
197
|
-
size:
|
|
193
|
+
size: import('../../..').LewSize;
|
|
198
194
|
placeholder: string;
|
|
195
|
+
disabled: boolean;
|
|
199
196
|
clearable: boolean;
|
|
200
197
|
readonly: boolean;
|
|
201
|
-
disabled: boolean;
|
|
202
198
|
height: string | number;
|
|
203
199
|
minHeight: string | number;
|
|
204
|
-
resize:
|
|
205
|
-
selectByFocus: boolean;
|
|
206
|
-
minWidth: string | number;
|
|
200
|
+
resize: string;
|
|
207
201
|
maxLength: string | number;
|
|
208
202
|
showCount: boolean;
|
|
209
|
-
|
|
203
|
+
minWidth: string | number;
|
|
204
|
+
selectByFocus: boolean;
|
|
210
205
|
okByEnter: boolean;
|
|
211
206
|
maxWidth: string | number;
|
|
212
207
|
maxHeight: string | number;
|