lew-ui 2.3.5 → 2.3.8
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 +33 -33
- package/README.zh-CN.md +35 -35
- package/dist/components/alert/src/LewAlert.vue.d.ts +9 -7
- package/dist/components/alert/src/props.d.ts +8 -6
- package/dist/components/avatar/src/LewAvatar.vue.d.ts +37 -38
- package/dist/components/avatar/src/props.d.ts +22 -20
- package/dist/components/backtop/src/LewBackTop.vue.d.ts +9 -1
- package/dist/components/backtop/src/props.d.ts +4 -0
- package/dist/components/badge/src/LewBadge.vue.d.ts +12 -8
- package/dist/components/badge/src/props.d.ts +7 -5
- package/dist/components/breadcrumb/src/LewBreadcrumb.vue.d.ts +14 -10
- package/dist/components/breadcrumb/src/props.d.ts +10 -8
- package/dist/components/button/src/LewButton.vue.d.ts +60 -36
- package/dist/components/button/src/props.d.ts +31 -19
- package/dist/components/cascader/src/LewCascader.vue.d.ts +51 -48
- package/dist/components/cascader/src/props.d.ts +29 -21
- package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +41 -39
- package/dist/components/checkbox/src/props.d.ts +43 -38
- package/dist/components/collapse/src/LewCollapse.vue.d.ts +4 -0
- package/dist/components/collapse/src/LewCollapseItem.vue.d.ts +10 -4
- package/dist/components/collapse/src/props.d.ts +8 -2
- package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +31 -27
- package/dist/components/date-picker/src/props.d.ts +21 -18
- package/dist/components/date-range-picker/src/LewDateRange.vue.d.ts +4 -0
- package/dist/components/date-range-picker/src/LewDateRangePicker.vue.d.ts +41 -35
- package/dist/components/date-range-picker/src/props.d.ts +24 -19
- package/dist/components/drawer/src/LewDrawer.vue.d.ts +36 -30
- package/dist/components/drawer/src/props.d.ts +18 -15
- package/dist/components/dropdown/src/LewDropdown.vue.d.ts +24 -16
- package/dist/components/dropdown/src/props.d.ts +14 -12
- package/dist/components/empty/src/LewEmpty.vue.d.ts +15 -5
- package/dist/components/empty/src/props.d.ts +7 -2
- package/dist/components/flex/src/LewFlex.vue.d.ts +32 -26
- package/dist/components/flex/src/props.d.ts +18 -12
- package/dist/components/form/src/LewForm.vue.d.ts +35 -23
- package/dist/components/form/src/LewFormItem.vue.d.ts +70 -62
- package/dist/components/form/src/LewGetLabelWidth.vue.d.ts +5 -3
- package/dist/components/form/src/props.d.ts +47 -36
- package/dist/components/image/src/LewImage.vue.d.ts +48 -33
- package/dist/components/image/src/props.d.ts +25 -16
- package/dist/components/input/src/LewInput.vue.d.ts +67 -64
- package/dist/components/input/src/props.d.ts +33 -29
- package/dist/components/input-number/src/LewInputNumber.vue.d.ts +52 -40
- package/dist/components/input-number/src/props.d.ts +28 -20
- package/dist/components/input-table/src/props.d.ts +62 -15
- package/dist/components/input-tag/src/LewInputTag.vue.d.ts +4 -4
- package/dist/components/input-tag/src/props.d.ts +6 -4
- package/dist/components/magic-number/src/LewMagicNumber.vue.d.ts +3 -3
- package/dist/components/magic-number/src/props.d.ts +1 -1
- package/dist/components/mark/src/LewMark.vue.d.ts +20 -16
- package/dist/components/mark/src/props.d.ts +13 -9
- package/dist/components/menu/src/LewMenu.vue.d.ts +11 -7
- package/dist/components/menu/src/props.d.ts +7 -5
- package/dist/components/menu-tree/src/LewMenuTree.vue.d.ts +3 -3
- package/dist/components/menu-tree/src/props.d.ts +3 -3
- package/dist/components/modal/src/LewModal.vue.d.ts +10 -4
- package/dist/components/modal/src/props.d.ts +4 -1
- package/dist/components/pagination/src/LewPagination.vue.d.ts +7 -3
- package/dist/components/pagination/src/props.d.ts +10 -5
- package/dist/components/popok/src/LewPopok.vue.d.ts +18 -10
- package/dist/components/popok/src/props.d.ts +7 -3
- package/dist/components/popover/src/LewPopover.vue.d.ts +38 -34
- package/dist/components/popover/src/props.d.ts +20 -16
- package/dist/components/radio/src/LewRadio.vue.d.ts +33 -31
- package/dist/components/radio/src/LewRadioGroup.vue.d.ts +27 -23
- package/dist/components/radio/src/props.d.ts +32 -28
- package/dist/components/result/src/LewResult.vue.d.ts +9 -3
- package/dist/components/result/src/props.d.ts +7 -1
- package/dist/components/select/src/LewSelect.vue.d.ts +20 -20
- package/dist/components/select/src/props.d.ts +10 -8
- package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +29 -23
- package/dist/components/select-multiple/src/props.d.ts +13 -10
- package/dist/components/steps/src/LewSteps.vue.d.ts +10 -6
- package/dist/components/steps/src/props.d.ts +7 -4
- package/dist/components/switch/src/LewSwitch.vue.d.ts +12 -8
- package/dist/components/switch/src/props.d.ts +9 -3
- package/dist/components/table/src/LewTable.vue.d.ts +30 -23
- package/dist/components/table/src/props.d.ts +23 -11
- package/dist/components/tabs/src/LewTabs.vue.d.ts +27 -17
- package/dist/components/tabs/src/props.d.ts +16 -11
- package/dist/components/tag/src/LewTag.vue.d.ts +12 -6
- package/dist/components/tag/src/props.d.ts +6 -3
- package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +42 -30
- package/dist/components/text-trim/src/props.d.ts +21 -13
- package/dist/components/textarea/src/LewTextarea.vue.d.ts +37 -42
- package/dist/components/textarea/src/props.d.ts +17 -18
- package/dist/components/title/src/LewTitle.vue.d.ts +17 -11
- package/dist/components/title/src/props.d.ts +10 -10
- package/dist/components/tree/src/LewTree.vue.d.ts +11 -9
- package/dist/components/tree/src/props.d.ts +5 -4
- package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +100 -90
- package/dist/components/tree-select/src/props.d.ts +56 -44
- package/dist/components/upload/src/LewUpload.vue.d.ts +49 -39
- package/dist/components/upload/src/props.d.ts +26 -21
- package/dist/directives/backtop/src/index.d.ts +2 -2
- package/dist/directives/dialog/src/LewDialog.vue.d.ts +16 -12
- package/dist/directives/dialog/src/index.d.ts +5 -5
- package/dist/directives/dialog/src/props.d.ts +8 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +2732 -1333
- package/dist/index.umd.js +46 -46
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/input-table/src/LewInputTable.vue.d.ts +0 -87
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 许可证的开源软件。
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { AlertItem } from './props';
|
|
2
2
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<{
|
|
4
|
-
|
|
5
|
-
type:
|
|
6
|
-
default: never[];
|
|
4
|
+
options: {
|
|
5
|
+
type: PropType<AlertItem[]>;
|
|
6
|
+
default: () => never[];
|
|
7
7
|
description: string;
|
|
8
|
+
validator: (value: AlertItem[]) => boolean;
|
|
8
9
|
};
|
|
9
10
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
11
|
close: (...args: any[]) => void;
|
|
11
12
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
12
|
-
|
|
13
|
-
type:
|
|
14
|
-
default: never[];
|
|
13
|
+
options: {
|
|
14
|
+
type: PropType<AlertItem[]>;
|
|
15
|
+
default: () => never[];
|
|
15
16
|
description: string;
|
|
17
|
+
validator: (value: AlertItem[]) => boolean;
|
|
16
18
|
};
|
|
17
19
|
}>> & {
|
|
18
20
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
19
21
|
}, {
|
|
20
|
-
|
|
22
|
+
options: AlertItem[];
|
|
21
23
|
}, {}>;
|
|
22
24
|
export default _default;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { LewStatusColor } from '../../..';
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
type:
|
|
4
|
+
export interface AlertItem {
|
|
5
|
+
type: LewStatusColor;
|
|
5
6
|
title: string;
|
|
6
7
|
content?: string;
|
|
7
8
|
closeable?: boolean;
|
|
8
|
-
}
|
|
9
|
+
}
|
|
9
10
|
export declare const alertProps: {
|
|
10
|
-
|
|
11
|
+
options: {
|
|
11
12
|
type: PropType<AlertItem[]>;
|
|
12
|
-
default: never[];
|
|
13
|
+
default: () => never[];
|
|
13
14
|
description: string;
|
|
15
|
+
validator: (value: AlertItem[]) => boolean;
|
|
14
16
|
};
|
|
15
17
|
};
|
|
16
18
|
export type AlertProps = ExtractPropTypes<typeof alertProps>;
|
|
@@ -1,28 +1,15 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
|
|
3
|
-
type:
|
|
4
|
-
default: boolean;
|
|
5
|
-
description: string;
|
|
6
|
-
};
|
|
7
|
-
status: {
|
|
8
|
-
type: globalThis.PropType<"offline" | "online" | "processing" | "away" | "busy">;
|
|
9
|
-
default: string;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
statusPlacement: {
|
|
13
|
-
type: globalThis.PropType<"top-left" | "top-right" | "bottom-left" | "bottom-right">;
|
|
14
|
-
default: string;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
width: {
|
|
18
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
2
|
+
size: {
|
|
3
|
+
type: globalThis.PropType<string | number>;
|
|
19
4
|
default: number;
|
|
20
5
|
description: string;
|
|
6
|
+
validator(value: string | number): boolean;
|
|
21
7
|
};
|
|
22
|
-
|
|
23
|
-
type:
|
|
24
|
-
default:
|
|
8
|
+
shape: {
|
|
9
|
+
type: globalThis.PropType<"circle" | "square">;
|
|
10
|
+
default: string;
|
|
25
11
|
description: string;
|
|
12
|
+
validator(value: "circle" | "square"): boolean;
|
|
26
13
|
};
|
|
27
14
|
src: {
|
|
28
15
|
type: StringConstructor;
|
|
@@ -33,32 +20,32 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
33
20
|
type: StringConstructor;
|
|
34
21
|
default: string;
|
|
35
22
|
description: string;
|
|
36
|
-
|
|
37
|
-
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
38
|
-
round: {
|
|
39
|
-
type: BooleanConstructor;
|
|
40
|
-
default: boolean;
|
|
41
|
-
description: string;
|
|
23
|
+
validator(value: string): boolean;
|
|
42
24
|
};
|
|
43
25
|
status: {
|
|
44
|
-
type: globalThis.PropType<"offline" | "online" | "processing" | "away" | "busy">;
|
|
45
|
-
default:
|
|
26
|
+
type: globalThis.PropType<("offline" | "online" | "processing" | "away" | "busy") | undefined>;
|
|
27
|
+
default: undefined;
|
|
46
28
|
description: string;
|
|
29
|
+
validator(value: "offline" | "online" | "processing" | "away" | "busy"): boolean;
|
|
47
30
|
};
|
|
48
31
|
statusPlacement: {
|
|
49
32
|
type: globalThis.PropType<"top-left" | "top-right" | "bottom-left" | "bottom-right">;
|
|
50
33
|
default: string;
|
|
51
34
|
description: string;
|
|
35
|
+
validator(value: "top-left" | "top-right" | "bottom-left" | "bottom-right"): boolean;
|
|
52
36
|
};
|
|
53
|
-
|
|
54
|
-
|
|
37
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
38
|
+
size: {
|
|
39
|
+
type: globalThis.PropType<string | number>;
|
|
55
40
|
default: number;
|
|
56
41
|
description: string;
|
|
42
|
+
validator(value: string | number): boolean;
|
|
57
43
|
};
|
|
58
|
-
|
|
59
|
-
type:
|
|
60
|
-
default:
|
|
44
|
+
shape: {
|
|
45
|
+
type: globalThis.PropType<"circle" | "square">;
|
|
46
|
+
default: string;
|
|
61
47
|
description: string;
|
|
48
|
+
validator(value: "circle" | "square"): boolean;
|
|
62
49
|
};
|
|
63
50
|
src: {
|
|
64
51
|
type: StringConstructor;
|
|
@@ -69,14 +56,26 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
69
56
|
type: StringConstructor;
|
|
70
57
|
default: string;
|
|
71
58
|
description: string;
|
|
59
|
+
validator(value: string): boolean;
|
|
60
|
+
};
|
|
61
|
+
status: {
|
|
62
|
+
type: globalThis.PropType<("offline" | "online" | "processing" | "away" | "busy") | undefined>;
|
|
63
|
+
default: undefined;
|
|
64
|
+
description: string;
|
|
65
|
+
validator(value: "offline" | "online" | "processing" | "away" | "busy"): boolean;
|
|
66
|
+
};
|
|
67
|
+
statusPlacement: {
|
|
68
|
+
type: globalThis.PropType<"top-left" | "top-right" | "bottom-left" | "bottom-right">;
|
|
69
|
+
default: string;
|
|
70
|
+
description: string;
|
|
71
|
+
validator(value: "top-left" | "top-right" | "bottom-left" | "bottom-right"): boolean;
|
|
72
72
|
};
|
|
73
73
|
}>>, {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
status: "offline" | "online" | "processing" | "away" | "busy";
|
|
78
|
-
statusPlacement: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
74
|
+
size: string | number;
|
|
75
|
+
status: ("offline" | "online" | "processing" | "away" | "busy") | undefined;
|
|
76
|
+
shape: "circle" | "square";
|
|
79
77
|
src: string;
|
|
80
78
|
alt: string;
|
|
79
|
+
statusPlacement: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
81
80
|
}, {}>;
|
|
82
81
|
export default _default;
|
|
@@ -2,31 +2,20 @@ import { ExtractPropTypes, PropType } from 'vue';
|
|
|
2
2
|
|
|
3
3
|
type AvatarPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
4
4
|
type AvatarStatus = 'online' | 'processing' | 'away' | 'offline' | 'busy';
|
|
5
|
+
type AvatarShape = 'circle' | 'square';
|
|
6
|
+
type AvatarSize = number | string;
|
|
5
7
|
export declare const avatarProps: {
|
|
6
|
-
|
|
7
|
-
type:
|
|
8
|
-
default: boolean;
|
|
9
|
-
description: string;
|
|
10
|
-
};
|
|
11
|
-
status: {
|
|
12
|
-
type: PropType<AvatarStatus>;
|
|
13
|
-
default: string;
|
|
14
|
-
description: string;
|
|
15
|
-
};
|
|
16
|
-
statusPlacement: {
|
|
17
|
-
type: PropType<AvatarPlacement>;
|
|
18
|
-
default: string;
|
|
19
|
-
description: string;
|
|
20
|
-
};
|
|
21
|
-
width: {
|
|
22
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
size: {
|
|
9
|
+
type: PropType<AvatarSize>;
|
|
23
10
|
default: number;
|
|
24
11
|
description: string;
|
|
12
|
+
validator(value: AvatarSize): boolean;
|
|
25
13
|
};
|
|
26
|
-
|
|
27
|
-
type:
|
|
28
|
-
default:
|
|
14
|
+
shape: {
|
|
15
|
+
type: PropType<AvatarShape>;
|
|
16
|
+
default: string;
|
|
29
17
|
description: string;
|
|
18
|
+
validator(value: AvatarShape): boolean;
|
|
30
19
|
};
|
|
31
20
|
src: {
|
|
32
21
|
type: StringConstructor;
|
|
@@ -37,6 +26,19 @@ export declare const avatarProps: {
|
|
|
37
26
|
type: StringConstructor;
|
|
38
27
|
default: string;
|
|
39
28
|
description: string;
|
|
29
|
+
validator(value: string): boolean;
|
|
30
|
+
};
|
|
31
|
+
status: {
|
|
32
|
+
type: PropType<AvatarStatus | undefined>;
|
|
33
|
+
default: undefined;
|
|
34
|
+
description: string;
|
|
35
|
+
validator(value: AvatarStatus): boolean;
|
|
36
|
+
};
|
|
37
|
+
statusPlacement: {
|
|
38
|
+
type: PropType<AvatarPlacement>;
|
|
39
|
+
default: string;
|
|
40
|
+
description: string;
|
|
41
|
+
validator(value: AvatarPlacement): boolean;
|
|
40
42
|
};
|
|
41
43
|
};
|
|
42
44
|
export type AvatarProps = ExtractPropTypes<typeof avatarProps>;
|
|
@@ -5,21 +5,25 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
5
5
|
right: {
|
|
6
6
|
type: NumberConstructor;
|
|
7
7
|
default: number;
|
|
8
|
+
validator(value: number): boolean;
|
|
8
9
|
description: string;
|
|
9
10
|
};
|
|
10
11
|
bottom: {
|
|
11
12
|
type: NumberConstructor;
|
|
12
13
|
default: number;
|
|
14
|
+
validator(value: number): boolean;
|
|
13
15
|
description: string;
|
|
14
16
|
};
|
|
15
17
|
valveHeight: {
|
|
16
18
|
type: NumberConstructor;
|
|
17
19
|
default: number;
|
|
20
|
+
validator(value: number): boolean;
|
|
18
21
|
description: string;
|
|
19
22
|
};
|
|
20
23
|
target: {
|
|
21
24
|
type: StringConstructor;
|
|
22
25
|
default: string;
|
|
26
|
+
validator(value: string): boolean;
|
|
23
27
|
description: string;
|
|
24
28
|
};
|
|
25
29
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -28,29 +32,33 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
28
32
|
right: {
|
|
29
33
|
type: NumberConstructor;
|
|
30
34
|
default: number;
|
|
35
|
+
validator(value: number): boolean;
|
|
31
36
|
description: string;
|
|
32
37
|
};
|
|
33
38
|
bottom: {
|
|
34
39
|
type: NumberConstructor;
|
|
35
40
|
default: number;
|
|
41
|
+
validator(value: number): boolean;
|
|
36
42
|
description: string;
|
|
37
43
|
};
|
|
38
44
|
valveHeight: {
|
|
39
45
|
type: NumberConstructor;
|
|
40
46
|
default: number;
|
|
47
|
+
validator(value: number): boolean;
|
|
41
48
|
description: string;
|
|
42
49
|
};
|
|
43
50
|
target: {
|
|
44
51
|
type: StringConstructor;
|
|
45
52
|
default: string;
|
|
53
|
+
validator(value: string): boolean;
|
|
46
54
|
description: string;
|
|
47
55
|
};
|
|
48
56
|
}>> & {
|
|
49
57
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
50
58
|
}, {
|
|
51
|
-
target: string;
|
|
52
59
|
right: number;
|
|
53
60
|
bottom: number;
|
|
61
|
+
target: string;
|
|
54
62
|
valveHeight: number;
|
|
55
63
|
}, {}>;
|
|
56
64
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -4,21 +4,25 @@ export declare const backTopProps: {
|
|
|
4
4
|
right: {
|
|
5
5
|
type: NumberConstructor;
|
|
6
6
|
default: number;
|
|
7
|
+
validator(value: number): boolean;
|
|
7
8
|
description: string;
|
|
8
9
|
};
|
|
9
10
|
bottom: {
|
|
10
11
|
type: NumberConstructor;
|
|
11
12
|
default: number;
|
|
13
|
+
validator(value: number): boolean;
|
|
12
14
|
description: string;
|
|
13
15
|
};
|
|
14
16
|
valveHeight: {
|
|
15
17
|
type: NumberConstructor;
|
|
16
18
|
default: number;
|
|
19
|
+
validator(value: number): boolean;
|
|
17
20
|
description: string;
|
|
18
21
|
};
|
|
19
22
|
target: {
|
|
20
23
|
type: StringConstructor;
|
|
21
24
|
default: string;
|
|
25
|
+
validator(value: string): boolean;
|
|
22
26
|
description: string;
|
|
23
27
|
};
|
|
24
28
|
};
|
|
@@ -2,30 +2,34 @@ declare function __VLS_template(): {
|
|
|
2
2
|
default?(_: {}): any;
|
|
3
3
|
};
|
|
4
4
|
declare const __VLS_component: import('vue').DefineComponent<{
|
|
5
|
-
|
|
5
|
+
color: {
|
|
6
6
|
type: StringConstructor;
|
|
7
7
|
default: string;
|
|
8
8
|
description: string;
|
|
9
|
+
validator: (value: string) => boolean;
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
-
type:
|
|
11
|
+
value: {
|
|
12
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
12
13
|
default: string;
|
|
13
14
|
description: string;
|
|
15
|
+
validator: (value: string | number) => boolean;
|
|
14
16
|
};
|
|
15
17
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
16
|
-
|
|
18
|
+
color: {
|
|
17
19
|
type: StringConstructor;
|
|
18
20
|
default: string;
|
|
19
21
|
description: string;
|
|
22
|
+
validator: (value: string) => boolean;
|
|
20
23
|
};
|
|
21
|
-
|
|
22
|
-
type:
|
|
24
|
+
value: {
|
|
25
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
23
26
|
default: string;
|
|
24
27
|
description: string;
|
|
28
|
+
validator: (value: string | number) => boolean;
|
|
25
29
|
};
|
|
26
30
|
}>>, {
|
|
27
|
-
value: string;
|
|
28
|
-
color:
|
|
31
|
+
value: string | number;
|
|
32
|
+
color: string;
|
|
29
33
|
}, {}>;
|
|
30
34
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
31
35
|
export default _default;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { ExtractPropTypes
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
|
|
3
|
-
export 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' | 'black' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray' | 'brown' | 'success' | 'normal' | 'warning' | 'error' | 'info' | 'primary';
|
|
4
4
|
export declare const badgeProps: {
|
|
5
|
-
|
|
5
|
+
color: {
|
|
6
6
|
type: StringConstructor;
|
|
7
7
|
default: string;
|
|
8
8
|
description: string;
|
|
9
|
+
validator: (value: string) => boolean;
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
-
type:
|
|
11
|
+
value: {
|
|
12
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
12
13
|
default: string;
|
|
13
14
|
description: string;
|
|
15
|
+
validator: (value: string | number) => boolean;
|
|
14
16
|
};
|
|
15
17
|
};
|
|
16
18
|
export type BadgeProps = ExtractPropTypes<typeof badgeProps>;
|
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
2
|
options: {
|
|
3
|
-
type: globalThis.PropType<import('./props').
|
|
4
|
-
default: never[];
|
|
3
|
+
type: globalThis.PropType<import('./props').BreadcrumbOption[]>;
|
|
4
|
+
default: () => never[];
|
|
5
5
|
description: string;
|
|
6
|
+
validator(value: unknown): boolean;
|
|
6
7
|
};
|
|
7
8
|
iconType: {
|
|
8
|
-
type:
|
|
9
|
+
type: StringConstructor;
|
|
9
10
|
default: string;
|
|
10
11
|
description: string;
|
|
12
|
+
validator(value: string): boolean;
|
|
11
13
|
};
|
|
12
14
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
-
|
|
15
|
+
change: (...args: any[]) => void;
|
|
14
16
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
15
17
|
options: {
|
|
16
|
-
type: globalThis.PropType<import('./props').
|
|
17
|
-
default: never[];
|
|
18
|
+
type: globalThis.PropType<import('./props').BreadcrumbOption[]>;
|
|
19
|
+
default: () => never[];
|
|
18
20
|
description: string;
|
|
21
|
+
validator(value: unknown): boolean;
|
|
19
22
|
};
|
|
20
23
|
iconType: {
|
|
21
|
-
type:
|
|
24
|
+
type: StringConstructor;
|
|
22
25
|
default: string;
|
|
23
26
|
description: string;
|
|
27
|
+
validator(value: string): boolean;
|
|
24
28
|
};
|
|
25
29
|
}>> & {
|
|
26
|
-
|
|
30
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
27
31
|
}, {
|
|
28
|
-
options: import('./props').
|
|
29
|
-
iconType:
|
|
32
|
+
options: import('./props').BreadcrumbOption[];
|
|
33
|
+
iconType: string;
|
|
30
34
|
}, {}>;
|
|
31
35
|
export default _default;
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export interface BreadcrumbOption {
|
|
4
4
|
label: string;
|
|
5
|
-
value
|
|
6
|
-
active
|
|
7
|
-
}
|
|
5
|
+
value?: string | number;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
}
|
|
8
8
|
export type BreadcrumbIconType = 'shoulder' | 'sprit';
|
|
9
9
|
export declare const breadcrumbProps: {
|
|
10
10
|
options: {
|
|
11
|
-
type: PropType<
|
|
12
|
-
default: never[];
|
|
11
|
+
type: PropType<BreadcrumbOption[]>;
|
|
12
|
+
default: () => never[];
|
|
13
13
|
description: string;
|
|
14
|
+
validator(value: unknown): boolean;
|
|
14
15
|
};
|
|
15
16
|
iconType: {
|
|
16
|
-
type:
|
|
17
|
+
type: StringConstructor;
|
|
17
18
|
default: string;
|
|
18
19
|
description: string;
|
|
20
|
+
validator(value: string): boolean;
|
|
19
21
|
};
|
|
20
22
|
};
|
|
21
23
|
export type BreadcrumbProps = ExtractPropTypes<typeof breadcrumbProps>;
|