lew-ui 2.1.9 → 2.1.12

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,53 +1,53 @@
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
- - Step 步骤
37
- - Upload 上传
38
- - Card 卡片
39
- - Progress 进度条
40
- - Loading 加载
41
-
42
- ## Thanks
43
-
44
- - https://github.com/atomiks/tippyjs
45
- - https://fengyuanchen.github.io/vue-feather/
46
-
47
- ## License
48
-
49
- Lew UI is open source software licensed as MIT.
50
-
51
- ## Demo
52
-
53
- ![这里有图](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
+ ![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
+ - Step 步骤
37
+ - Upload 上传
38
+ - Card 卡片
39
+ - Progress 进度条
40
+ - Loading 加载
41
+
42
+ ## Thanks
43
+
44
+ - https://github.com/atomiks/tippyjs
45
+ - https://fengyuanchen.github.io/vue-feather/
46
+
47
+ ## License
48
+
49
+ Lew UI is open source software licensed as MIT.
50
+
51
+ ## Demo
52
+
53
+ ![这里有图](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)
@@ -5,7 +5,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
5
5
  description: string;
6
6
  };
7
7
  color: {
8
- type: globalThis.PropType<"gray" | "orange" | "green" | "red" | "blue" | "yellow" | "mint" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "brown">;
8
+ type: globalThis.PropType<import('./props').BadgeColor>;
9
9
  default: string;
10
10
  description: string;
11
11
  };
@@ -16,13 +16,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
16
16
  description: string;
17
17
  };
18
18
  color: {
19
- type: globalThis.PropType<"gray" | "orange" | "green" | "red" | "blue" | "yellow" | "mint" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "brown">;
19
+ type: globalThis.PropType<import('./props').BadgeColor>;
20
20
  default: string;
21
21
  description: string;
22
22
  };
23
23
  }>>, {
24
24
  value: string;
25
- color: "gray" | "orange" | "green" | "red" | "blue" | "yellow" | "mint" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "brown";
25
+ color: import('./props').BadgeColor;
26
26
  }, {}>, {
27
27
  default?(_: {}): any;
28
28
  }>;
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
 
3
- type badgeColor = 'red' | 'orange' | 'yellow' | 'green' | 'mint' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray' | 'brown';
3
+ export type BadgeColor = 'red' | 'orange' | 'yellow' | 'green' | 'mint' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray' | 'brown';
4
4
  export declare const badgeProps: {
5
5
  value: {
6
6
  type: StringConstructor;
@@ -8,10 +8,9 @@ export declare const badgeProps: {
8
8
  description: string;
9
9
  };
10
10
  color: {
11
- type: PropType<badgeColor>;
11
+ type: PropType<BadgeColor>;
12
12
  default: string;
13
13
  description: string;
14
14
  };
15
15
  };
16
16
  export type BadgeProps = ExtractPropTypes<typeof badgeProps>;
17
- export {};
@@ -1,7 +1,8 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
- visible: {
3
- type: BooleanConstructor;
4
- default: boolean;
2
+ visible: globalThis.PropType<any>;
3
+ title: {
4
+ type: StringConstructor;
5
+ default: string;
5
6
  description: string;
6
7
  };
7
8
  width: {
@@ -19,14 +20,48 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
19
20
  default: string;
20
21
  description: string;
21
22
  };
22
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
- "update:visible": (...args: any[]) => void;
24
- }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
25
- visible: {
23
+ hideFooter: {
26
24
  type: BooleanConstructor;
27
25
  default: boolean;
28
26
  description: string;
29
27
  };
28
+ closeByEsc: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ description: string;
32
+ };
33
+ okProps: {
34
+ type: globalThis.PropType<import('../..').ButtonProps>;
35
+ default: () => {
36
+ text: string;
37
+ color: string;
38
+ };
39
+ description: string;
40
+ };
41
+ cancelProps: {
42
+ type: globalThis.PropType<import('../..').ButtonProps>;
43
+ default: () => {
44
+ type: string;
45
+ text: string;
46
+ color: string;
47
+ };
48
+ description: string;
49
+ };
50
+ closeOnClickOverlay: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ description: string;
54
+ };
55
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
+ ok: (...args: any[]) => void;
57
+ cancel: (...args: any[]) => void;
58
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
59
+ visible: globalThis.PropType<any>;
60
+ title: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ description: string;
64
+ };
30
65
  width: {
31
66
  type: NumberConstructor;
32
67
  default: number;
@@ -42,15 +77,77 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
42
77
  default: string;
43
78
  description: string;
44
79
  };
80
+ hideFooter: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ description: string;
84
+ };
85
+ closeByEsc: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ description: string;
89
+ };
90
+ okProps: {
91
+ type: globalThis.PropType<import('../..').ButtonProps>;
92
+ default: () => {
93
+ text: string;
94
+ color: string;
95
+ };
96
+ description: string;
97
+ };
98
+ cancelProps: {
99
+ type: globalThis.PropType<import('../..').ButtonProps>;
100
+ default: () => {
101
+ type: string;
102
+ text: string;
103
+ color: string;
104
+ };
105
+ description: string;
106
+ };
107
+ closeOnClickOverlay: {
108
+ type: BooleanConstructor;
109
+ default: boolean;
110
+ description: string;
111
+ };
45
112
  }>> & {
46
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
113
+ onOk?: ((...args: any[]) => any) | undefined;
114
+ onCancel?: ((...args: any[]) => any) | undefined;
47
115
  }, {
48
116
  width: number;
49
- visible: boolean;
117
+ title: string;
50
118
  height: number;
119
+ hideFooter: boolean;
120
+ closeByEsc: boolean;
121
+ okProps: {
122
+ type: import('../..').ButtonType;
123
+ text: string;
124
+ color: import('../..').ButtonColor;
125
+ round: boolean;
126
+ size: import('../..').ButtonSize;
127
+ disabled: boolean;
128
+ loading: boolean;
129
+ icon: string;
130
+ iconPosition: string;
131
+ request: Function;
132
+ };
133
+ cancelProps: {
134
+ type: import('../..').ButtonType;
135
+ text: string;
136
+ color: import('../..').ButtonColor;
137
+ round: boolean;
138
+ size: import('../..').ButtonSize;
139
+ disabled: boolean;
140
+ loading: boolean;
141
+ icon: string;
142
+ iconPosition: string;
143
+ request: Function;
144
+ };
145
+ closeOnClickOverlay: boolean;
51
146
  position: string;
52
147
  }, {}>, {
148
+ header?(_: {}): any;
53
149
  default?(_: {}): any;
150
+ footer?(_: {}): any;
54
151
  }>;
55
152
  export default _default;
56
153
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,9 +1,17 @@
1
+ import { ButtonProps } from '../../button/index';
1
2
  import { ExtractPropTypes } from 'vue';
2
3
 
3
- export declare const drawerProps: {
4
+ export declare const drawerModel: {
4
5
  visible: {
5
- type: BooleanConstructor;
6
- default: boolean;
6
+ type: StringConstructor;
7
+ default: string;
8
+ description: string;
9
+ };
10
+ };
11
+ export declare const drawerProps: {
12
+ title: {
13
+ type: StringConstructor;
14
+ default: string;
7
15
  description: string;
8
16
  };
9
17
  width: {
@@ -21,7 +29,37 @@ export declare const drawerProps: {
21
29
  default: string;
22
30
  description: string;
23
31
  };
32
+ hideFooter: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ description: string;
36
+ };
37
+ closeByEsc: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ description: string;
41
+ };
42
+ okProps: {
43
+ type: globalThis.PropType<ButtonProps>;
44
+ default: () => {
45
+ text: string;
46
+ color: string;
47
+ };
48
+ description: string;
49
+ };
50
+ cancelProps: {
51
+ type: globalThis.PropType<ButtonProps>;
52
+ default: () => {
53
+ type: string;
54
+ text: string;
55
+ color: string;
56
+ };
57
+ description: string;
58
+ };
59
+ closeOnClickOverlay: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ description: string;
63
+ };
24
64
  };
25
65
  export type DrawerProps = ExtractPropTypes<typeof drawerProps>;
26
- export declare const getStyle: (position: string, width: number, height: number) => string | undefined;
27
- export declare const getPosition: (position: string) => 1 | 0;
@@ -7,6 +7,7 @@ export * from './tree-select';
7
7
  export * from './tabs';
8
8
  export * from './breadcrumb';
9
9
  export * from './dropdown';
10
+ export * from './steps';
10
11
  export * from './input';
11
12
  export * from './textarea';
12
13
  export * from './input-tag';
@@ -15,7 +15,7 @@ declare const _default: import('vue').DefineComponent<{
15
15
  default: string;
16
16
  description: string;
17
17
  };
18
- focusSelect: {
18
+ selectByFocus: {
19
19
  type: BooleanConstructor;
20
20
  default: boolean;
21
21
  description: string;
@@ -115,11 +115,6 @@ declare const _default: import('vue').DefineComponent<{
115
115
  default: boolean;
116
116
  description: string;
117
117
  };
118
- regular: {
119
- type: globalThis.PropType<(value: string) => boolean>;
120
- default: () => boolean;
121
- description: string;
122
- };
123
118
  }, {
124
119
  toFocus: () => void;
125
120
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -146,7 +141,7 @@ declare const _default: import('vue').DefineComponent<{
146
141
  default: string;
147
142
  description: string;
148
143
  };
149
- focusSelect: {
144
+ selectByFocus: {
150
145
  type: BooleanConstructor;
151
146
  default: boolean;
152
147
  description: string;
@@ -246,11 +241,6 @@ declare const _default: import('vue').DefineComponent<{
246
241
  default: boolean;
247
242
  description: string;
248
243
  };
249
- regular: {
250
- type: globalThis.PropType<(value: string) => boolean>;
251
- default: () => boolean;
252
- description: string;
253
- };
254
244
  }>> & {
255
245
  onFocus?: ((...args: any[]) => any) | undefined;
256
246
  onBlur?: ((...args: any[]) => any) | undefined;
@@ -266,7 +256,7 @@ declare const _default: import('vue').DefineComponent<{
266
256
  readonly: boolean;
267
257
  disabled: boolean;
268
258
  align: string;
269
- focusSelect: boolean;
259
+ selectByFocus: boolean;
270
260
  copyable: boolean;
271
261
  showPassword: boolean;
272
262
  minWidth: string | number;
@@ -281,6 +271,5 @@ declare const _default: import('vue').DefineComponent<{
281
271
  suffixOptions: import('../../..').SelectOptions[];
282
272
  suffixTooltip: string;
283
273
  okByEnter: boolean;
284
- regular: (value: string) => boolean;
285
274
  }, {}>;
286
275
  export default _default;
@@ -31,7 +31,7 @@ export declare const inputProps: {
31
31
  default: string;
32
32
  description: string;
33
33
  };
34
- focusSelect: {
34
+ selectByFocus: {
35
35
  type: BooleanConstructor;
36
36
  default: boolean;
37
37
  description: string;
@@ -131,10 +131,5 @@ export declare const inputProps: {
131
131
  default: boolean;
132
132
  description: string;
133
133
  };
134
- regular: {
135
- type: PropType<(value: string) => boolean>;
136
- default: () => boolean;
137
- description: string;
138
- };
139
134
  };
140
135
  export type InputProps = ExtractPropTypes<typeof inputProps>;
@@ -1,12 +1,79 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
2
  modelValue: globalThis.PropType<any>;
3
+ size: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ description: string;
7
+ };
8
+ disabled: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ description: string;
12
+ };
13
+ clearable: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ description: string;
17
+ };
18
+ placeholder: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ description: string;
22
+ };
23
+ readonly: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ description: string;
27
+ };
28
+ allowDuplicates: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ description: string;
32
+ };
3
33
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
34
  change: (...args: any[]) => void;
5
35
  close: (...args: any[]) => void;
6
36
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
7
37
  modelValue: globalThis.PropType<any>;
38
+ size: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ description: string;
42
+ };
43
+ disabled: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ description: string;
47
+ };
48
+ clearable: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ description: string;
52
+ };
53
+ placeholder: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ description: string;
57
+ };
58
+ readonly: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ description: string;
62
+ };
63
+ allowDuplicates: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ description: string;
67
+ };
8
68
  }>> & {
9
69
  onChange?: ((...args: any[]) => any) | undefined;
10
70
  onClose?: ((...args: any[]) => any) | undefined;
11
- }, {}, {}>;
71
+ }, {
72
+ size: string;
73
+ placeholder: string;
74
+ clearable: boolean;
75
+ readonly: boolean;
76
+ disabled: boolean;
77
+ allowDuplicates: boolean;
78
+ }, {}>;
12
79
  export default _default;
@@ -7,4 +7,35 @@ export declare const inputTagModel: {
7
7
  description: string;
8
8
  };
9
9
  };
10
- export declare const inputTagProps: {};
10
+ export declare const inputTagProps: {
11
+ size: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ description: string;
15
+ };
16
+ disabled: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ description: string;
20
+ };
21
+ clearable: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ description: string;
25
+ };
26
+ placeholder: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ description: string;
30
+ };
31
+ readonly: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ description: string;
35
+ };
36
+ allowDuplicates: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ description: string;
40
+ };
41
+ };
@@ -15,12 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
15
15
  default: string;
16
16
  description: string;
17
17
  };
18
- customHeader: {
19
- type: BooleanConstructor;
20
- default: boolean;
21
- description: string;
22
- };
23
- customFooter: {
18
+ hideFooter: {
24
19
  type: BooleanConstructor;
25
20
  default: boolean;
26
21
  description: string;
@@ -74,12 +69,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
74
69
  default: string;
75
70
  description: string;
76
71
  };
77
- customHeader: {
78
- type: BooleanConstructor;
79
- default: boolean;
80
- description: string;
81
- };
82
- customFooter: {
72
+ hideFooter: {
83
73
  type: BooleanConstructor;
84
74
  default: boolean;
85
75
  description: string;
@@ -120,8 +110,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
120
110
  width: string | number;
121
111
  title: string;
122
112
  height: string | number;
123
- customHeader: boolean;
124
- customFooter: boolean;
113
+ hideFooter: boolean;
125
114
  closeByEsc: boolean;
126
115
  okProps: {
127
116
  type: import('../../..').ButtonType;
@@ -24,12 +24,7 @@ export declare const modalProps: {
24
24
  default: string;
25
25
  description: string;
26
26
  };
27
- customHeader: {
28
- type: BooleanConstructor;
29
- default: boolean;
30
- description: string;
31
- };
32
- customFooter: {
27
+ hideFooter: {
33
28
  type: BooleanConstructor;
34
29
  default: boolean;
35
30
  description: string;
@@ -1,2 +1,2 @@
1
- export { default as LewTag } from './src/LewTag.vue';
1
+ export { default as LewSteps } from './src/LewSteps.vue';
2
2
  export * from './src/props';