lew-ui 2.4.9 → 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/button/src/LewButton.vue.d.ts +1 -1
- 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 +2 -2
- package/dist/components/form/src/LewForm.vue.d.ts +11 -0
- package/dist/components/form/src/LewFormItem.vue.d.ts +3 -3
- package/dist/components/form/src/props.d.ts +6 -1
- package/dist/components/image/src/LewImage.vue.d.ts +1 -1
- package/dist/components/modal/src/LewModal.vue.d.ts +2 -2
- package/dist/components/popok/src/LewPopok.vue.d.ts +2 -2
- 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/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 +18 -5
- package/dist/components/upload/src/props.d.ts +11 -3
- package/dist/confetti.browser.min.js +456 -456
- package/dist/docs/views/form-engine/schema/compoments-menus.d.ts +33 -4
- package/dist/docs/views/form-engine/schema/components/upload.d.ts +18 -0
- package/dist/index.mjs +245 -153
- package/dist/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/utils/Icon.vue.d.ts +3 -3
- package/package.json +3 -3
|
@@ -48,11 +48,17 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
48
48
|
};
|
|
49
49
|
uploadHelper: {
|
|
50
50
|
type: FunctionConstructor;
|
|
51
|
-
default:
|
|
51
|
+
default: undefined;
|
|
52
52
|
description: string;
|
|
53
53
|
validator: (value: Function) => boolean;
|
|
54
54
|
};
|
|
55
|
-
|
|
55
|
+
uploadHelperId: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
hidden: boolean;
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
viewMode: {
|
|
56
62
|
type: StringConstructor;
|
|
57
63
|
default: string;
|
|
58
64
|
description: string;
|
|
@@ -108,11 +114,17 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
108
114
|
};
|
|
109
115
|
uploadHelper: {
|
|
110
116
|
type: FunctionConstructor;
|
|
111
|
-
default:
|
|
117
|
+
default: undefined;
|
|
112
118
|
description: string;
|
|
113
119
|
validator: (value: Function) => boolean;
|
|
114
120
|
};
|
|
115
|
-
|
|
121
|
+
uploadHelperId: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: string;
|
|
124
|
+
hidden: boolean;
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
127
|
+
viewMode: {
|
|
116
128
|
type: StringConstructor;
|
|
117
129
|
default: string;
|
|
118
130
|
description: string;
|
|
@@ -130,6 +142,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
130
142
|
limit: number;
|
|
131
143
|
maxFileSize: number;
|
|
132
144
|
uploadHelper: Function;
|
|
133
|
-
|
|
145
|
+
uploadHelperId: string;
|
|
146
|
+
viewMode: string;
|
|
134
147
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
135
148
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { LewSize } from '../../..';
|
|
3
3
|
|
|
4
|
-
export type UploadStatus = 'success' | 'fail' | 'uploading' | '
|
|
4
|
+
export type UploadStatus = 'success' | 'fail' | 'uploading' | 'wrong_config' | 'complete' | 'wrong_type' | 'wrong_size';
|
|
5
5
|
export type UploadFileItem = {
|
|
6
6
|
id: string;
|
|
7
7
|
name?: string;
|
|
@@ -61,11 +61,17 @@ export declare const uploadProps: {
|
|
|
61
61
|
};
|
|
62
62
|
uploadHelper: {
|
|
63
63
|
type: FunctionConstructor;
|
|
64
|
-
default:
|
|
64
|
+
default: undefined;
|
|
65
65
|
description: string;
|
|
66
66
|
validator: (value: Function) => boolean;
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
uploadHelperId: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: string;
|
|
71
|
+
hidden: boolean;
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
viewMode: {
|
|
69
75
|
type: StringConstructor;
|
|
70
76
|
default: string;
|
|
71
77
|
description: string;
|
|
@@ -88,4 +94,6 @@ export declare const uploadByCardProps: {
|
|
|
88
94
|
validator: (value: LewSize) => boolean;
|
|
89
95
|
};
|
|
90
96
|
};
|
|
97
|
+
export declare const statusMap: Record<UploadStatus, string>;
|
|
98
|
+
export declare const statusColorMap: Record<UploadStatus, string>;
|
|
91
99
|
export type UploadProps = ExtractPropTypes<typeof uploadProps>;
|