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.
Files changed (33) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +46 -46
  3. package/README.zh-CN.md +48 -48
  4. package/dist/components/button/src/LewButton.vue.d.ts +1 -1
  5. package/dist/components/cascader/src/LewCascader.vue.d.ts +15 -2
  6. package/dist/components/cascader/src/props.d.ts +7 -1
  7. package/dist/components/drawer/src/LewDrawer.vue.d.ts +2 -2
  8. package/dist/components/form/src/LewForm.vue.d.ts +11 -0
  9. package/dist/components/form/src/LewFormItem.vue.d.ts +3 -3
  10. package/dist/components/form/src/props.d.ts +6 -1
  11. package/dist/components/image/src/LewImage.vue.d.ts +1 -1
  12. package/dist/components/modal/src/LewModal.vue.d.ts +2 -2
  13. package/dist/components/popok/src/LewPopok.vue.d.ts +2 -2
  14. package/dist/components/popover/src/LewPopover.vue.d.ts +1 -1
  15. package/dist/components/select/src/LewSelect.vue.d.ts +15 -2
  16. package/dist/components/select/src/props.d.ts +7 -1
  17. package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +13 -0
  18. package/dist/components/select-multiple/src/props.d.ts +6 -0
  19. package/dist/components/switch/src/LewSwitch.vue.d.ts +1 -1
  20. package/dist/components/tree/src/LewTree.vue.d.ts +3 -3
  21. package/dist/components/tree/src/props.d.ts +1 -1
  22. package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +3 -3
  23. package/dist/components/tree-select/src/props.d.ts +1 -1
  24. package/dist/components/upload/src/LewUpload.vue.d.ts +18 -5
  25. package/dist/components/upload/src/props.d.ts +11 -3
  26. package/dist/confetti.browser.min.js +456 -456
  27. package/dist/docs/views/form-engine/schema/compoments-menus.d.ts +33 -4
  28. package/dist/docs/views/form-engine/schema/components/upload.d.ts +18 -0
  29. package/dist/index.mjs +245 -153
  30. package/dist/index.umd.js +2 -2
  31. package/dist/style.css +1 -1
  32. package/dist/utils/Icon.vue.d.ts +3 -3
  33. package/package.json +3 -3
@@ -145,7 +145,7 @@ export declare const treeSelectProps: {
145
145
  default: undefined;
146
146
  description: string;
147
147
  };
148
- onload: {
148
+ loadMethod: {
149
149
  type: PropType<() => void>;
150
150
  default: undefined;
151
151
  description: string;
@@ -48,11 +48,17 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
48
48
  };
49
49
  uploadHelper: {
50
50
  type: FunctionConstructor;
51
- default: () => Promise<void>;
51
+ default: undefined;
52
52
  description: string;
53
53
  validator: (value: Function) => boolean;
54
54
  };
55
- listType: {
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: () => Promise<void>;
117
+ default: undefined;
112
118
  description: string;
113
119
  validator: (value: Function) => boolean;
114
120
  };
115
- listType: {
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
- listType: string;
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' | 'pending' | 'complete' | 'wrong_type' | 'wrong_size';
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: () => Promise<void>;
64
+ default: undefined;
65
65
  description: string;
66
66
  validator: (value: Function) => boolean;
67
67
  };
68
- listType: {
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>;