lew-ui 2.2.7 → 2.2.9

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 CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 lew
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 lew
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,49 +1,33 @@
1
- ![471656552467_.pic_i9uhs1_.jpeg](https://cdn.jsdelivr.net/gh/lewkamtao/PicHub-Cloud@master/PicHub/471656552467_.pic_i9uhs1_.jpeg)
2
-
3
- # Lew-UI
4
-
5
- A Component Library for Vue3.js. Doc address: https://lew.kamtao.com
6
-
7
- ## Install
8
-
9
- ```bash
10
- npm install lew-ui --save
11
- ```
12
-
13
- ## How to use
14
-
15
- 引入 css
16
-
17
- ```js
18
- // main.ts
19
- import 'lew-ui/style';
20
- ```
21
-
22
- 页面
23
-
24
- ```vue
25
- <script setup lang="ts">
26
- import { LewButton } from 'lew-ui';
27
- </script>
28
-
29
- <template>
30
- <lew-button text="发送" />
31
- </template>
32
- ```
33
-
34
- ## Todo List
35
-
36
- - Upload 上传
37
-
38
- ## Thanks
39
-
40
- - https://github.com/atomiks/tippyjs
41
- - https://fengyuanchen.github.io/vue-feather/
42
-
43
- ## License
44
-
45
- Lew UI is open source software licensed as MIT.
46
-
47
- ## Demo
48
-
49
- ![这里有图](https://github.com/lewkamtao/lew-ui/blob/dev/images/6221709887502_.pic.jpg) ![这里有图](https://github.com/lewkamtao/lew-ui/blob/dev/images/6231709887502_.pic.jpg) ![这里有图](https://github.com/lewkamtao/lew-ui/blob/dev/images/6241709887502_.pic.jpg) ![这里有图](https://github.com/lewkamtao/lew-ui/blob/dev/images/6251709887502_.pic.jpg)
1
+ # Lew UI
2
+
3
+ A Component Library for Vue3. Doc address: https://lew.kamtao.com
4
+
5
+ English | [中文](./README.zh-CN.md)
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install lew-ui
11
+ ```
12
+
13
+ ## How to use
14
+
15
+ ```js
16
+ // main.ts
17
+ import 'lew-ui/style'
18
+ ```
19
+
20
+ ```vue
21
+ <script setup lang="ts">
22
+ // page.vue
23
+ import { LewButton } from 'lew-ui'
24
+ </script>
25
+
26
+ <template>
27
+ <lew-button text="Submit" />
28
+ </template>
29
+ ```
30
+
31
+ ## License
32
+
33
+ Lew UI is open source software licensed as MIT.
@@ -0,0 +1,35 @@
1
+ # Lew UI
2
+
3
+ 一个用于 Vue3 的组件库。文档地址:https://lew.kamtao.com
4
+
5
+ [英文](./README.md) | 中文
6
+
7
+ ## 安装
8
+
9
+ ```bash
10
+ npm install lew-ui
11
+ ```
12
+
13
+ ## 如何使用
14
+
15
+ main.ts
16
+
17
+ ```js
18
+ // main.ts
19
+ import 'lew-ui/style'
20
+ ```
21
+
22
+ ```vue
23
+ <script setup lang="ts">
24
+ // page.vue
25
+ import { LewButton } from 'lew-ui'
26
+ </script>
27
+
28
+ <template>
29
+ <lew-button text="提交" />
30
+ </template>
31
+ ```
32
+
33
+ ## 许可证
34
+
35
+ Lew UI 是根据 MIT 许可证的开源软件。
@@ -34,7 +34,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
34
34
  };
35
35
  iconSize: {
36
36
  type: NumberConstructor;
37
- default: string;
37
+ default: number;
38
38
  description: string;
39
39
  };
40
40
  loading: {
@@ -92,7 +92,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
92
92
  };
93
93
  iconSize: {
94
94
  type: NumberConstructor;
95
- default: string;
95
+ default: number;
96
96
  description: string;
97
97
  };
98
98
  loading: {
@@ -1,7 +1,7 @@
1
1
  import { PropType, ExtractPropTypes } from 'vue';
2
2
 
3
3
  export type ButtonColor = 'red' | 'orange' | 'yellow' | 'green' | 'mint' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray' | 'brown' | 'success' | 'normal' | 'warning' | 'error' | 'info';
4
- export type ButtonSize = 'small' | 'medium' | 'large';
4
+ export type ButtonSize = 'mini' | 'small' | 'medium' | 'large';
5
5
  export type ButtonType = 'fill' | 'light' | 'ghost' | 'text';
6
6
  export declare const buttonProps: {
7
7
  color: {
@@ -36,7 +36,7 @@ export declare const buttonProps: {
36
36
  };
37
37
  iconSize: {
38
38
  type: NumberConstructor;
39
- default: string;
39
+ default: number;
40
40
  description: string;
41
41
  };
42
42
  loading: {
@@ -102,9 +102,9 @@ declare const _default: import('vue').DefineComponent<{
102
102
  size: import('./props').CheckboxSize;
103
103
  readonly: boolean;
104
104
  disabled: boolean;
105
- block: boolean;
106
- iconable: boolean;
107
105
  checked: boolean | Function;
108
106
  certain: boolean | Function;
107
+ block: boolean;
108
+ iconable: boolean;
109
109
  }, {}>;
110
110
  export default _default;
@@ -90,8 +90,8 @@ declare const _default: import('vue').DefineComponent<{
90
90
  size: import('./props').RadioSize;
91
91
  readonly: boolean;
92
92
  disabled: boolean;
93
+ checked: boolean;
93
94
  block: boolean;
94
95
  iconable: boolean;
95
- checked: boolean;
96
96
  }, {}>;
97
97
  export default _default;
@@ -70,11 +70,6 @@ declare const __VLS_component: import('vue').DefineComponent<{
70
70
  default: () => boolean;
71
71
  description: string;
72
72
  };
73
- align: {
74
- type: StringConstructor;
75
- default: string;
76
- description: string;
77
- };
78
73
  showCheckIcon: {
79
74
  type: BooleanConstructor;
80
75
  default: () => boolean;
@@ -149,11 +144,6 @@ declare const __VLS_component: import('vue').DefineComponent<{
149
144
  default: () => boolean;
150
145
  description: string;
151
146
  };
152
- align: {
153
- type: StringConstructor;
154
- default: string;
155
- description: string;
156
- };
157
147
  showCheckIcon: {
158
148
  type: BooleanConstructor;
159
149
  default: () => boolean;
@@ -174,7 +164,6 @@ declare const __VLS_component: import('vue').DefineComponent<{
174
164
  itemHeight: number;
175
165
  searchable: boolean;
176
166
  searchDelay: number;
177
- align: string;
178
167
  showCheckIcon: boolean;
179
168
  defaultValue: string | number;
180
169
  searchMethod: (e: import('../../..').SelectSearchMethodParams) => SelectOptions[];
@@ -77,11 +77,6 @@ export declare const selectProps: {
77
77
  default: () => boolean;
78
78
  description: string;
79
79
  };
80
- align: {
81
- type: StringConstructor;
82
- default: string;
83
- description: string;
84
- };
85
80
  showCheckIcon: {
86
81
  type: BooleanConstructor;
87
82
  default: () => boolean;
@@ -80,11 +80,6 @@ declare const __VLS_component: import('vue').DefineComponent<{
80
80
  default: boolean;
81
81
  description: string;
82
82
  };
83
- align: {
84
- type: StringConstructor;
85
- default: string;
86
- description: string;
87
- };
88
83
  showCheckIcon: {
89
84
  type: BooleanConstructor;
90
85
  default: boolean;
@@ -176,11 +171,6 @@ declare const __VLS_component: import('vue').DefineComponent<{
176
171
  default: boolean;
177
172
  description: string;
178
173
  };
179
- align: {
180
- type: StringConstructor;
181
- default: string;
182
- description: string;
183
- };
184
174
  showCheckIcon: {
185
175
  type: BooleanConstructor;
186
176
  default: boolean;
@@ -208,7 +198,6 @@ declare const __VLS_component: import('vue').DefineComponent<{
208
198
  itemHeight: number;
209
199
  searchable: boolean;
210
200
  searchDelay: number;
211
- align: string;
212
201
  showCheckIcon: boolean;
213
202
  defaultValue: string[] | number[];
214
203
  searchMethod: (e: import('../../..').SelectSearchMultipleMethodParams) => void;
@@ -87,11 +87,6 @@ export declare const selectMultipleProps: {
87
87
  default: boolean;
88
88
  description: string;
89
89
  };
90
- align: {
91
- type: StringConstructor;
92
- default: string;
93
- description: string;
94
- };
95
90
  showCheckIcon: {
96
91
  type: BooleanConstructor;
97
92
  default: boolean;
@@ -1,5 +1,10 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
2
  modelValue: import('vue').PropType<any>;
3
+ size: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ description: string;
7
+ };
3
8
  round: {
4
9
  type: (BooleanConstructor | NumberConstructor)[];
5
10
  default: boolean;
@@ -30,6 +35,11 @@ declare const _default: import('vue').DefineComponent<{
30
35
  change: (...args: any[]) => void;
31
36
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
32
37
  modelValue: import('vue').PropType<any>;
38
+ size: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ description: string;
42
+ };
33
43
  round: {
34
44
  type: (BooleanConstructor | NumberConstructor)[];
35
45
  default: boolean;
@@ -60,6 +70,7 @@ declare const _default: import('vue').DefineComponent<{
60
70
  onClick?: ((...args: any[]) => any) | undefined;
61
71
  }, {
62
72
  round: number | boolean;
73
+ size: string;
63
74
  readonly: boolean;
64
75
  disabled: boolean;
65
76
  loading: boolean;
@@ -6,9 +6,9 @@ export declare const switchModel: {
6
6
  };
7
7
  };
8
8
  export declare const switchProps: {
9
- modelValue: {
10
- type: BooleanConstructor;
11
- default: boolean;
9
+ size: {
10
+ type: StringConstructor;
11
+ default: string;
12
12
  description: string;
13
13
  };
14
14
  round: {
@@ -15,7 +15,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
15
15
  description: string;
16
16
  };
17
17
  size: {
18
- type: globalThis.PropType<import('../../..').TagSize>;
18
+ type: StringConstructor;
19
19
  default: string;
20
20
  description: string;
21
21
  };
@@ -48,7 +48,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
48
48
  description: string;
49
49
  };
50
50
  size: {
51
- type: globalThis.PropType<import('../../..').TagSize>;
51
+ type: StringConstructor;
52
52
  default: string;
53
53
  description: string;
54
54
  };
@@ -73,7 +73,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
73
73
  type: import('../../..').TagType;
74
74
  color: import('../../..').TagColor;
75
75
  round: boolean;
76
- size: import('../../..').TagSize;
76
+ size: string;
77
77
  disabled: boolean;
78
78
  closable: boolean;
79
79
  }, {}>;
@@ -1,6 +1,5 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
 
3
- export type TagSize = 'small' | 'medium' | 'large';
4
3
  export type TagType = 'fill' | 'light' | 'ghost';
5
4
  export type TagColor = 'red' | 'orange' | 'yellow' | 'green' | 'mint' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray' | 'brown' | 'success' | 'normal' | 'warning' | 'error' | 'info';
6
5
  export declare const tagProps: {
@@ -15,7 +14,7 @@ export declare const tagProps: {
15
14
  description: string;
16
15
  };
17
16
  size: {
18
- type: PropType<TagSize>;
17
+ type: StringConstructor;
19
18
  default: string;
20
19
  description: string;
21
20
  };