luyoumin-ui 0.0.18 → 0.0.19

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.
@@ -0,0 +1,32 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ title: {
3
+ type: StringConstructor;
4
+ default: () => string;
5
+ };
6
+ jsonData: {
7
+ type: ArrayConstructor;
8
+ default: () => never[];
9
+ };
10
+ fields: {
11
+ type: ObjectConstructor;
12
+ default: () => void;
13
+ };
14
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
15
+ title: {
16
+ type: StringConstructor;
17
+ default: () => string;
18
+ };
19
+ jsonData: {
20
+ type: ArrayConstructor;
21
+ default: () => never[];
22
+ };
23
+ fields: {
24
+ type: ObjectConstructor;
25
+ default: () => void;
26
+ };
27
+ }>>, {
28
+ title: string;
29
+ jsonData: unknown[];
30
+ fields: Record<string, any>;
31
+ }, {}>;
32
+ export default _default;
@@ -0,0 +1,162 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
+ type: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ fontSize: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ fontWeight: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ padding: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ borderRadius: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ round: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ circle: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ circlePadding: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ plain: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ disabled: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ icon: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ };
46
+ iconSize: {
47
+ type: (StringConstructor | NumberConstructor)[];
48
+ default: string;
49
+ };
50
+ loading: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ loadingIcon: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ iconSpace: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ };
62
+ loadingIconSpace: {
63
+ type: StringConstructor;
64
+ default: string;
65
+ };
66
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
67
+ "update:modelValue": (val: any) => void;
68
+ click: () => void;
69
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
70
+ type: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ fontSize: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ fontWeight: {
79
+ type: StringConstructor;
80
+ default: string;
81
+ };
82
+ padding: {
83
+ type: StringConstructor;
84
+ default: string;
85
+ };
86
+ borderRadius: {
87
+ type: StringConstructor;
88
+ default: string;
89
+ };
90
+ round: {
91
+ type: BooleanConstructor;
92
+ default: boolean;
93
+ };
94
+ circle: {
95
+ type: BooleanConstructor;
96
+ default: boolean;
97
+ };
98
+ circlePadding: {
99
+ type: StringConstructor;
100
+ default: string;
101
+ };
102
+ plain: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
106
+ disabled: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ icon: {
111
+ type: StringConstructor;
112
+ default: string;
113
+ };
114
+ iconSize: {
115
+ type: (StringConstructor | NumberConstructor)[];
116
+ default: string;
117
+ };
118
+ loading: {
119
+ type: BooleanConstructor;
120
+ default: boolean;
121
+ };
122
+ loadingIcon: {
123
+ type: StringConstructor;
124
+ default: string;
125
+ };
126
+ iconSpace: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ };
130
+ loadingIconSpace: {
131
+ type: StringConstructor;
132
+ default: string;
133
+ };
134
+ }>> & {
135
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
136
+ onClick?: (() => any) | undefined;
137
+ }, {
138
+ type: string;
139
+ circle: boolean;
140
+ fontSize: string;
141
+ fontWeight: string;
142
+ padding: string;
143
+ borderRadius: string;
144
+ round: boolean;
145
+ circlePadding: string;
146
+ plain: boolean;
147
+ disabled: boolean;
148
+ icon: string;
149
+ iconSize: string | number;
150
+ loading: boolean;
151
+ loadingIcon: string;
152
+ iconSpace: string;
153
+ loadingIconSpace: string;
154
+ }, {}>, {
155
+ default?(_: {}): any;
156
+ }>;
157
+ export default _default;
158
+ type __VLS_WithTemplateSlots<T, S> = T & {
159
+ new (): {
160
+ $slots: S;
161
+ };
162
+ };
@@ -0,0 +1,95 @@
1
+ declare function setCheck(checkList: Array<any>): void;
2
+ declare const _default: import('vue').DefineComponent<{
3
+ modelValue: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ size: {
8
+ type: NumberConstructor;
9
+ default: number;
10
+ };
11
+ label: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ labelSpace: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ labelFontSize: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ disabled: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ isCircle: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ value: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ isIndeterminate: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ }, {
40
+ setCheck: typeof setCheck;
41
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
42
+ "update:modelValue": (val: any) => void;
43
+ "update:disabled": (val: any) => void;
44
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
45
+ modelValue: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ size: {
50
+ type: NumberConstructor;
51
+ default: number;
52
+ };
53
+ label: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ labelSpace: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ labelFontSize: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ disabled: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ isCircle: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ value: {
74
+ type: StringConstructor;
75
+ default: string;
76
+ };
77
+ isIndeterminate: {
78
+ type: BooleanConstructor;
79
+ default: boolean;
80
+ };
81
+ }>> & {
82
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
83
+ "onUpdate:disabled"?: ((val: any) => any) | undefined;
84
+ }, {
85
+ modelValue: boolean;
86
+ label: string;
87
+ disabled: boolean;
88
+ size: number;
89
+ labelSpace: string;
90
+ labelFontSize: string;
91
+ isCircle: boolean;
92
+ value: string;
93
+ isIndeterminate: boolean;
94
+ }, {}>;
95
+ export default _default;
@@ -0,0 +1,62 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
+ modelValue: {
3
+ type: {
4
+ (arrayLength: number): any[];
5
+ (...items: any[]): any[];
6
+ new (arrayLength: number): any[];
7
+ new (...items: any[]): any[];
8
+ isArray(arg: any): arg is any[];
9
+ readonly prototype: any[];
10
+ from<T>(arrayLike: ArrayLike<T>): T[];
11
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
12
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
13
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
14
+ of<T_4>(...items: T_4[]): T_4[];
15
+ readonly [Symbol.species]: ArrayConstructor;
16
+ };
17
+ default(): never[];
18
+ };
19
+ max: {
20
+ type: NumberConstructor;
21
+ default: number;
22
+ };
23
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ "update:modelValue": (val: any) => void;
25
+ change: (val: any) => void;
26
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
27
+ modelValue: {
28
+ type: {
29
+ (arrayLength: number): any[];
30
+ (...items: any[]): any[];
31
+ new (arrayLength: number): any[];
32
+ new (...items: any[]): any[];
33
+ isArray(arg: any): arg is any[];
34
+ readonly prototype: any[];
35
+ from<T>(arrayLike: ArrayLike<T>): T[];
36
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
37
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
38
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
39
+ of<T_4>(...items: T_4[]): T_4[];
40
+ readonly [Symbol.species]: ArrayConstructor;
41
+ };
42
+ default(): never[];
43
+ };
44
+ max: {
45
+ type: NumberConstructor;
46
+ default: number;
47
+ };
48
+ }>> & {
49
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
50
+ onChange?: ((val: any) => any) | undefined;
51
+ }, {
52
+ modelValue: any[];
53
+ max: number;
54
+ }, {}>, {
55
+ default?(_: {}): any;
56
+ }>;
57
+ export default _default;
58
+ type __VLS_WithTemplateSlots<T, S> = T & {
59
+ new (): {
60
+ $slots: S;
61
+ };
62
+ };
@@ -0,0 +1,62 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ modelValue: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ showAlpha: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ predefine: {
11
+ type: {
12
+ (arrayLength: number): string[];
13
+ (...items: string[]): string[];
14
+ new (arrayLength: number): string[];
15
+ new (...items: string[]): string[];
16
+ isArray(arg: any): arg is any[];
17
+ readonly prototype: any[];
18
+ from<T>(arrayLike: ArrayLike<T>): T[];
19
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
20
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
21
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
22
+ of<T_4>(...items: T_4[]): T_4[];
23
+ readonly [Symbol.species]: ArrayConstructor;
24
+ };
25
+ default(): never[];
26
+ };
27
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
+ "update:modelValue": (val: any) => void;
29
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
30
+ modelValue: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ showAlpha: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ predefine: {
39
+ type: {
40
+ (arrayLength: number): string[];
41
+ (...items: string[]): string[];
42
+ new (arrayLength: number): string[];
43
+ new (...items: string[]): string[];
44
+ isArray(arg: any): arg is any[];
45
+ readonly prototype: any[];
46
+ from<T>(arrayLike: ArrayLike<T>): T[];
47
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
48
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
49
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
50
+ of<T_4>(...items: T_4[]): T_4[];
51
+ readonly [Symbol.species]: ArrayConstructor;
52
+ };
53
+ default(): never[];
54
+ };
55
+ }>> & {
56
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
57
+ }, {
58
+ modelValue: string;
59
+ showAlpha: boolean;
60
+ predefine: string[];
61
+ }, {}>;
62
+ export default _default;
@@ -0,0 +1,140 @@
1
+ declare function closeDialog(): void;
2
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
3
+ modelValue: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ zIndex: {
8
+ type: NumberConstructor;
9
+ default: number;
10
+ };
11
+ width: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ padding: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ title: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ isTitleCenter: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ isFooterCenter: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ canCloseByClickCover: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ showClose: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ bodyMaxH: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ alignTop: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ top: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ modal: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
+ "update:modelValue": (val: any) => void;
57
+ close: () => void;
58
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
59
+ modelValue: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ zIndex: {
64
+ type: NumberConstructor;
65
+ default: number;
66
+ };
67
+ width: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ padding: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ title: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ isTitleCenter: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ isFooterCenter: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ canCloseByClickCover: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ showClose: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
95
+ bodyMaxH: {
96
+ type: StringConstructor;
97
+ default: string;
98
+ };
99
+ alignTop: {
100
+ type: BooleanConstructor;
101
+ default: boolean;
102
+ };
103
+ top: {
104
+ type: StringConstructor;
105
+ default: string;
106
+ };
107
+ modal: {
108
+ type: BooleanConstructor;
109
+ default: boolean;
110
+ };
111
+ }>> & {
112
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
113
+ onClose?: (() => any) | undefined;
114
+ }, {
115
+ modelValue: boolean;
116
+ title: string;
117
+ padding: string;
118
+ width: string;
119
+ top: string;
120
+ zIndex: number;
121
+ isTitleCenter: boolean;
122
+ isFooterCenter: boolean;
123
+ canCloseByClickCover: boolean;
124
+ showClose: boolean;
125
+ bodyMaxH: string;
126
+ alignTop: boolean;
127
+ modal: boolean;
128
+ }, {}>, {
129
+ header?(_: {
130
+ closeFn: typeof closeDialog;
131
+ }): any;
132
+ default?(_: {}): any;
133
+ footer?(_: {}): any;
134
+ }>;
135
+ export default _default;
136
+ type __VLS_WithTemplateSlots<T, S> = T & {
137
+ new (): {
138
+ $slots: S;
139
+ };
140
+ };
@@ -0,0 +1,133 @@
1
+ declare function beforeClose(): void;
2
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
3
+ modelValue: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ direction: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ zIndex: {
12
+ type: NumberConstructor;
13
+ default: number;
14
+ };
15
+ size: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ padding: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ title: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ isTitleCenter: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ isFooterCenter: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ canCloseByClickCover: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ showClose: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ modal: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ beforeClose: {
48
+ type: FunctionConstructor;
49
+ default: null;
50
+ };
51
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
52
+ "update:modelValue": (val: any) => void;
53
+ close: () => void;
54
+ beforeClose: (val: any) => void;
55
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
56
+ modelValue: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ direction: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ zIndex: {
65
+ type: NumberConstructor;
66
+ default: number;
67
+ };
68
+ size: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ padding: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ title: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ isTitleCenter: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ isFooterCenter: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ canCloseByClickCover: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ showClose: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ modal: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ beforeClose: {
101
+ type: FunctionConstructor;
102
+ default: null;
103
+ };
104
+ }>> & {
105
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
106
+ onClose?: (() => any) | undefined;
107
+ onBeforeClose?: ((val: any) => any) | undefined;
108
+ }, {
109
+ modelValue: boolean;
110
+ title: string;
111
+ padding: string;
112
+ size: string;
113
+ zIndex: number;
114
+ isTitleCenter: boolean;
115
+ isFooterCenter: boolean;
116
+ canCloseByClickCover: boolean;
117
+ showClose: boolean;
118
+ modal: boolean;
119
+ direction: string;
120
+ beforeClose: Function;
121
+ }, {}>, {
122
+ header?(_: {
123
+ closeFn: typeof beforeClose;
124
+ }): any;
125
+ default?(_: {}): any;
126
+ footer?(_: {}): any;
127
+ }>;
128
+ export default _default;
129
+ type __VLS_WithTemplateSlots<T, S> = T & {
130
+ new (): {
131
+ $slots: S;
132
+ };
133
+ };
@@ -0,0 +1,188 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
+ modelValue: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ width: {
7
+ type: (StringConstructor | NumberConstructor)[];
8
+ default: string;
9
+ };
10
+ type: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ placeholder: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ disabled: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ maxlength: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ clearable: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ formatter: {
31
+ type: FunctionConstructor;
32
+ default: null;
33
+ };
34
+ showPassword: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ noSpaces: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ rows: {
43
+ type: NumberConstructor;
44
+ default: number;
45
+ };
46
+ autosize: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ autosizeRange: {
51
+ type: ObjectConstructor;
52
+ default(): null;
53
+ };
54
+ prefixIcon: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ suffixIcon: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ };
62
+ showWordLimit: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ autoFocus: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ max: {
71
+ type: NumberConstructor;
72
+ default: number;
73
+ };
74
+ min: {
75
+ type: NumberConstructor;
76
+ default: number;
77
+ };
78
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
79
+ "update:modelValue": (val: any) => void;
80
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
81
+ modelValue: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ };
85
+ width: {
86
+ type: (StringConstructor | NumberConstructor)[];
87
+ default: string;
88
+ };
89
+ type: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ placeholder: {
94
+ type: StringConstructor;
95
+ default: string;
96
+ };
97
+ disabled: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ maxlength: {
102
+ type: StringConstructor;
103
+ default: string;
104
+ };
105
+ clearable: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ };
109
+ formatter: {
110
+ type: FunctionConstructor;
111
+ default: null;
112
+ };
113
+ showPassword: {
114
+ type: BooleanConstructor;
115
+ default: boolean;
116
+ };
117
+ noSpaces: {
118
+ type: BooleanConstructor;
119
+ default: boolean;
120
+ };
121
+ rows: {
122
+ type: NumberConstructor;
123
+ default: number;
124
+ };
125
+ autosize: {
126
+ type: BooleanConstructor;
127
+ default: boolean;
128
+ };
129
+ autosizeRange: {
130
+ type: ObjectConstructor;
131
+ default(): null;
132
+ };
133
+ prefixIcon: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ suffixIcon: {
138
+ type: StringConstructor;
139
+ default: string;
140
+ };
141
+ showWordLimit: {
142
+ type: BooleanConstructor;
143
+ default: boolean;
144
+ };
145
+ autoFocus: {
146
+ type: BooleanConstructor;
147
+ default: boolean;
148
+ };
149
+ max: {
150
+ type: NumberConstructor;
151
+ default: number;
152
+ };
153
+ min: {
154
+ type: NumberConstructor;
155
+ default: number;
156
+ };
157
+ }>> & {
158
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
159
+ }, {
160
+ modelValue: string;
161
+ type: string;
162
+ disabled: boolean;
163
+ width: string | number;
164
+ max: number;
165
+ min: number;
166
+ placeholder: string;
167
+ maxlength: string;
168
+ clearable: boolean;
169
+ formatter: Function;
170
+ showPassword: boolean;
171
+ noSpaces: boolean;
172
+ rows: number;
173
+ autosize: boolean;
174
+ autosizeRange: Record<string, any>;
175
+ prefixIcon: string;
176
+ suffixIcon: string;
177
+ showWordLimit: boolean;
178
+ autoFocus: boolean;
179
+ }, {}>, {
180
+ prepend?(_: {}): any;
181
+ append?(_: {}): any;
182
+ }>;
183
+ export default _default;
184
+ type __VLS_WithTemplateSlots<T, S> = T & {
185
+ new (): {
186
+ $slots: S;
187
+ };
188
+ };
@@ -0,0 +1,106 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
+ href: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ type: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ disabled: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ hasUnderline: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ customColors: {
19
+ type: ObjectConstructor;
20
+ default: {};
21
+ };
22
+ target: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ leftIcon: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ rightIcon: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ iconSize: {
35
+ type: (StringConstructor | NumberConstructor)[];
36
+ default: string;
37
+ };
38
+ iconSpace: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
43
+ "update:modelValue": (val: any) => void;
44
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
45
+ href: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ type: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ disabled: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ hasUnderline: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ customColors: {
62
+ type: ObjectConstructor;
63
+ default: {};
64
+ };
65
+ target: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ leftIcon: {
70
+ type: StringConstructor;
71
+ default: string;
72
+ };
73
+ rightIcon: {
74
+ type: StringConstructor;
75
+ default: string;
76
+ };
77
+ iconSize: {
78
+ type: (StringConstructor | NumberConstructor)[];
79
+ default: string;
80
+ };
81
+ iconSpace: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ };
85
+ }>> & {
86
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
87
+ }, {
88
+ type: string;
89
+ disabled: boolean;
90
+ iconSize: string | number;
91
+ iconSpace: string;
92
+ target: string;
93
+ href: string;
94
+ hasUnderline: boolean;
95
+ customColors: Record<string, any>;
96
+ leftIcon: string;
97
+ rightIcon: string;
98
+ }, {}>, {
99
+ default?(_: {}): any;
100
+ }>;
101
+ export default _default;
102
+ type __VLS_WithTemplateSlots<T, S> = T & {
103
+ new (): {
104
+ $slots: S;
105
+ };
106
+ };
@@ -0,0 +1,18 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ modelValue: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update:modelValue": (val: any) => void;
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ modelValue: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ }>> & {
14
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
15
+ }, {
16
+ modelValue: boolean;
17
+ }, {}>;
18
+ export default _default;
@@ -0,0 +1,13 @@
1
+ declare module 'vue' {
2
+ export interface GlobalComponents {
3
+ JsonExportExcel: typeof import ('./JsonExportExcel.vue')['default']
4
+ LymButton: typeof import ('./LymButton.vue')['default']
5
+ LymCheckBox: typeof import ('./LymCheckBox.vue')['default']
6
+ LymCheckBoxGroup: typeof import ('./LymCheckBoxGroup.vue')['default']
7
+ LymColorPicker: typeof import ('./LymColorPicker.vue')['default']
8
+ LymDialog: typeof import ('./LymDialog.vue')['default']
9
+ LymDrawer: typeof import ('./LymDrawer.vue')['default']
10
+ LymInput: typeof import ('./LymInput.vue')['default']
11
+ LymLink: typeof import ('./LymLink.vue')['default']
12
+ }
13
+ }
@@ -0,0 +1,104 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ src: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ type: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ size: {
11
+ type: (ArrayConstructor | StringConstructor | NumberConstructor)[];
12
+ default: string;
13
+ };
14
+ fillColor: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ hoverColor: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ isHttps: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ ossPath: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ ossType: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ canPreview: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ previewImgs: {
39
+ type: ArrayConstructor;
40
+ default: never[];
41
+ };
42
+ needChangeHoverCusor: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
47
+ src: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ type: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ size: {
56
+ type: (ArrayConstructor | StringConstructor | NumberConstructor)[];
57
+ default: string;
58
+ };
59
+ fillColor: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ hoverColor: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ isHttps: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ ossPath: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ ossType: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ canPreview: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ previewImgs: {
84
+ type: ArrayConstructor;
85
+ default: never[];
86
+ };
87
+ needChangeHoverCusor: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ }>>, {
92
+ type: string;
93
+ src: string;
94
+ size: string | number | unknown[];
95
+ fillColor: string;
96
+ hoverColor: string;
97
+ isHttps: boolean;
98
+ ossPath: string;
99
+ ossType: string;
100
+ canPreview: boolean;
101
+ previewImgs: unknown[];
102
+ needChangeHoverCusor: boolean;
103
+ }, {}>;
104
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { App } from 'vue';
2
+ import { default as LymButton } from './components/LymButton.vue';
3
+
4
+ declare const install: {
5
+ install(app: App): void;
6
+ };
7
+ export { LymButton };
8
+ export default install;
package/dist/main.d.ts ADDED
@@ -0,0 +1 @@
1
+
File without changes
@@ -0,0 +1,22 @@
1
+ /**
2
+ * 画布绘制多行文本
3
+ * @param ctx Canvas 2D渲染上下文
4
+ * @param text 需要绘制的文本内容
5
+ * @param x 文本绘制的横坐标点
6
+ * @param y 文本绘制的纵坐标点
7
+ * @param maxW 文本绘制的最大宽度限制
8
+ * @param lineHeight 文本绘制的行高
9
+ * @param maxLine 文本绘制的最大显示行数
10
+ * @returns
11
+ */
12
+ export declare function drawText(ctx: CanvasRenderingContext2D, text: string, x: number, y: number, maxW: number, lineHeight: number, maxLine?: number): number;
13
+ /**
14
+ * 画布绘制圆角矩形
15
+ * @param ctx Canvas 2D渲染上下文
16
+ * @param x 绘制圆角矩形的横坐标点
17
+ * @param y 绘制圆角矩形的纵坐标点
18
+ * @param width 绘制圆角矩形的宽度
19
+ * @param height 绘制圆角矩形的高度
20
+ * @param radius 绘制圆角矩形的圆角半径
21
+ */
22
+ export declare function drawRoundRect(ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, radius: number): void;
@@ -0,0 +1,21 @@
1
+ declare class Color {
2
+ private _hue;
3
+ private _saturation;
4
+ private _value;
5
+ private _alpha;
6
+ enableAlpha: boolean;
7
+ format: string;
8
+ value: string;
9
+ constructor(options?: any);
10
+ set(prop: any, value: any): void;
11
+ get(prop: any): any;
12
+ toRgb(): {
13
+ r: number;
14
+ g: number;
15
+ b: number;
16
+ };
17
+ fromString(value: string): void;
18
+ compare(color: Color): boolean;
19
+ doOnChange(): void;
20
+ }
21
+ export default Color;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * 日期格式化
3
+ * @param time 其它日期格式的内容
4
+ * @param type 格式化的类型
5
+ * @returns
6
+ */
7
+ export declare function dateFormat(time: any, type: number): string;
8
+ /**
9
+ * 返回某个时间的农历格式(比如:2024-06-11 星期二 甲辰(龙)年 五月初六)
10
+ * @param times 某个时间
11
+ * @returns
12
+ */
13
+ export declare function getFullDateInfo(times: any): string;
14
+ /**
15
+ * 获取当前时间是上午还是下午
16
+ * @param time 某个时间
17
+ * @param lang 显示中文还是英文
18
+ */
19
+ export declare function getTimeState(time: any, lang: string): string;
@@ -0,0 +1,32 @@
1
+ export declare function getClientXY(event: any): {
2
+ clientX: number;
3
+ clientY: number;
4
+ };
5
+ export declare function getOffsetTop(el: any): number;
6
+ /**
7
+ * 获取容器元素中的子元素距离容器元素顶部的距离
8
+ * @param el 目标元素
9
+ * @param containerEl 容器元素
10
+ * @returns
11
+ */
12
+ export declare function getOffsetTopDistance(el: any, containerEl: any): number;
13
+ /**
14
+ * 判断容器元素中的子元素是否还在容器元素的显示范围中
15
+ * @param el 目标元素
16
+ * @param container 容器元素
17
+ * @returns
18
+ */
19
+ export declare function isInContainer(el: any, container: any): boolean;
20
+ /**
21
+ * 获取文本填充元素的高宽
22
+ * @param el 要获取高宽的对象元素
23
+ * @param content 要填充的文本内容
24
+ * @returns
25
+ */
26
+ export declare function getTextContentWAndH(el: Element, content?: string): Promise<unknown>;
27
+ /**
28
+ * 设置dom的鼠标拖拽监听事件
29
+ * @param element 需要监听的dom元素
30
+ * @param options 处理拖拽监听的回调事件
31
+ */
32
+ export declare function draggable(element: HTMLElement, options: any): void;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 防重复点击
3
+ * @param fn 点击事件
4
+ * @param delay 防止重复点击的时间限制
5
+ */
6
+ export declare function debounce(fn: Function, delay?: number): void;
@@ -0,0 +1 @@
1
+ export declare function getFileSize(size?: number): string | undefined;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 根据图片url获取image对象
3
+ * 使用:await getImageResource(imageUrl1) as CanvasImageSource;
4
+ * @param imgSrc 图片url
5
+ * @returns
6
+ */
7
+ export declare function getImageResource(imgSrc: any): Promise<unknown>;
File without changes
File without changes
@@ -0,0 +1,27 @@
1
+ export declare function isString(obj: any): boolean;
2
+ export declare function isNumber(obj: any): boolean;
3
+ export declare function isBoolean(obj: any): boolean;
4
+ export declare function isObject(obj: any): boolean;
5
+ export declare function isFunction(obj: any): boolean;
6
+ export declare function isArray(obj: any): boolean;
7
+ export declare function isDate(obj: any): boolean;
8
+ export declare function isNull(obj: any): boolean;
9
+ export declare function isEmpty(val: any): boolean;
10
+ export declare function valueEquals(obj1: any, obj2: any): boolean;
11
+ export declare function strToBinary(str: string): any;
12
+ export declare function binaryToStr(str: string): any;
13
+ export declare function binaryEncryption(str: string): any;
14
+ export declare function binaryDecrypt(str: any): any;
15
+ /**
16
+ * 获取固定宽度文本需要显示的行数
17
+ * @param text 显示的文本内容
18
+ * @param maxW 显示的文本的限制宽度
19
+ * @returns
20
+ */
21
+ export declare function getTextLineNum(text: string, maxW: number): number;
22
+ /**
23
+ * 校验是否是正确的手机号
24
+ * @param mobile 需要校验的手机号
25
+ * @returns
26
+ */
27
+ export declare function checkMobile(mobile: string): boolean;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * 获取某个链接的指定参数名的值
3
+ * @param name 参数名
4
+ * @param url 链接路径
5
+ * @returns
6
+ */
7
+ export declare function getUrlParam(name: string, url: string): any;
8
+ /**
9
+ * 获取某个链接的指定参数名的值,使用正则匹配
10
+ * @param name 参数名
11
+ * @param url 链接路径
12
+ * @returns
13
+ */
14
+ export declare function getUrlParamByReg(name: string, url: string): any;
15
+ /**
16
+ * 给指定url加参数
17
+ * @param url 链接路径
18
+ * @param paramName 参数名
19
+ * @param paramValue 参数值
20
+ * @returns
21
+ */
22
+ export declare function urlConcatParam(url: string | undefined, paramName: string, paramValue: any): string;
23
+ /**
24
+ * 替换指定url参数值
25
+ * @param url 链接路径
26
+ * @param name 替换的参数名
27
+ * @param value 替换的参数值
28
+ * @returns
29
+ */
30
+ export declare function replaceQueryString(url: string | undefined, name: string, value: any): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "luyoumin-ui",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "Ui component library based on Vue3",
5
5
  "author": "luyoumin",
6
6
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  "unplugin-auto-import": "^0.17.5",
42
42
  "unplugin-vue-components": "^0.26.0",
43
43
  "vite": "^5.2.0",
44
- "vite-plugin-compression": "^0.5.1",
44
+ "vite-plugin-dts": "^3.9.1",
45
45
  "vue": "^3.4.21",
46
46
  "vue-tsc": "^2.0.7"
47
47
  }