lew-ui 2.3.1 → 2.3.3

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.
Files changed (30) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +33 -33
  3. package/README.zh-CN.md +35 -35
  4. package/dist/components/button/src/LewButton.vue.d.ts +0 -3
  5. package/dist/components/button/src/props.d.ts +0 -1
  6. package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +2 -2
  7. package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +2 -2
  8. package/dist/components/date-picker/src/props.d.ts +1 -1
  9. package/dist/components/drawer/src/LewDrawer.vue.d.ts +2 -26
  10. package/dist/components/form/src/LewForm.vue.d.ts +1 -0
  11. package/dist/components/image/src/LewImage.vue.d.ts +8 -7
  12. package/dist/components/image/src/props.d.ts +3 -3
  13. package/dist/components/index.d.ts +2 -0
  14. package/dist/components/input-table/index.d.ts +2 -0
  15. package/dist/components/input-table/src/FormModal.vue.d.ts +21 -0
  16. package/dist/components/input-table/src/LewInputTable.vue.d.ts +87 -0
  17. package/dist/components/input-table/src/props.d.ts +43 -0
  18. package/dist/components/input-tree/index.d.ts +2 -0
  19. package/dist/components/input-tree/src/LewInputTree.vue.d.ts +38 -0
  20. package/dist/components/input-tree/src/props.d.ts +17 -0
  21. package/dist/components/modal/src/LewModal.vue.d.ts +2 -26
  22. package/dist/components/popok/src/LewPopok.vue.d.ts +2 -26
  23. package/dist/components/radio/src/LewRadio.vue.d.ts +1 -1
  24. package/dist/components/select/src/LewSelect.vue.d.ts +4 -4
  25. package/dist/components/select/src/props.d.ts +2 -2
  26. package/dist/components/table/src/LewTable.vue.d.ts +8 -1
  27. package/dist/index.mjs +4595 -1224
  28. package/dist/index.umd.js +162 -162
  29. package/dist/style.css +1 -1
  30. package/package.json +2 -1
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,33 +1,33 @@
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.
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.
package/README.zh-CN.md CHANGED
@@ -1,35 +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 许可证的开源软件。
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,6 @@ declare const __VLS_component: import('vue').DefineComponent<{
34
34
  };
35
35
  iconSize: {
36
36
  type: (StringConstructor | NumberConstructor)[];
37
- default: number;
38
37
  description: string;
39
38
  };
40
39
  loading: {
@@ -92,7 +91,6 @@ declare const __VLS_component: import('vue').DefineComponent<{
92
91
  };
93
92
  iconSize: {
94
93
  type: (StringConstructor | NumberConstructor)[];
95
- default: number;
96
94
  description: string;
97
95
  };
98
96
  loading: {
@@ -127,7 +125,6 @@ declare const __VLS_component: import('vue').DefineComponent<{
127
125
  disabled: boolean;
128
126
  loading: boolean;
129
127
  iconPosition: string;
130
- iconSize: string | number;
131
128
  request: Function;
132
129
  }, {}>;
133
130
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -36,7 +36,6 @@ export declare const buttonProps: {
36
36
  };
37
37
  iconSize: {
38
38
  type: (StringConstructor | NumberConstructor)[];
39
- default: number;
40
39
  description: string;
41
40
  };
42
41
  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
- checked: boolean | Function;
106
- certain: boolean | Function;
107
105
  block: boolean;
108
106
  iconable: boolean;
107
+ checked: boolean | Function;
108
+ certain: boolean | Function;
109
109
  }, {}>;
110
110
  export default _default;
@@ -7,7 +7,7 @@ declare const _default: import('vue').DefineComponent<{
7
7
  };
8
8
  clearable: {
9
9
  type: BooleanConstructor;
10
- default: string;
10
+ default: boolean;
11
11
  description: string;
12
12
  };
13
13
  readonly: {
@@ -50,7 +50,7 @@ declare const _default: import('vue').DefineComponent<{
50
50
  };
51
51
  clearable: {
52
52
  type: BooleanConstructor;
53
- default: string;
53
+ default: boolean;
54
54
  description: string;
55
55
  };
56
56
  readonly: {
@@ -16,7 +16,7 @@ export declare const datePickerProps: {
16
16
  };
17
17
  clearable: {
18
18
  type: BooleanConstructor;
19
- default: string;
19
+ default: boolean;
20
20
  description: string;
21
21
  };
22
22
  readonly: {
@@ -123,32 +123,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
123
123
  height: number;
124
124
  hideFooter: boolean;
125
125
  closeByEsc: boolean;
126
- okProps: {
127
- type: import('../..').ButtonType;
128
- icon: string;
129
- text: string;
130
- color: import('../..').ButtonColor;
131
- round: boolean;
132
- size: import('../..').ButtonSize;
133
- disabled: boolean;
134
- loading: boolean;
135
- iconPosition: string;
136
- iconSize: string | number;
137
- request: Function;
138
- };
139
- cancelProps: {
140
- type: import('../..').ButtonType;
141
- icon: string;
142
- text: string;
143
- color: import('../..').ButtonColor;
144
- round: boolean;
145
- size: import('../..').ButtonSize;
146
- disabled: boolean;
147
- loading: boolean;
148
- iconPosition: string;
149
- iconSize: string | number;
150
- request: Function;
151
- };
126
+ okProps: import('../..').ButtonProps;
127
+ cancelProps: import('../..').ButtonProps;
152
128
  closeOnClickOverlay: boolean;
153
129
  position: string;
154
130
  }, {}>;
@@ -49,6 +49,7 @@ declare const _default: import('vue').DefineComponent<{
49
49
  }, {
50
50
  getForm: () => {};
51
51
  setForm: (value?: any) => void;
52
+ resetError: () => void;
52
53
  validate: () => Promise<boolean>;
53
54
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
54
55
  change: (...args: any[]) => void;
@@ -1,3 +1,4 @@
1
+
1
2
  declare function __VLS_template(): {
2
3
  error?(_: {}): any;
3
4
  };
@@ -32,9 +33,9 @@ declare const __VLS_component: import('vue').DefineComponent<{
32
33
  default: string;
33
34
  description: string;
34
35
  };
35
- preview: {
36
- type: BooleanConstructor;
37
- default: boolean;
36
+ previewKey: {
37
+ type: StringConstructor;
38
+ default: string;
38
39
  description: string;
39
40
  };
40
41
  alt: {
@@ -83,9 +84,9 @@ declare const __VLS_component: import('vue').DefineComponent<{
83
84
  default: string;
84
85
  description: string;
85
86
  };
86
- preview: {
87
- type: BooleanConstructor;
88
- default: boolean;
87
+ previewKey: {
88
+ type: StringConstructor;
89
+ default: string;
89
90
  description: string;
90
91
  };
91
92
  alt: {
@@ -113,7 +114,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
113
114
  lazy: boolean;
114
115
  objectFit: "fill" | "none" | "contain" | "cover" | "scale-down";
115
116
  objectPosition: string;
116
- preview: boolean;
117
+ previewKey: string;
117
118
  }, {}>;
118
119
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
119
120
  export default _default;
@@ -31,9 +31,9 @@ export declare const imageProps: {
31
31
  default: string;
32
32
  description: string;
33
33
  };
34
- preview: {
35
- type: BooleanConstructor;
36
- default: boolean;
34
+ previewKey: {
35
+ type: StringConstructor;
36
+ default: string;
37
37
  description: string;
38
38
  };
39
39
  alt: {
@@ -45,3 +45,5 @@ export * from './slider';
45
45
  export * from './slider-range';
46
46
  export * from './image';
47
47
  export * from './expand';
48
+ export * from './input-table';
49
+ export * from './input-tree';
@@ -0,0 +1,2 @@
1
+ export { default as LewInputTable } from './src/LewInputTable.vue';
2
+ export * from './src/props';
@@ -0,0 +1,21 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ options: {
3
+ type: ObjectConstructor;
4
+ };
5
+ }, {
6
+ open: ({ row, index }: {
7
+ row: any;
8
+ index: number;
9
+ }) => void;
10
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ addSuccess: (...args: any[]) => void;
12
+ editSuccess: (...args: any[]) => void;
13
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
14
+ options: {
15
+ type: ObjectConstructor;
16
+ };
17
+ }>> & {
18
+ onAddSuccess?: ((...args: any[]) => any) | undefined;
19
+ onEditSuccess?: ((...args: any[]) => any) | undefined;
20
+ }, {}, {}>;
21
+ export default _default;
@@ -0,0 +1,87 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ modelValue: {
3
+ required: true;
4
+ type: import('vue').PropType<any>;
5
+ };
6
+ size: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ description: string;
10
+ };
11
+ width: {
12
+ type: (StringConstructor | NumberConstructor)[];
13
+ default: string;
14
+ description: string;
15
+ };
16
+ batchDelete: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ description: string;
20
+ };
21
+ rowKey: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ description: string;
25
+ };
26
+ autoUniqueId: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ columns: {
31
+ type: ArrayConstructor;
32
+ default: {
33
+ title: string;
34
+ width: number;
35
+ field: string;
36
+ as: string;
37
+ }[];
38
+ description: string;
39
+ };
40
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
41
+ modelValue: {
42
+ required: true;
43
+ type: import('vue').PropType<any>;
44
+ };
45
+ size: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ description: string;
49
+ };
50
+ width: {
51
+ type: (StringConstructor | NumberConstructor)[];
52
+ default: string;
53
+ description: string;
54
+ };
55
+ batchDelete: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ description: string;
59
+ };
60
+ rowKey: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ description: string;
64
+ };
65
+ autoUniqueId: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ columns: {
70
+ type: ArrayConstructor;
71
+ default: {
72
+ title: string;
73
+ width: number;
74
+ field: string;
75
+ as: string;
76
+ }[];
77
+ description: string;
78
+ };
79
+ }>>, {
80
+ width: string | number;
81
+ size: string;
82
+ columns: unknown[];
83
+ rowKey: string;
84
+ batchDelete: boolean;
85
+ autoUniqueId: boolean;
86
+ }, {}>;
87
+ export default _default;
@@ -0,0 +1,43 @@
1
+ export declare const inputTableModel: {
2
+ modelValue: {
3
+ type: PropType<any[]>;
4
+ default: string;
5
+ description: string;
6
+ };
7
+ };
8
+ export declare const inputTableProps: {
9
+ size: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ description: string;
13
+ };
14
+ width: {
15
+ type: (StringConstructor | NumberConstructor)[];
16
+ default: string;
17
+ description: string;
18
+ };
19
+ batchDelete: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ description: string;
23
+ };
24
+ rowKey: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ description: string;
28
+ };
29
+ autoUniqueId: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ columns: {
34
+ type: ArrayConstructor;
35
+ default: {
36
+ title: string;
37
+ width: number;
38
+ field: string;
39
+ as: string;
40
+ }[];
41
+ description: string;
42
+ };
43
+ };
@@ -0,0 +1,2 @@
1
+ export { default as LewInputTree } from './src/LewInputTree.vue';
2
+ export * from './src/props';
@@ -0,0 +1,38 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ type: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ description: string;
6
+ };
7
+ title: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ description: string;
11
+ };
12
+ content: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ description: string;
16
+ };
17
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
18
+ type: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ description: string;
22
+ };
23
+ title: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ description: string;
27
+ };
28
+ content: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ description: string;
32
+ };
33
+ }>>, {
34
+ type: string;
35
+ title: string;
36
+ content: string;
37
+ }, {}>;
38
+ export default _default;
@@ -0,0 +1,17 @@
1
+ export declare const inputTreeProps: {
2
+ type: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ description: string;
6
+ };
7
+ title: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ description: string;
11
+ };
12
+ content: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ description: string;
16
+ };
17
+ };
@@ -135,32 +135,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
135
135
  height: string | number;
136
136
  hideFooter: boolean;
137
137
  closeByEsc: boolean;
138
- okProps: {
139
- type: import('../../..').ButtonType;
140
- icon: string;
141
- text: string;
142
- color: import('../../..').ButtonColor;
143
- round: boolean;
144
- size: import('../../..').ButtonSize;
145
- disabled: boolean;
146
- loading: boolean;
147
- iconPosition: string;
148
- iconSize: string | number;
149
- request: Function;
150
- };
151
- cancelProps: {
152
- type: import('../../..').ButtonType;
153
- icon: string;
154
- text: string;
155
- color: import('../../..').ButtonColor;
156
- round: boolean;
157
- size: import('../../..').ButtonSize;
158
- disabled: boolean;
159
- loading: boolean;
160
- iconPosition: string;
161
- iconSize: string | number;
162
- request: Function;
163
- };
138
+ okProps: import('../../..').ButtonProps;
139
+ cancelProps: import('../../..').ButtonProps;
164
140
  hideOkButton: boolean;
165
141
  hideCancelButton: boolean;
166
142
  closeOnClickOverlay: boolean;
@@ -114,32 +114,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
114
114
  trigger: string;
115
115
  placement: string;
116
116
  content: string;
117
- okProps: {
118
- type: import('../../..').ButtonType;
119
- icon: string;
120
- text: string;
121
- color: import('../../..').ButtonColor;
122
- round: boolean;
123
- size: import('../../..').ButtonSize;
124
- disabled: boolean;
125
- loading: boolean;
126
- iconPosition: string;
127
- iconSize: string | number;
128
- request: Function;
129
- };
130
- cancelProps: {
131
- type: import('../../..').ButtonType;
132
- icon: string;
133
- text: string;
134
- color: import('../../..').ButtonColor;
135
- round: boolean;
136
- size: import('../../..').ButtonSize;
137
- disabled: boolean;
138
- loading: boolean;
139
- iconPosition: string;
140
- iconSize: string | number;
141
- request: Function;
142
- };
117
+ okProps: import('../../..').ButtonProps;
118
+ cancelProps: import('../../..').ButtonProps;
143
119
  }, {}>;
144
120
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
145
121
  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;
94
93
  block: boolean;
95
94
  iconable: boolean;
95
+ checked: boolean;
96
96
  }, {}>;
97
97
  export default _default;