lew-ui 2.4.8 → 2.4.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 +21 -21
- package/README.md +46 -46
- package/README.zh-CN.md +48 -48
- package/dist/components/badge/src/LewBadge.vue.d.ts +1 -1
- package/dist/components/button/src/LewButton.vue.d.ts +2 -2
- package/dist/components/cascader/src/LewCascader.vue.d.ts +15 -2
- package/dist/components/cascader/src/props.d.ts +7 -1
- package/dist/components/drawer/src/LewDrawer.vue.d.ts +15 -4
- package/dist/components/drawer/src/props.d.ts +5 -0
- package/dist/components/form/src/LewForm.vue.d.ts +11 -0
- package/dist/components/form/src/LewFormItem.vue.d.ts +6 -5
- package/dist/components/form/src/props.d.ts +8 -2
- package/dist/components/image/src/LewImage.vue.d.ts +4 -4
- package/dist/components/image/src/props.d.ts +1 -1
- package/dist/components/mark/src/LewMark.vue.d.ts +1 -1
- package/dist/components/modal/src/LewModal.vue.d.ts +15 -4
- package/dist/components/modal/src/props.d.ts +5 -0
- package/dist/components/popok/src/LewPopok.vue.d.ts +4 -4
- package/dist/components/popover/src/LewPopover.vue.d.ts +1 -1
- package/dist/components/select/src/LewSelect.vue.d.ts +15 -2
- package/dist/components/select/src/props.d.ts +7 -1
- package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +13 -0
- package/dist/components/select-multiple/src/props.d.ts +6 -0
- package/dist/components/switch/src/LewSwitch.vue.d.ts +1 -1
- package/dist/components/tag/src/LewTag.vue.d.ts +1 -1
- package/dist/components/title/src/LewTitle.vue.d.ts +1 -1
- package/dist/components/tree/src/LewTree.vue.d.ts +3 -3
- package/dist/components/tree/src/props.d.ts +1 -1
- package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +3 -3
- package/dist/components/tree-select/src/props.d.ts +1 -1
- package/dist/components/upload/src/LewUpload.vue.d.ts +28 -2
- package/dist/components/upload/src/LewUploadByCard.vue.d.ts +28 -0
- package/dist/components/upload/src/LewUploadByList.vue.d.ts +28 -0
- package/dist/components/upload/src/props.d.ts +32 -2
- package/dist/confetti.browser.min.js +456 -456
- package/dist/docs/docs/upload/demo/index.d.ts +3 -1
- package/dist/docs/views/form-engine/schema/compoments-menus.d.ts +38 -6
- package/dist/docs/views/form-engine/schema/components/upload.d.ts +18 -0
- package/dist/index.mjs +2995 -1920
- package/dist/index.umd.js +6 -7
- package/dist/style.css +1 -1
- package/dist/utils/Icon.vue.d.ts +12 -3
- package/dist/utils/index.d.ts +1 -10
- package/package.json +3 -3
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,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 许可证的开源软件。
|
|
@@ -28,8 +28,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
28
28
|
validator: (value: string | number) => boolean;
|
|
29
29
|
};
|
|
30
30
|
}>> & Readonly<{}>, {
|
|
31
|
-
value: string | number;
|
|
32
31
|
color: string;
|
|
32
|
+
value: string | number;
|
|
33
33
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
34
34
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
35
35
|
export default _default;
|
|
@@ -119,12 +119,12 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
119
119
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
120
120
|
}>, {
|
|
121
121
|
type: import('./props').ButtonType;
|
|
122
|
+
color: import('../../..').LewColor;
|
|
122
123
|
size: import('./props').ButtonSize;
|
|
124
|
+
loading: boolean;
|
|
123
125
|
text: string;
|
|
124
|
-
color: import('../../..').LewColor;
|
|
125
126
|
round: boolean;
|
|
126
127
|
disabled: boolean;
|
|
127
|
-
loading: boolean;
|
|
128
128
|
singleIcon: boolean;
|
|
129
129
|
dashed: boolean;
|
|
130
130
|
request: Function;
|
|
@@ -53,10 +53,16 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
53
53
|
description: string;
|
|
54
54
|
validator: (value: string) => boolean;
|
|
55
55
|
};
|
|
56
|
-
|
|
56
|
+
loadMethod: {
|
|
57
57
|
type: FunctionConstructor;
|
|
58
58
|
description: string;
|
|
59
59
|
};
|
|
60
|
+
loadMethodId: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
hidden: boolean;
|
|
64
|
+
description: string;
|
|
65
|
+
};
|
|
60
66
|
readonly: {
|
|
61
67
|
type: BooleanConstructor;
|
|
62
68
|
default: boolean;
|
|
@@ -119,10 +125,16 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
119
125
|
description: string;
|
|
120
126
|
validator: (value: string) => boolean;
|
|
121
127
|
};
|
|
122
|
-
|
|
128
|
+
loadMethod: {
|
|
123
129
|
type: FunctionConstructor;
|
|
124
130
|
description: string;
|
|
125
131
|
};
|
|
132
|
+
loadMethodId: {
|
|
133
|
+
type: StringConstructor;
|
|
134
|
+
default: string;
|
|
135
|
+
hidden: boolean;
|
|
136
|
+
description: string;
|
|
137
|
+
};
|
|
126
138
|
readonly: {
|
|
127
139
|
type: BooleanConstructor;
|
|
128
140
|
default: boolean;
|
|
@@ -142,6 +154,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
142
154
|
multiple: boolean;
|
|
143
155
|
free: boolean;
|
|
144
156
|
trigger: import('../../..').CascaderTriggerType;
|
|
157
|
+
loadMethodId: string;
|
|
145
158
|
readonly: boolean;
|
|
146
159
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
147
160
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -76,10 +76,16 @@ export declare const cascaderProps: {
|
|
|
76
76
|
description: string;
|
|
77
77
|
validator: (value: string) => boolean;
|
|
78
78
|
};
|
|
79
|
-
|
|
79
|
+
loadMethod: {
|
|
80
80
|
type: FunctionConstructor;
|
|
81
81
|
description: string;
|
|
82
82
|
};
|
|
83
|
+
loadMethodId: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
hidden: boolean;
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
83
89
|
readonly: {
|
|
84
90
|
type: BooleanConstructor;
|
|
85
91
|
default: boolean;
|
|
@@ -60,6 +60,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
60
60
|
};
|
|
61
61
|
description: string;
|
|
62
62
|
};
|
|
63
|
+
zIndex: {
|
|
64
|
+
type: NumberConstructor;
|
|
65
|
+
default: number;
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
63
68
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
64
69
|
cancel: (...args: any[]) => void;
|
|
65
70
|
ok: (...args: any[]) => void;
|
|
@@ -120,6 +125,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
120
125
|
};
|
|
121
126
|
description: string;
|
|
122
127
|
};
|
|
128
|
+
zIndex: {
|
|
129
|
+
type: NumberConstructor;
|
|
130
|
+
default: number;
|
|
131
|
+
description: string;
|
|
132
|
+
};
|
|
123
133
|
}>> & Readonly<{
|
|
124
134
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
125
135
|
onOk?: ((...args: any[]) => any) | undefined;
|
|
@@ -131,29 +141,30 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
131
141
|
closeByEsc: boolean;
|
|
132
142
|
okProps: {
|
|
133
143
|
type: import('../../..').ButtonType;
|
|
144
|
+
color: import('../../..').LewColor;
|
|
134
145
|
size: import('../../..').ButtonSize;
|
|
146
|
+
loading: boolean;
|
|
135
147
|
text: string;
|
|
136
|
-
color: import('../../..').LewColor;
|
|
137
148
|
round: boolean;
|
|
138
149
|
disabled: boolean;
|
|
139
|
-
loading: boolean;
|
|
140
150
|
singleIcon: boolean;
|
|
141
151
|
dashed: boolean;
|
|
142
152
|
request: Function;
|
|
143
153
|
};
|
|
144
154
|
cancelProps: {
|
|
145
155
|
type: import('../../..').ButtonType;
|
|
156
|
+
color: import('../../..').LewColor;
|
|
146
157
|
size: import('../../..').ButtonSize;
|
|
158
|
+
loading: boolean;
|
|
147
159
|
text: string;
|
|
148
|
-
color: import('../../..').LewColor;
|
|
149
160
|
round: boolean;
|
|
150
161
|
disabled: boolean;
|
|
151
|
-
loading: boolean;
|
|
152
162
|
singleIcon: boolean;
|
|
153
163
|
dashed: boolean;
|
|
154
164
|
request: Function;
|
|
155
165
|
};
|
|
156
166
|
closeOnClickOverlay: boolean;
|
|
167
|
+
zIndex: number;
|
|
157
168
|
position: string;
|
|
158
169
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
159
170
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -52,6 +52,11 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
52
52
|
description: string;
|
|
53
53
|
hidden: boolean;
|
|
54
54
|
};
|
|
55
|
+
formMethods: {
|
|
56
|
+
type: PropType<Record<string, Function>>;
|
|
57
|
+
default: () => {};
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
55
60
|
}>, {
|
|
56
61
|
getForm: () => {};
|
|
57
62
|
setForm: (value?: any) => void;
|
|
@@ -114,6 +119,11 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
114
119
|
description: string;
|
|
115
120
|
hidden: boolean;
|
|
116
121
|
};
|
|
122
|
+
formMethods: {
|
|
123
|
+
type: PropType<Record<string, Function>>;
|
|
124
|
+
default: () => {};
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
117
127
|
}>> & Readonly<{
|
|
118
128
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
119
129
|
onMounted?: ((...args: any[]) => any) | undefined;
|
|
@@ -124,6 +134,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
124
134
|
options: Record<string, any>[];
|
|
125
135
|
disabled: boolean;
|
|
126
136
|
readonly: boolean;
|
|
137
|
+
formMethods: Record<string, Function>;
|
|
127
138
|
columns: string | number;
|
|
128
139
|
labelWidth: string | number;
|
|
129
140
|
id: string;
|
|
@@ -11,7 +11,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
11
11
|
description: string;
|
|
12
12
|
};
|
|
13
13
|
required: {
|
|
14
|
-
type: BooleanConstructor;
|
|
14
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
|
15
15
|
default: boolean;
|
|
16
16
|
description: string;
|
|
17
17
|
};
|
|
@@ -65,7 +65,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
65
65
|
description: string;
|
|
66
66
|
};
|
|
67
67
|
rule: {
|
|
68
|
-
type: PropType<
|
|
68
|
+
type: PropType<any | string>;
|
|
69
69
|
description: string;
|
|
70
70
|
};
|
|
71
71
|
props: {
|
|
@@ -92,6 +92,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
92
92
|
}>, {
|
|
93
93
|
validate: () => void;
|
|
94
94
|
setError: (message: any) => void;
|
|
95
|
+
curRule: globalThis.ComputedRef<any>;
|
|
95
96
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
96
97
|
change: (...args: any[]) => void;
|
|
97
98
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
@@ -107,7 +108,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
107
108
|
description: string;
|
|
108
109
|
};
|
|
109
110
|
required: {
|
|
110
|
-
type: BooleanConstructor;
|
|
111
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
|
111
112
|
default: boolean;
|
|
112
113
|
description: string;
|
|
113
114
|
};
|
|
@@ -161,7 +162,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
161
162
|
description: string;
|
|
162
163
|
};
|
|
163
164
|
rule: {
|
|
164
|
-
type: PropType<
|
|
165
|
+
type: PropType<any | string>;
|
|
165
166
|
description: string;
|
|
166
167
|
};
|
|
167
168
|
props: {
|
|
@@ -198,7 +199,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
198
199
|
width: string | number;
|
|
199
200
|
disabled: boolean;
|
|
200
201
|
readonly: boolean;
|
|
201
|
-
required: boolean;
|
|
202
|
+
required: boolean | Function;
|
|
202
203
|
labelWidth: string | number;
|
|
203
204
|
id: string;
|
|
204
205
|
as: string;
|
|
@@ -56,6 +56,11 @@ export declare const formProps: {
|
|
|
56
56
|
description: string;
|
|
57
57
|
hidden: boolean;
|
|
58
58
|
};
|
|
59
|
+
formMethods: {
|
|
60
|
+
type: PropType<Record<string, Function>>;
|
|
61
|
+
default: () => {};
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
59
64
|
};
|
|
60
65
|
export declare const formItemProps: {
|
|
61
66
|
label: {
|
|
@@ -69,7 +74,7 @@ export declare const formItemProps: {
|
|
|
69
74
|
description: string;
|
|
70
75
|
};
|
|
71
76
|
required: {
|
|
72
|
-
type: BooleanConstructor;
|
|
77
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
|
73
78
|
default: boolean;
|
|
74
79
|
description: string;
|
|
75
80
|
};
|
|
@@ -123,7 +128,7 @@ export declare const formItemProps: {
|
|
|
123
128
|
description: string;
|
|
124
129
|
};
|
|
125
130
|
rule: {
|
|
126
|
-
type: PropType<
|
|
131
|
+
type: PropType<any | string>;
|
|
127
132
|
description: string;
|
|
128
133
|
};
|
|
129
134
|
props: {
|
|
@@ -151,3 +156,4 @@ export declare const formItemProps: {
|
|
|
151
156
|
export declare const requiredIconSizeMap: Record<LewSize, number>;
|
|
152
157
|
export type FormProps = ExtractPropTypes<typeof formProps>;
|
|
153
158
|
export type FormItemProps = ExtractPropTypes<typeof formItemProps>;
|
|
159
|
+
export declare const formTypeAsMap: Record<string, any>;
|
|
@@ -55,7 +55,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
55
55
|
description: string;
|
|
56
56
|
validator: (value: string) => boolean;
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
previewGroupKey: {
|
|
59
59
|
type: StringConstructor;
|
|
60
60
|
default: string;
|
|
61
61
|
description: string;
|
|
@@ -114,7 +114,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
114
114
|
description: string;
|
|
115
115
|
validator: (value: string) => boolean;
|
|
116
116
|
};
|
|
117
|
-
|
|
117
|
+
previewGroupKey: {
|
|
118
118
|
type: StringConstructor;
|
|
119
119
|
default: string;
|
|
120
120
|
description: string;
|
|
@@ -122,14 +122,14 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
122
122
|
};
|
|
123
123
|
}>> & Readonly<{}>, {
|
|
124
124
|
lazy: boolean;
|
|
125
|
+
loading: boolean;
|
|
125
126
|
title: string;
|
|
126
127
|
width: string | number;
|
|
127
|
-
loading: boolean;
|
|
128
128
|
height: string | number;
|
|
129
129
|
alt: string;
|
|
130
130
|
objectFit: import('../../..').ObjectFit;
|
|
131
131
|
objectPosition: string;
|
|
132
|
-
|
|
132
|
+
previewGroupKey: string;
|
|
133
133
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
134
134
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
135
135
|
export default _default;
|
|
@@ -54,8 +54,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
54
54
|
}>> & Readonly<{
|
|
55
55
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
56
56
|
}>, {
|
|
57
|
-
bold: string | (100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900);
|
|
58
57
|
color: "gray" | "orange" | "green" | "red" | "blue" | "yellow" | "mint" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "brown";
|
|
58
|
+
bold: string | (100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900);
|
|
59
59
|
round: boolean;
|
|
60
60
|
cursor: "default" | "text" | "pointer" | "move" | "not-allowed";
|
|
61
61
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -65,6 +65,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
65
65
|
default: boolean;
|
|
66
66
|
description: string;
|
|
67
67
|
};
|
|
68
|
+
zIndex: {
|
|
69
|
+
type: NumberConstructor;
|
|
70
|
+
default: number;
|
|
71
|
+
description: string;
|
|
72
|
+
};
|
|
68
73
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
69
74
|
cancel: (...args: any[]) => void;
|
|
70
75
|
close: (...args: any[]) => void;
|
|
@@ -131,6 +136,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
131
136
|
default: boolean;
|
|
132
137
|
description: string;
|
|
133
138
|
};
|
|
139
|
+
zIndex: {
|
|
140
|
+
type: NumberConstructor;
|
|
141
|
+
default: number;
|
|
142
|
+
description: string;
|
|
143
|
+
};
|
|
134
144
|
}>> & Readonly<{
|
|
135
145
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
136
146
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -143,24 +153,24 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
143
153
|
closeByEsc: boolean;
|
|
144
154
|
okProps: {
|
|
145
155
|
type: import('../../..').ButtonType;
|
|
156
|
+
color: import('../../..').LewColor;
|
|
146
157
|
size: import('../../..').ButtonSize;
|
|
158
|
+
loading: boolean;
|
|
147
159
|
text: string;
|
|
148
|
-
color: import('../../..').LewColor;
|
|
149
160
|
round: boolean;
|
|
150
161
|
disabled: boolean;
|
|
151
|
-
loading: boolean;
|
|
152
162
|
singleIcon: boolean;
|
|
153
163
|
dashed: boolean;
|
|
154
164
|
request: Function;
|
|
155
165
|
};
|
|
156
166
|
cancelProps: {
|
|
157
167
|
type: import('../../..').ButtonType;
|
|
168
|
+
color: import('../../..').LewColor;
|
|
158
169
|
size: import('../../..').ButtonSize;
|
|
170
|
+
loading: boolean;
|
|
159
171
|
text: string;
|
|
160
|
-
color: import('../../..').LewColor;
|
|
161
172
|
round: boolean;
|
|
162
173
|
disabled: boolean;
|
|
163
|
-
loading: boolean;
|
|
164
174
|
singleIcon: boolean;
|
|
165
175
|
dashed: boolean;
|
|
166
176
|
request: Function;
|
|
@@ -168,6 +178,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
168
178
|
hideOkButton: boolean;
|
|
169
179
|
hideCancelButton: boolean;
|
|
170
180
|
closeOnClickOverlay: boolean;
|
|
181
|
+
zIndex: number;
|
|
171
182
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
172
183
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
173
184
|
export default _default;
|
|
@@ -109,24 +109,24 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
109
109
|
placement: import('../../..').PopoverPlacement;
|
|
110
110
|
okProps: {
|
|
111
111
|
type: import('../../..').ButtonType;
|
|
112
|
+
color: import('../../..').LewColor;
|
|
112
113
|
size: import('../../..').ButtonSize;
|
|
114
|
+
loading: boolean;
|
|
113
115
|
text: string;
|
|
114
|
-
color: import('../../..').LewColor;
|
|
115
116
|
round: boolean;
|
|
116
117
|
disabled: boolean;
|
|
117
|
-
loading: boolean;
|
|
118
118
|
singleIcon: boolean;
|
|
119
119
|
dashed: boolean;
|
|
120
120
|
request: Function;
|
|
121
121
|
};
|
|
122
122
|
cancelProps: {
|
|
123
123
|
type: import('../../..').ButtonType;
|
|
124
|
+
color: import('../../..').LewColor;
|
|
124
125
|
size: import('../../..').ButtonSize;
|
|
126
|
+
loading: boolean;
|
|
125
127
|
text: string;
|
|
126
|
-
color: import('../../..').LewColor;
|
|
127
128
|
round: boolean;
|
|
128
129
|
disabled: boolean;
|
|
129
|
-
loading: boolean;
|
|
130
130
|
singleIcon: boolean;
|
|
131
131
|
dashed: boolean;
|
|
132
132
|
request: Function;
|