lew-ui 2.7.3 → 2.7.4

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 (147) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +1 -3
  3. package/dist/components/action-box/src/LewActionBox.vue.d.ts +2 -2
  4. package/dist/components/action-box/src/props.d.ts +1 -2
  5. package/dist/components/alert/src/LewAlert.vue.d.ts +11 -5
  6. package/dist/components/alert/src/props.d.ts +1 -2
  7. package/dist/components/avatar/src/LewAvatar.vue.d.ts +1 -1
  8. package/dist/components/avatar/src/props.d.ts +1 -2
  9. package/dist/components/back-top/src/LewBackTop.vue.d.ts +9 -3
  10. package/dist/components/back-top/src/props.d.ts +0 -1
  11. package/dist/components/badge/src/LewBadge.vue.d.ts +10 -4
  12. package/dist/components/badge/src/props.d.ts +0 -1
  13. package/dist/components/breadcrumb/src/LewBreadcrumb.vue.d.ts +1 -1
  14. package/dist/components/breadcrumb/src/props.d.ts +0 -1
  15. package/dist/components/button/src/LewButton.vue.d.ts +17 -6
  16. package/dist/components/button/src/props.d.ts +1 -2
  17. package/dist/components/cascader/src/LewCascader.vue.d.ts +420 -13
  18. package/dist/components/cascader/src/props.d.ts +3 -4
  19. package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +11 -5
  20. package/dist/components/checkbox/src/LewCheckboxGroup.vue.d.ts +13 -12
  21. package/dist/components/checkbox/src/props.d.ts +3 -4
  22. package/dist/components/collapse/src/LewCollapse.vue.d.ts +21 -7
  23. package/dist/components/collapse/src/LewCollapseItem.vue.d.ts +28 -14
  24. package/dist/components/collapse/src/props.d.ts +0 -1
  25. package/dist/components/color-picker/src/LewColorPicker.vue.d.ts +13 -5
  26. package/dist/components/color-picker/src/props.d.ts +0 -1
  27. package/dist/components/date-picker/src/LewDate.vue.d.ts +11 -4
  28. package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +254 -7
  29. package/dist/components/date-picker/src/date.d.ts +3 -3
  30. package/dist/components/date-picker/src/props.d.ts +3 -4
  31. package/dist/components/date-range-picker/src/LewDateRange.vue.d.ts +19 -8
  32. package/dist/components/date-range-picker/src/LewDateRangePicker.vue.d.ts +296 -8
  33. package/dist/components/date-range-picker/src/props.d.ts +1 -2
  34. package/dist/components/desc/src/LewDesc.vue.d.ts +48 -3
  35. package/dist/components/desc/src/LewDescItem.vue.d.ts +5 -4
  36. package/dist/components/desc/src/props.d.ts +3 -4
  37. package/dist/components/drawer/src/LewDrawer.vue.d.ts +25 -9
  38. package/dist/components/drawer/src/props.d.ts +0 -1
  39. package/dist/components/dropdown/src/LewDropdown.vue.d.ts +407 -7
  40. package/dist/components/dropdown/src/props.d.ts +1 -2
  41. package/dist/components/empty/src/LewEmpty.vue.d.ts +8 -8
  42. package/dist/components/empty/src/props.d.ts +0 -1
  43. package/dist/components/expand/src/LewExpand.vue.d.ts +13 -3
  44. package/dist/components/expand/src/props.d.ts +0 -1
  45. package/dist/components/flex/src/LewFlex.vue.d.ts +10 -4
  46. package/dist/components/flex/src/props.d.ts +0 -1
  47. package/dist/components/form/src/LewForm.vue.d.ts +60 -11
  48. package/dist/components/form/src/LewFormItem.vue.d.ts +20 -9
  49. package/dist/components/form/src/LewGetLabelWidth.vue.d.ts +5 -3
  50. package/dist/components/form/src/RequiredIcon.vue.d.ts +1 -1
  51. package/dist/components/form/src/props.d.ts +2 -3
  52. package/dist/components/image/src/LewImage.vue.d.ts +10 -4
  53. package/dist/components/image/src/props.d.ts +0 -1
  54. package/dist/components/index.d.ts +35 -35
  55. package/dist/components/input/src/LewInput.vue.d.ts +33 -16
  56. package/dist/components/input/src/props.d.ts +1 -2
  57. package/dist/components/input-number/src/LewInputNumber.vue.d.ts +18 -12
  58. package/dist/components/input-number/src/props.d.ts +1 -2
  59. package/dist/components/input-table/src/FormModal.vue.d.ts +220 -5
  60. package/dist/components/input-table/src/LewInputTable.vue.d.ts +563 -12
  61. package/dist/components/input-table/src/props.d.ts +3 -4
  62. package/dist/components/input-tag/src/LewInputTag.vue.d.ts +359 -5
  63. package/dist/components/input-tag/src/props.d.ts +0 -1
  64. package/dist/components/input-tree/src/LewInputTree.vue.d.ts +38 -0
  65. package/dist/components/mark/src/LewMark.vue.d.ts +19 -13
  66. package/dist/components/mark/src/props.d.ts +0 -1
  67. package/dist/components/menu/src/LewMenu.vue.d.ts +9 -4
  68. package/dist/components/menu/src/props.d.ts +3 -4
  69. package/dist/components/menu-tree/src/LewMenuTree.vue.d.ts +26 -9
  70. package/dist/components/menu-tree/src/LewMenuTreeItem.vue.d.ts +28 -22
  71. package/dist/components/menu-tree/src/props.d.ts +3 -4
  72. package/dist/components/modal/src/LewModal.vue.d.ts +27 -11
  73. package/dist/components/modal/src/props.d.ts +0 -1
  74. package/dist/components/pagination/src/LewPagination.vue.d.ts +30 -10
  75. package/dist/components/pagination/src/props.d.ts +1 -2
  76. package/dist/components/popok/src/LewPopok.vue.d.ts +853 -6
  77. package/dist/components/popok/src/props.d.ts +0 -1
  78. package/dist/components/popover/src/LewPopover.vue.d.ts +29 -14
  79. package/dist/components/popover/src/props.d.ts +0 -1
  80. package/dist/components/radio/src/LewRadio.vue.d.ts +3 -3
  81. package/dist/components/radio/src/LewRadioGroup.vue.d.ts +11 -6
  82. package/dist/components/radio/src/props.d.ts +1 -2
  83. package/dist/components/rate/src/LewRate.vue.d.ts +12 -4
  84. package/dist/components/rate/src/props.d.ts +1 -2
  85. package/dist/components/select/src/LewSelect.vue.d.ts +1004 -19
  86. package/dist/components/select/src/props.d.ts +5 -6
  87. package/dist/components/select/src/util.d.ts +3 -4
  88. package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +1395 -20
  89. package/dist/components/select-multiple/src/props.d.ts +7 -8
  90. package/dist/components/slider/src/LewSlider.vue.d.ts +14 -5
  91. package/dist/components/slider/src/props.d.ts +3 -4
  92. package/dist/components/slider-range/src/LewSliderRange.vue.d.ts +14 -4
  93. package/dist/components/slider-range/src/props.d.ts +3 -4
  94. package/dist/components/steps/src/LewSteps.vue.d.ts +14 -6
  95. package/dist/components/steps/src/props.d.ts +2 -3
  96. package/dist/components/switch/src/LewSwitch.vue.d.ts +9 -3
  97. package/dist/components/switch/src/props.d.ts +1 -2
  98. package/dist/components/table/src/LewTable.vue.d.ts +53 -25
  99. package/dist/components/table/src/props.d.ts +1 -2
  100. package/dist/components/tabs/src/LewTabs.vue.d.ts +15 -12
  101. package/dist/components/tabs/src/props.d.ts +2 -3
  102. package/dist/components/tag/src/LewTag.vue.d.ts +11 -5
  103. package/dist/components/tag/src/props.d.ts +1 -2
  104. package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +18 -5
  105. package/dist/components/text-trim/src/props.d.ts +0 -1
  106. package/dist/components/text-trim/src/text-trim.d.ts +3 -3
  107. package/dist/components/textarea/src/LewTextarea.vue.d.ts +19 -9
  108. package/dist/components/textarea/src/props.d.ts +1 -2
  109. package/dist/components/title/src/LewTitle.vue.d.ts +9 -3
  110. package/dist/components/title/src/props.d.ts +0 -1
  111. package/dist/components/tree/src/LewTree.vue.d.ts +32 -13
  112. package/dist/components/tree/src/LewTreeItem.vue.d.ts +21 -15
  113. package/dist/components/tree/src/props.d.ts +2 -3
  114. package/dist/components/tree/src/transformTree.d.ts +6 -17
  115. package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +1027 -21
  116. package/dist/components/tree-select/src/props.d.ts +5 -6
  117. package/dist/components/upload/src/LewUpload.vue.d.ts +169 -8
  118. package/dist/components/upload/src/LewUploadByCard.vue.d.ts +9 -4
  119. package/dist/components/upload/src/LewUploadByList.vue.d.ts +9 -4
  120. package/dist/components/upload/src/props.d.ts +4 -5
  121. package/dist/constants/index.d.ts +0 -1
  122. package/dist/directives/backtop/src/index.d.ts +0 -1
  123. package/dist/directives/context-menu/index.d.ts +1 -1
  124. package/dist/directives/context-menu/src/LewContextMenu.vue.d.ts +2 -3
  125. package/dist/directives/context-menu/src/index.d.ts +28 -29
  126. package/dist/directives/hover-menu/src/index.d.ts +15 -2
  127. package/dist/directives/index.d.ts +2 -2
  128. package/dist/directives/loading/src/index.d.ts +0 -1
  129. package/dist/directives/tooltip/src/index.d.ts +0 -1
  130. package/dist/index.css +1 -0
  131. package/dist/index.d.ts +3 -3
  132. package/dist/{index.mjs → index.js} +23976 -23831
  133. package/dist/index.umd.cjs +40 -0
  134. package/dist/locals/index.d.ts +9 -10
  135. package/dist/methods/dialog/src/LewDialog.vue.d.ts +464 -6
  136. package/dist/methods/dialog/src/index.d.ts +4 -4
  137. package/dist/methods/dialog/src/props.d.ts +0 -1
  138. package/dist/methods/index.d.ts +1 -1
  139. package/dist/methods/message/src/index.d.ts +0 -1
  140. package/dist/methods/notification/src/components/NotificationContainer.vue.d.ts +5 -3
  141. package/dist/methods/notification/src/components/NotificationItem.vue.d.ts +6 -21
  142. package/dist/methods/notification/src/index.d.ts +4 -4
  143. package/dist/utils/index.d.ts +27 -115
  144. package/package.json +46 -68
  145. package/README.zh-CN.md +0 -48
  146. package/dist/index.umd.js +0 -46
  147. package/dist/style.css +0 -1
@@ -1,8 +1,7 @@
1
+ import { LewSize } from '../../..';
1
2
  import { PropType } from 'vue';
2
3
  import { TreeDataSource } from '../../tree';
3
- import { LewSize } from '../../..';
4
-
5
- export type TreeSelectOptions = {
4
+ export interface TreeSelectOptions {
6
5
  label: string;
7
6
  value: string | number;
8
7
  labelPaths?: string[];
@@ -15,7 +14,7 @@ export type TreeSelectOptions = {
15
14
  parentKeysPaths?: string[];
16
15
  parentChildren?: TreeSelectOptions[];
17
16
  children?: TreeSelectOptions[];
18
- };
17
+ }
19
18
  export type TreeSelectTriggerType = 'click' | 'hover';
20
19
  export type TreeSelectAlign = 'left' | 'center' | 'right';
21
20
  export declare const treeSelectModel: {
@@ -25,10 +24,10 @@ export declare const treeSelectModel: {
25
24
  description: string;
26
25
  };
27
26
  };
28
- export type TreeSelectSearchMethodParams = {
27
+ export interface TreeSelectSearchMethodParams {
29
28
  item?: TreeDataSource;
30
29
  keyword?: string;
31
- };
30
+ }
32
31
  export declare const treeSelectProps: {
33
32
  dataSource: {
34
33
  type: PropType<TreeDataSource[]>;
@@ -1,7 +1,5 @@
1
1
  import { UploadFileItem } from './props';
2
-
3
2
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
4
- modelValue: import('vue').PropType<UploadFileItem[]>;
5
3
  accept: {
6
4
  type: StringConstructor;
7
5
  default: string;
@@ -55,7 +53,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
55
53
  type: FunctionConstructor;
56
54
  default: undefined;
57
55
  description: string;
58
- validator: (value: Function) => boolean;
56
+ validator: (value: any) => boolean;
59
57
  };
60
58
  uploadHelperId: {
61
59
  type: StringConstructor;
@@ -69,11 +67,14 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
69
67
  description: string;
70
68
  validator: (value: string) => boolean;
71
69
  };
70
+ modelValue: {
71
+ type: globalThis.PropType<UploadFileItem[]>;
72
+ };
72
73
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
73
74
  change: (...args: any[]) => void;
74
75
  delete: (...args: any[]) => void;
76
+ "update:modelValue": (value: UploadFileItem[]) => void;
75
77
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
76
- modelValue: import('vue').PropType<UploadFileItem[]>;
77
78
  accept: {
78
79
  type: StringConstructor;
79
80
  default: string;
@@ -127,7 +128,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
127
128
  type: FunctionConstructor;
128
129
  default: undefined;
129
130
  description: string;
130
- validator: (value: Function) => boolean;
131
+ validator: (value: any) => boolean;
131
132
  };
132
133
  uploadHelperId: {
133
134
  type: StringConstructor;
@@ -141,21 +142,181 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
141
142
  description: string;
142
143
  validator: (value: string) => boolean;
143
144
  };
145
+ modelValue: {
146
+ type: globalThis.PropType<UploadFileItem[]>;
147
+ };
144
148
  }>> & Readonly<{
145
149
  onChange?: ((...args: any[]) => any) | undefined;
146
150
  onDelete?: ((...args: any[]) => any) | undefined;
151
+ "onUpdate:modelValue"?: ((value: UploadFileItem[]) => any) | undefined;
147
152
  }>, {
148
153
  size: import('../../..').LewSize;
149
154
  tips: string;
150
155
  disabled: boolean;
151
- readonly: boolean;
152
156
  multiple: boolean;
153
- accept: string;
157
+ readonly: boolean;
154
158
  immediate: boolean;
159
+ accept: string;
155
160
  limit: number;
156
161
  maxFileSize: number;
157
162
  uploadHelper: Function;
158
163
  uploadHelperId: string;
159
164
  viewMode: string;
160
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
165
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
166
+ dropRef: ({
167
+ $: import('vue').ComponentInternalInstance;
168
+ $data: {};
169
+ $props: Partial<{
170
+ direction: import('../../..').FlexDirection;
171
+ x: import('../../..').FlexXAlignment;
172
+ width: string | number;
173
+ y: import('../../..').FlexYAlignment;
174
+ mode: import('../../..').FlexMode;
175
+ wrap: boolean;
176
+ gap: string | number;
177
+ }> & Omit<{
178
+ readonly direction: import('../../..').FlexDirection;
179
+ readonly x: import('../../..').FlexXAlignment;
180
+ readonly width: string | number;
181
+ readonly y: import('../../..').FlexYAlignment;
182
+ readonly mode: import('../../..').FlexMode;
183
+ readonly wrap: boolean;
184
+ readonly gap: string | number;
185
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "direction" | "x" | "width" | "y" | "mode" | "wrap" | "gap">;
186
+ $attrs: {
187
+ [x: string]: unknown;
188
+ };
189
+ $refs: {
190
+ [x: string]: unknown;
191
+ };
192
+ $slots: Readonly<{
193
+ [name: string]: import('vue').Slot<any> | undefined;
194
+ }>;
195
+ $root: ComponentPublicInstance | null;
196
+ $parent: ComponentPublicInstance | null;
197
+ $host: Element | null;
198
+ $emit: (event: string, ...args: any[]) => void;
199
+ $el: HTMLDivElement;
200
+ $options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
201
+ direction: {
202
+ type: PropType<import('../../..').FlexDirection>;
203
+ default: string;
204
+ typeDesc: string;
205
+ validator(value: import('../../..').FlexDirection): boolean;
206
+ };
207
+ x: {
208
+ type: PropType<import('../../..').FlexXAlignment>;
209
+ default: string;
210
+ typeDesc: string;
211
+ validator(value: import('../../..').FlexXAlignment): boolean;
212
+ };
213
+ y: {
214
+ type: PropType<import('../../..').FlexYAlignment>;
215
+ default: string;
216
+ typeDesc: string;
217
+ validator(value: import('../../..').FlexYAlignment): boolean;
218
+ };
219
+ mode: {
220
+ type: PropType<import('../../..').FlexMode>;
221
+ default: string;
222
+ typeDesc: string;
223
+ validator(value: import('../../..').FlexMode): boolean;
224
+ };
225
+ wrap: {
226
+ type: BooleanConstructor;
227
+ default: boolean;
228
+ };
229
+ gap: {
230
+ type: (StringConstructor | NumberConstructor)[];
231
+ default: number;
232
+ validator(value: string | number): boolean;
233
+ };
234
+ width: {
235
+ type: (StringConstructor | NumberConstructor)[];
236
+ default: string;
237
+ validator(value: string | number): boolean;
238
+ };
239
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
240
+ direction: import('../../..').FlexDirection;
241
+ x: import('../../..').FlexXAlignment;
242
+ width: string | number;
243
+ y: import('../../..').FlexYAlignment;
244
+ mode: import('../../..').FlexMode;
245
+ wrap: boolean;
246
+ gap: string | number;
247
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
248
+ beforeCreate?: (() => void) | (() => void)[];
249
+ created?: (() => void) | (() => void)[];
250
+ beforeMount?: (() => void) | (() => void)[];
251
+ mounted?: (() => void) | (() => void)[];
252
+ beforeUpdate?: (() => void) | (() => void)[];
253
+ updated?: (() => void) | (() => void)[];
254
+ activated?: (() => void) | (() => void)[];
255
+ deactivated?: (() => void) | (() => void)[];
256
+ beforeDestroy?: (() => void) | (() => void)[];
257
+ beforeUnmount?: (() => void) | (() => void)[];
258
+ destroyed?: (() => void) | (() => void)[];
259
+ unmounted?: (() => void) | (() => void)[];
260
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
261
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
262
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
263
+ };
264
+ $forceUpdate: () => void;
265
+ $nextTick: typeof import('vue').nextTick;
266
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
267
+ } & Readonly<{
268
+ direction: import('../../..').FlexDirection;
269
+ x: import('../../..').FlexXAlignment;
270
+ width: string | number;
271
+ y: import('../../..').FlexYAlignment;
272
+ mode: import('../../..').FlexMode;
273
+ wrap: boolean;
274
+ gap: string | number;
275
+ }> & Omit<Readonly<globalThis.ExtractPropTypes<{
276
+ direction: {
277
+ type: PropType<import('../../..').FlexDirection>;
278
+ default: string;
279
+ typeDesc: string;
280
+ validator(value: import('../../..').FlexDirection): boolean;
281
+ };
282
+ x: {
283
+ type: PropType<import('../../..').FlexXAlignment>;
284
+ default: string;
285
+ typeDesc: string;
286
+ validator(value: import('../../..').FlexXAlignment): boolean;
287
+ };
288
+ y: {
289
+ type: PropType<import('../../..').FlexYAlignment>;
290
+ default: string;
291
+ typeDesc: string;
292
+ validator(value: import('../../..').FlexYAlignment): boolean;
293
+ };
294
+ mode: {
295
+ type: PropType<import('../../..').FlexMode>;
296
+ default: string;
297
+ typeDesc: string;
298
+ validator(value: import('../../..').FlexMode): boolean;
299
+ };
300
+ wrap: {
301
+ type: BooleanConstructor;
302
+ default: boolean;
303
+ };
304
+ gap: {
305
+ type: (StringConstructor | NumberConstructor)[];
306
+ default: number;
307
+ validator(value: string | number): boolean;
308
+ };
309
+ width: {
310
+ type: (StringConstructor | NumberConstructor)[];
311
+ default: string;
312
+ validator(value: string | number): boolean;
313
+ };
314
+ }>> & Readonly<{}>, "direction" | "x" | "width" | "y" | "mode" | "wrap" | "gap"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
315
+ $slots: {
316
+ default?(_: {}): any;
317
+ };
318
+ }) | null;
319
+ inputClickRef: HTMLInputElement;
320
+ inputPasteRef: HTMLInputElement;
321
+ }, HTMLDivElement>;
161
322
  export default _default;
@@ -1,28 +1,33 @@
1
1
  import { UploadFileItem } from './props';
2
-
3
2
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
4
- modelValue: import('vue').PropType<UploadFileItem[]>;
5
3
  size: {
6
4
  type: PropType<import('../../..').LewSize>;
7
5
  default: string;
8
6
  description: string;
9
7
  validator: (value: import('../../..').LewSize) => boolean;
10
8
  };
9
+ modelValue: {
10
+ type: globalThis.PropType<UploadFileItem[]>;
11
+ };
11
12
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
13
  reUpload: (...args: any[]) => void;
13
14
  deleteFile: (...args: any[]) => void;
15
+ "update:modelValue": (value: UploadFileItem[]) => void;
14
16
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
15
- modelValue: import('vue').PropType<UploadFileItem[]>;
16
17
  size: {
17
18
  type: PropType<import('../../..').LewSize>;
18
19
  default: string;
19
20
  description: string;
20
21
  validator: (value: import('../../..').LewSize) => boolean;
21
22
  };
23
+ modelValue: {
24
+ type: globalThis.PropType<UploadFileItem[]>;
25
+ };
22
26
  }>> & Readonly<{
27
+ "onUpdate:modelValue"?: ((value: UploadFileItem[]) => any) | undefined;
23
28
  onReUpload?: ((...args: any[]) => any) | undefined;
24
29
  onDeleteFile?: ((...args: any[]) => any) | undefined;
25
30
  }>, {
26
31
  size: import('../../..').LewSize;
27
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
28
33
  export default _default;
@@ -1,28 +1,33 @@
1
1
  import { UploadFileItem } from './props';
2
-
3
2
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
4
- modelValue: import('vue').PropType<UploadFileItem[]>;
5
3
  size: {
6
4
  type: PropType<import('../../..').LewSize>;
7
5
  default: string;
8
6
  description: string;
9
7
  validator: (value: import('../../..').LewSize) => boolean;
10
8
  };
9
+ modelValue: {
10
+ type: globalThis.PropType<UploadFileItem[]>;
11
+ };
11
12
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
13
  reUpload: (...args: any[]) => void;
13
14
  deleteFile: (...args: any[]) => void;
15
+ "update:modelValue": (value: UploadFileItem[]) => void;
14
16
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
15
- modelValue: import('vue').PropType<UploadFileItem[]>;
16
17
  size: {
17
18
  type: PropType<import('../../..').LewSize>;
18
19
  default: string;
19
20
  description: string;
20
21
  validator: (value: import('../../..').LewSize) => boolean;
21
22
  };
23
+ modelValue: {
24
+ type: globalThis.PropType<UploadFileItem[]>;
25
+ };
22
26
  }>> & Readonly<{
27
+ "onUpdate:modelValue"?: ((value: UploadFileItem[]) => any) | undefined;
23
28
  onReUpload?: ((...args: any[]) => any) | undefined;
24
29
  onDeleteFile?: ((...args: any[]) => any) | undefined;
25
30
  }>, {
26
31
  size: import('../../..').LewSize;
27
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
28
33
  export default _default;
@@ -1,8 +1,7 @@
1
- import { ExtractPropTypes } from 'vue';
2
1
  import { LewSize } from '../../..';
3
-
2
+ import { ExtractPropTypes } from 'vue';
4
3
  export type UploadStatus = 'success' | 'fail' | 'uploading' | 'complete' | 'wrong_type' | 'wrong_size' | 'pending';
5
- export type UploadFileItem = {
4
+ export interface UploadFileItem {
6
5
  key: string;
7
6
  name?: string;
8
7
  url?: string;
@@ -13,7 +12,7 @@ export type UploadFileItem = {
13
12
  type?: string;
14
13
  lastModifiedDate?: string;
15
14
  lastModified?: number;
16
- };
15
+ }
17
16
  export declare const uploadProps: {
18
17
  accept: {
19
18
  type: StringConstructor;
@@ -68,7 +67,7 @@ export declare const uploadProps: {
68
67
  type: FunctionConstructor;
69
68
  default: undefined;
70
69
  description: string;
71
- validator: (value: Function) => boolean;
70
+ validator: (value: any) => boolean;
72
71
  };
73
72
  uploadHelperId: {
74
73
  type: StringConstructor;
@@ -1,5 +1,4 @@
1
1
  import { LewColor, LewDirection, LewSize, LewStatusColor, LewThemeColor } from '../types';
2
-
3
2
  export declare const validColors: LewColor[];
4
3
  export declare const vailThemeColor: LewThemeColor[];
5
4
  export declare const validStatusColors: LewStatusColor[];
@@ -1,5 +1,4 @@
1
1
  import { App } from 'vue';
2
-
3
2
  declare const _default: {
4
3
  install(app: App): void;
5
4
  };
@@ -1,2 +1,2 @@
1
- export { default as LewContextMenu } from './src/LewContextMenu.vue';
2
1
  export * from './src';
2
+ export { default as LewContextMenu } from './src/LewContextMenu.vue';
@@ -1,5 +1,4 @@
1
1
  import { ContextMenus } from './index';
2
-
3
2
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
4
3
  options: {
5
4
  type: PropType<ContextMenus[]>;
@@ -27,7 +26,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
27
26
  }>> & Readonly<{
28
27
  onSelect?: ((...args: any[]) => any) | undefined;
29
28
  }>, {
30
- disabled: boolean;
31
29
  options: ContextMenus[];
32
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
30
+ disabled: boolean;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
33
32
  export default _default;
@@ -1,32 +1,4 @@
1
- import { App } from 'vue';
2
-
3
- /**
4
- * 全局右键菜单配置接口
5
- */
6
- interface LewContextMenuConfig {
7
- menu: Record<string, {
8
- options: ContextMenus[];
9
- disabled: boolean;
10
- }>;
11
- contextMenu: ((e: MouseEvent) => void) | null;
12
- instance: any;
13
- menuInstance: Record<string, any>;
14
- }
15
- declare global {
16
- interface Window {
17
- LewContextMenu: LewContextMenuConfig;
18
- }
19
- }
20
- /**
21
- * 初始化右键菜单配置
22
- */
23
- export declare const initLewContextMenu: () => void;
24
- /**
25
- * 右键菜单指令
26
- */
27
- export declare const LewVContextMenu: {
28
- install(app: App): void;
29
- };
1
+ import { App, PropType } from 'vue';
30
2
  /**
31
3
  * 右键菜单项目接口定义
32
4
  */
@@ -58,4 +30,31 @@ export declare const contextMenuProps: {
58
30
  description: string;
59
31
  };
60
32
  };
33
+ /**
34
+ * 全局右键菜单配置接口
35
+ */
36
+ interface LewContextMenuConfig {
37
+ menu: Record<string, {
38
+ options: ContextMenus[];
39
+ disabled: boolean;
40
+ }>;
41
+ contextMenu: ((e: MouseEvent) => void) | null;
42
+ instance: any;
43
+ menuInstance: Record<string, any>;
44
+ }
45
+ declare global {
46
+ interface Window {
47
+ LewContextMenu: LewContextMenuConfig;
48
+ }
49
+ }
50
+ /**
51
+ * 初始化右键菜单配置
52
+ */
53
+ export declare function initLewContextMenu(): void;
54
+ /**
55
+ * 右键菜单指令
56
+ */
57
+ export declare const LewVContextMenu: {
58
+ install(app: App): void;
59
+ };
61
60
  export {};
@@ -1,10 +1,22 @@
1
1
  import { App } from 'vue';
2
-
2
+ interface LewHoverMenuConfig {
3
+ menu: Record<string, any>;
4
+ disabledIds: string[];
5
+ hoverMenu: ((e: MouseEvent) => void) | null;
6
+ prevId: string;
7
+ instance: any;
8
+ menuInstance: Record<string, any>;
9
+ }
10
+ declare global {
11
+ interface Window {
12
+ LewHoverMenu: LewHoverMenuConfig;
13
+ }
14
+ }
3
15
  /**
4
16
  * 初始化悬浮菜单
5
17
  * 创建全局悬浮菜单实例和相关配置
6
18
  */
7
- export declare const initLewHoverMenu: () => void;
19
+ export declare function initLewHoverMenu(): void;
8
20
  /**
9
21
  * 悬浮菜单指令
10
22
  * 提供悬浮菜单功能的Vue指令
@@ -41,3 +53,4 @@ export declare const hoverMenuProps: {
41
53
  description: string;
42
54
  };
43
55
  };
56
+ export {};
@@ -1,5 +1,5 @@
1
- export * from './tooltip';
2
1
  export * from './backtop';
3
- export * from './loading';
4
2
  export * from './context-menu';
5
3
  export * from './hover-menu';
4
+ export * from './loading';
5
+ export * from './tooltip';
@@ -1,5 +1,4 @@
1
1
  import { App as Application } from 'vue';
2
-
3
2
  export declare const LewLoading: {
4
3
  install(app: Application): void;
5
4
  };
@@ -1,5 +1,4 @@
1
1
  import { App as Application } from 'vue';
2
-
3
2
  export declare const LewTooltip: {
4
3
  install(app: Application): void;
5
4
  };