lew-ui 2.4.2 → 2.4.4

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/README.md CHANGED
@@ -1,46 +1,46 @@
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
- ## Open Source Libraries
32
-
33
- Lew UI uses the following open source libraries:
34
-
35
- - [tippy.js](https://atomiks.github.io/tippyjs/): For creating tooltips and popovers
36
- - [Lucide](https://github.com/lucide-icons/lucide): Provides a clean and beautiful icon set
37
- - [fancyapps](https://fancyapps.com/): For creating image galleries and carousels
38
- - [VueUse](https://vueuse.org/): Collection of Vue Composition API utilities
39
- - [Day.js](https://day.js.org/): Lightweight library for date manipulation
40
- - [Yup](https://github.com/jquense/yup): Object schema validation library
41
-
42
- We are grateful for the support these excellent open source projects provide to Lew UI.
43
-
44
- ## License
45
-
46
- Lew UI is open source software licensed as MIT.
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
+ ## Open Source Libraries
32
+
33
+ Lew UI uses the following open source libraries:
34
+
35
+ - [tippy.js](https://atomiks.github.io/tippyjs/): For creating tooltips and popovers
36
+ - [Lucide](https://github.com/lucide-icons/lucide): Provides a clean and beautiful icon set
37
+ - [fancyapps](https://fancyapps.com/): For creating image galleries and carousels
38
+ - [VueUse](https://vueuse.org/): Collection of Vue Composition API utilities
39
+ - [Day.js](https://day.js.org/): Lightweight library for date manipulation
40
+ - [Yup](https://github.com/jquense/yup): Object schema validation library
41
+
42
+ We are grateful for the support these excellent open source projects provide to Lew UI.
43
+
44
+ ## License
45
+
46
+ Lew UI is open source software licensed as MIT.
package/README.zh-CN.md CHANGED
@@ -1,48 +1,48 @@
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 使用了以下开源库:
36
-
37
- - [tippy.js](https://atomiks.github.io/tippyjs/): 用于创建工具提示和弹出框
38
- - [Lucide](https://github.com/lucide-icons/lucide): 提供简洁美观的图标集
39
- - [fancyapps](https://fancyapps.com/): 用于创建图片画廊和轮播
40
- - [VueUse](https://vueuse.org/): Vue Composition API 实用工具集合
41
- - [Day.js](https://day.js.org/): 轻量级日期处理库
42
- - [Yup](https://github.com/jquense/yup): 对象模式验证库
43
-
44
- 我们感谢这些优秀的开源项目为 Lew UI 提供的支持。
45
-
46
- ## 许可证
47
-
48
- Lew UI 是根据 MIT 许可证的开源软件。
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 使用了以下开源库:
36
+
37
+ - [tippy.js](https://atomiks.github.io/tippyjs/): 用于创建工具提示和弹出框
38
+ - [Lucide](https://github.com/lucide-icons/lucide): 提供简洁美观的图标集
39
+ - [fancyapps](https://fancyapps.com/): 用于创建图片画廊和轮播
40
+ - [VueUse](https://vueuse.org/): Vue Composition API 实用工具集合
41
+ - [Day.js](https://day.js.org/): 轻量级日期处理库
42
+ - [Yup](https://github.com/jquense/yup): 对象模式验证库
43
+
44
+ 我们感谢这些优秀的开源项目为 Lew UI 提供的支持。
45
+
46
+ ## 许可证
47
+
48
+ Lew UI 是根据 MIT 许可证的开源软件。
@@ -106,7 +106,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
106
106
  disabled: boolean;
107
107
  readonly: boolean;
108
108
  checked: boolean;
109
- certain: boolean;
110
109
  iconable: boolean;
110
+ certain: boolean;
111
111
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
112
112
  export default _default;
@@ -29,10 +29,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
29
29
  validator: (value: import('../../..').LewSize) => boolean;
30
30
  };
31
31
  direction: {
32
- type: StringConstructor;
32
+ type: PropType<import('../../..').LewDirection>;
33
33
  default: string;
34
34
  description: string;
35
- validator: (value: string) => boolean;
35
+ validator: (value: import('../../..').LewDirection) => boolean;
36
36
  };
37
37
  block: {
38
38
  type: BooleanConstructor;
@@ -80,10 +80,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
80
80
  validator: (value: import('../../..').LewSize) => boolean;
81
81
  };
82
82
  direction: {
83
- type: StringConstructor;
83
+ type: PropType<import('../../..').LewDirection>;
84
84
  default: string;
85
85
  description: string;
86
- validator: (value: string) => boolean;
86
+ validator: (value: import('../../..').LewDirection) => boolean;
87
87
  };
88
88
  block: {
89
89
  type: BooleanConstructor;
@@ -104,7 +104,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
104
104
  onChange?: ((...args: any[]) => any) | undefined;
105
105
  }>, {
106
106
  size: import('../../..').LewSize;
107
- direction: string;
107
+ direction: import('../../..').LewDirection;
108
108
  block: boolean;
109
109
  round: boolean;
110
110
  options: CheckboxOptions[];
@@ -1,5 +1,5 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
- import { LewSize } from '../../..';
2
+ import { LewSize, LewDirection } from '../../..';
3
3
 
4
4
  export type CheckboxGroupDirectionType = 'x' | 'y';
5
5
  export type CheckboxValue = string | number;
@@ -96,10 +96,10 @@ export declare const checkboxGroupProps: {
96
96
  validator: (value: LewSize) => boolean;
97
97
  };
98
98
  direction: {
99
- type: StringConstructor;
99
+ type: PropType<LewDirection>;
100
100
  default: string;
101
101
  description: string;
102
- validator: (value: string) => boolean;
102
+ validator: (value: LewDirection) => boolean;
103
103
  };
104
104
  block: {
105
105
  type: BooleanConstructor;
@@ -4,34 +4,34 @@ declare function __VLS_template(): {
4
4
  declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
5
5
  modelValue: import('vue').PropType<any>;
6
6
  width: {
7
- type: StringConstructor;
7
+ type: (StringConstructor | NumberConstructor)[];
8
8
  default: string;
9
9
  description: string;
10
- validator(value: string): boolean;
10
+ validator(value: string | number): boolean;
11
11
  };
12
12
  gap: {
13
- type: StringConstructor;
13
+ type: (StringConstructor | NumberConstructor)[];
14
14
  default: string;
15
15
  description: string;
16
- validator(value: string): boolean;
16
+ validator(value: string | number): boolean;
17
17
  };
18
18
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
19
19
  modelValue: import('vue').PropType<any>;
20
20
  width: {
21
- type: StringConstructor;
21
+ type: (StringConstructor | NumberConstructor)[];
22
22
  default: string;
23
23
  description: string;
24
- validator(value: string): boolean;
24
+ validator(value: string | number): boolean;
25
25
  };
26
26
  gap: {
27
- type: StringConstructor;
27
+ type: (StringConstructor | NumberConstructor)[];
28
28
  default: string;
29
29
  description: string;
30
- validator(value: string): boolean;
30
+ validator(value: string | number): boolean;
31
31
  };
32
32
  }>> & Readonly<{}>, {
33
- gap: string;
34
- width: string;
33
+ gap: string | number;
34
+ width: string | number;
35
35
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
36
36
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
37
37
  export default _default;
@@ -2,9 +2,8 @@ declare function __VLS_template(): {
2
2
  title?(_: {
3
3
  props: {
4
4
  readonly title: string;
5
- readonly padding: string;
6
5
  readonly collapseKey: string | number;
7
- readonly radius: string;
6
+ readonly radius: string | number;
8
7
  };
9
8
  }): any;
10
9
  default?(_: {}): any;
@@ -23,16 +22,10 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
23
22
  description: string;
24
23
  };
25
24
  radius: {
26
- type: StringConstructor;
27
- default: string;
28
- description: string;
29
- validator(value: string): boolean;
30
- };
31
- padding: {
32
- type: StringConstructor;
25
+ type: (StringConstructor | NumberConstructor)[];
33
26
  default: string;
34
27
  description: string;
35
- validator(value: string): boolean;
28
+ validator(value: string | number): boolean;
36
29
  };
37
30
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
38
31
  modelValue: import('vue').PropType<any>;
@@ -48,22 +41,15 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
48
41
  description: string;
49
42
  };
50
43
  radius: {
51
- type: StringConstructor;
52
- default: string;
53
- description: string;
54
- validator(value: string): boolean;
55
- };
56
- padding: {
57
- type: StringConstructor;
44
+ type: (StringConstructor | NumberConstructor)[];
58
45
  default: string;
59
46
  description: string;
60
- validator(value: string): boolean;
47
+ validator(value: string | number): boolean;
61
48
  };
62
49
  }>> & Readonly<{}>, {
63
50
  title: string;
64
- padding: string;
65
51
  collapseKey: string | number;
66
- radius: string;
52
+ radius: string | number;
67
53
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
68
54
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
69
55
  export default _default;
@@ -17,16 +17,16 @@ export declare const collapseItemModel: {
17
17
  };
18
18
  export declare const collapseProps: {
19
19
  width: {
20
- type: StringConstructor;
20
+ type: (StringConstructor | NumberConstructor)[];
21
21
  default: string;
22
22
  description: string;
23
- validator(value: string): boolean;
23
+ validator(value: string | number): boolean;
24
24
  };
25
25
  gap: {
26
- type: StringConstructor;
26
+ type: (StringConstructor | NumberConstructor)[];
27
27
  default: string;
28
28
  description: string;
29
- validator(value: string): boolean;
29
+ validator(value: string | number): boolean;
30
30
  };
31
31
  };
32
32
  export declare const collapseItemProps: {
@@ -42,16 +42,10 @@ export declare const collapseItemProps: {
42
42
  description: string;
43
43
  };
44
44
  radius: {
45
- type: StringConstructor;
46
- default: string;
47
- description: string;
48
- validator(value: string): boolean;
49
- };
50
- padding: {
51
- type: StringConstructor;
45
+ type: (StringConstructor | NumberConstructor)[];
52
46
  default: string;
53
47
  description: string;
54
- validator(value: string): boolean;
48
+ validator(value: string | number): boolean;
55
49
  };
56
50
  };
57
51
  export type CollapseProps = ExtractPropTypes<typeof collapseProps>;
@@ -44,7 +44,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
44
44
  description: string;
45
45
  };
46
46
  okProps: {
47
- type: PropType<import('../..').ButtonProps>;
47
+ type: PropType<import('../../..').ButtonProps>;
48
48
  default: () => {
49
49
  text: string;
50
50
  color: string;
@@ -52,7 +52,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
52
52
  description: string;
53
53
  };
54
54
  cancelProps: {
55
- type: PropType<import('../..').ButtonProps>;
55
+ type: PropType<import('../../..').ButtonProps>;
56
56
  default: () => {
57
57
  type: string;
58
58
  text: string;
@@ -104,7 +104,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
104
104
  description: string;
105
105
  };
106
106
  okProps: {
107
- type: PropType<import('../..').ButtonProps>;
107
+ type: PropType<import('../../..').ButtonProps>;
108
108
  default: () => {
109
109
  text: string;
110
110
  color: string;
@@ -112,7 +112,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
112
112
  description: string;
113
113
  };
114
114
  cancelProps: {
115
- type: PropType<import('../..').ButtonProps>;
115
+ type: PropType<import('../../..').ButtonProps>;
116
116
  default: () => {
117
117
  type: string;
118
118
  text: string;
@@ -130,8 +130,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
130
130
  hideFooter: boolean;
131
131
  closeByEsc: boolean;
132
132
  okProps: {
133
- type: import('../..').ButtonType;
134
- size: import('../..').ButtonSize;
133
+ type: import('../../..').ButtonType;
134
+ size: import('../../..').ButtonSize;
135
135
  text: string;
136
136
  color: import('../../..').LewColor;
137
137
  round: boolean;
@@ -142,8 +142,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
142
142
  request: Function;
143
143
  };
144
144
  cancelProps: {
145
- type: import('../..').ButtonType;
146
- size: import('../..').ButtonSize;
145
+ type: import('../../..').ButtonType;
146
+ size: import('../../..').ButtonSize;
147
147
  text: string;
148
148
  color: import('../../..').LewColor;
149
149
  round: boolean;
@@ -24,9 +24,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
24
24
  description: string;
25
25
  };
26
26
  width: {
27
- type: StringConstructor;
27
+ type: (StringConstructor | NumberConstructor)[];
28
28
  default: string;
29
- validator: (value: string) => boolean;
29
+ validator: (value: string | number) => boolean;
30
30
  description: string;
31
31
  };
32
32
  height: {
@@ -61,9 +61,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
61
61
  description: string;
62
62
  };
63
63
  width: {
64
- type: StringConstructor;
64
+ type: (StringConstructor | NumberConstructor)[];
65
65
  default: string;
66
- validator: (value: string) => boolean;
66
+ validator: (value: string | number) => boolean;
67
67
  description: string;
68
68
  };
69
69
  height: {
@@ -75,7 +75,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
75
75
  }>> & Readonly<{}>, {
76
76
  type: "search" | "address" | "article" | "404" | "goods" | "likes" | "car" | "comment" | "network" | "order";
77
77
  title: string;
78
- width: string;
78
+ width: string | number;
79
79
  height: string;
80
80
  fontSize: string | number;
81
81
  padding: string;
@@ -27,9 +27,9 @@ export declare const emptyProps: {
27
27
  description: string;
28
28
  };
29
29
  width: {
30
- type: StringConstructor;
30
+ type: (StringConstructor | NumberConstructor)[];
31
31
  default: string;
32
- validator: (value: string) => boolean;
32
+ validator: (value: string | number) => boolean;
33
33
  description: string;
34
34
  };
35
35
  height: {
@@ -191,6 +191,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
191
191
  size: import('../../..').LewSize;
192
192
  props: Record<string, any>;
193
193
  tips: string;
194
+ field: string;
194
195
  label: string;
195
196
  between: boolean;
196
197
  direction: import('../../..').FormDirection;
@@ -200,7 +201,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
200
201
  required: boolean;
201
202
  labelWidth: string | number;
202
203
  id: string;
203
- field: string;
204
204
  as: string;
205
205
  errMessage: string;
206
206
  gridArea: string;
@@ -28,10 +28,10 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
28
28
  validator: (value: number | string) => boolean;
29
29
  };
30
30
  objectFit: {
31
- type: PropType<import('./props').ObjectFit>;
31
+ type: PropType<import('../../..').ObjectFit>;
32
32
  default: string;
33
33
  description: string;
34
- validator: (value: import('./props').ObjectFit) => boolean;
34
+ validator: (value: import('../../..').ObjectFit) => boolean;
35
35
  };
36
36
  objectPosition: {
37
37
  type: StringConstructor;
@@ -87,10 +87,10 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
87
87
  validator: (value: number | string) => boolean;
88
88
  };
89
89
  objectFit: {
90
- type: PropType<import('./props').ObjectFit>;
90
+ type: PropType<import('../../..').ObjectFit>;
91
91
  default: string;
92
92
  description: string;
93
- validator: (value: import('./props').ObjectFit) => boolean;
93
+ validator: (value: import('../../..').ObjectFit) => boolean;
94
94
  };
95
95
  objectPosition: {
96
96
  type: StringConstructor;
@@ -127,7 +127,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
127
127
  loading: boolean;
128
128
  height: string | number;
129
129
  alt: string;
130
- objectFit: import('./props').ObjectFit;
130
+ objectFit: import('../../..').ObjectFit;
131
131
  objectPosition: string;
132
132
  previewKey: string;
133
133
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;