lew-ui 2.7.70 → 2.7.76

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 (98) hide show
  1. package/LICENSE +21 -21
  2. package/dist/_components/CloseButton.vue.d.ts +20 -0
  3. package/dist/_components/CloseIcon.vue.d.ts +18 -0
  4. package/dist/_components/CommonInput.vue.d.ts +12 -49
  5. package/dist/components/data/collapse/index.d.ts +1 -0
  6. package/dist/components/data/collapse/src/model.d.ts +14 -0
  7. package/dist/components/data/collapse/src/props.d.ts +0 -11
  8. package/dist/components/data/expand/src/LewExpand.vue.d.ts +8 -2
  9. package/dist/components/data/pagination/index.d.ts +1 -0
  10. package/dist/components/data/pagination/src/model.d.ts +16 -0
  11. package/dist/components/data/pagination/src/props.d.ts +0 -18
  12. package/dist/components/data/table/src/LewTable.vue.d.ts +11 -2
  13. package/dist/components/data/table/src/props.d.ts +5 -0
  14. package/dist/components/feedback/alert/src/LewAlert.vue.d.ts +2 -6
  15. package/dist/components/feedback/alert/src/emits.d.ts +1 -3
  16. package/dist/components/feedback/drawer/index.d.ts +1 -0
  17. package/dist/components/feedback/drawer/src/LewDrawer.vue.d.ts +9 -10
  18. package/dist/components/feedback/drawer/src/model.d.ts +8 -0
  19. package/dist/components/feedback/drawer/src/props.d.ts +0 -7
  20. package/dist/components/feedback/modal/index.d.ts +1 -0
  21. package/dist/components/feedback/modal/src/LewModal.vue.d.ts +4 -4
  22. package/dist/components/feedback/modal/src/model.d.ts +8 -0
  23. package/dist/components/feedback/modal/src/props.d.ts +0 -6
  24. package/dist/components/feedback/popok/src/LewPopok.vue.d.ts +20 -10
  25. package/dist/components/form/cascader/src/LewCascader.vue.d.ts +100 -100
  26. package/dist/components/form/cascader/src/emits.d.ts +4 -3
  27. package/dist/components/form/cascader/src/model.d.ts +2 -1
  28. package/dist/components/form/cascader/src/props.d.ts +80 -80
  29. package/dist/components/form/checkbox/src/LewCheckbox.vue.d.ts +54 -54
  30. package/dist/components/form/checkbox/src/LewCheckboxGroup.vue.d.ts +52 -52
  31. package/dist/components/form/checkbox/src/props.d.ts +83 -83
  32. package/dist/components/form/color-picker/src/LewColorPicker.vue.d.ts +32 -32
  33. package/dist/components/form/color-picker/src/props.d.ts +21 -21
  34. package/dist/components/form/date-picker/src/LewDatePicker.vue.d.ts +4 -4
  35. package/dist/components/form/input/src/LewInput.vue.d.ts +4 -35
  36. package/dist/components/form/input/src/props.d.ts +0 -17
  37. package/dist/components/form/input-number/src/LewInputNumber.vue.d.ts +6 -10
  38. package/dist/components/form/input-number/src/emits.d.ts +1 -1
  39. package/dist/components/form/input-number/src/props.d.ts +0 -4
  40. package/dist/components/form/input-tag/src/LewInputTag.vue.d.ts +4 -53
  41. package/dist/components/form/input-tag/src/props.d.ts +0 -5
  42. package/dist/components/form/select/src/LewSelect.vue.d.ts +33 -88
  43. package/dist/components/form/tree-select/src/LewTreeSelect.vue.d.ts +12 -88
  44. package/dist/components/general/avatar/index.d.ts +6 -2
  45. package/dist/components/general/button/index.d.ts +7 -2
  46. package/dist/components/general/button/src/LewButton.vue.d.ts +8 -8
  47. package/dist/components/general/button/src/emits.d.ts +10 -0
  48. package/dist/components/general/flex/src/LewFlex.vue.d.ts +15 -16
  49. package/dist/components/general/image/index.d.ts +6 -2
  50. package/dist/components/general/tag/src/LewTag.vue.d.ts +52 -14
  51. package/dist/components/general/tag/src/emits.d.ts +3 -0
  52. package/dist/components/general/tag/src/props.d.ts +9 -0
  53. package/dist/components/general/text-trim/index.d.ts +7 -2
  54. package/dist/components/general/text-trim/src/emits.d.ts +2 -0
  55. package/dist/components/general/text-trim/src/text-trim.d.ts +1 -1
  56. package/dist/components/navigation/action-box/index.d.ts +7 -3
  57. package/dist/components/navigation/action-box/src/LewActionBox.vue.d.ts +6 -2
  58. package/dist/components/navigation/action-box/src/emits.d.ts +1 -0
  59. package/dist/components/navigation/back-top/index.d.ts +7 -2
  60. package/dist/components/navigation/back-top/src/emits.d.ts +2 -0
  61. package/dist/components/navigation/breadcrumb/index.d.ts +7 -3
  62. package/dist/components/navigation/breadcrumb/src/LewBreadcrumb.vue.d.ts +2 -2
  63. package/dist/components/navigation/breadcrumb/src/emits.d.ts +3 -1
  64. package/dist/components/navigation/dropdown/index.d.ts +8 -3
  65. package/dist/components/navigation/dropdown/src/emits.d.ts +1 -0
  66. package/dist/components/navigation/dropdown/src/model.d.ts +8 -0
  67. package/dist/components/navigation/dropdown/src/props.d.ts +0 -6
  68. package/dist/components/navigation/menu/index.d.ts +8 -3
  69. package/dist/components/navigation/menu/src/LewMenu.vue.d.ts +4 -4
  70. package/dist/components/navigation/menu/src/emits.d.ts +1 -0
  71. package/dist/components/navigation/menu/src/model.d.ts +7 -0
  72. package/dist/components/navigation/menu/src/props.d.ts +0 -5
  73. package/dist/components/navigation/menu-tree/index.d.ts +9 -4
  74. package/dist/components/navigation/menu-tree/src/emits.d.ts +1 -0
  75. package/dist/components/navigation/menu-tree/src/model.d.ts +16 -0
  76. package/dist/components/navigation/menu-tree/src/props.d.ts +0 -13
  77. package/dist/components/navigation/steps/index.d.ts +8 -3
  78. package/dist/components/navigation/steps/src/LewSteps.vue.d.ts +10 -6
  79. package/dist/components/navigation/steps/src/emits.d.ts +1 -0
  80. package/dist/components/navigation/steps/src/model.d.ts +7 -0
  81. package/dist/components/navigation/steps/src/props.d.ts +3 -6
  82. package/dist/directives/context-menu/src/LewContextMenu.vue.d.ts +2 -2
  83. package/dist/directives/context-menu/src/emits.d.ts +3 -1
  84. package/dist/index.css +1 -1
  85. package/dist/index.js +3206 -2580
  86. package/dist/index.umd.cjs +1 -47
  87. package/dist/locals/de.d.ts +25 -0
  88. package/dist/locals/en.d.ts +32 -7
  89. package/dist/locals/es.d.ts +25 -0
  90. package/dist/locals/fr.d.ts +25 -0
  91. package/dist/locals/it.d.ts +25 -0
  92. package/dist/locals/ja.d.ts +25 -0
  93. package/dist/locals/ko.d.ts +25 -0
  94. package/dist/locals/pt.d.ts +25 -0
  95. package/dist/methods/dialog/src/LewDialog.vue.d.ts +10 -5
  96. package/dist/methods/notification/src/NotificationContainer.vue.d.ts +6 -0
  97. package/dist/methods/notification/src/index.d.ts +4 -0
  98. package/package.json +8 -4
@@ -0,0 +1,8 @@
1
+ export declare const modalModel: {
2
+ visible: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ validator: (value: any) => boolean;
6
+ };
7
+ };
8
+ export type ModalModel = typeof modalModel;
@@ -1,12 +1,6 @@
1
1
  import { Property } from 'csstype';
2
2
  import { LewButtonProps } from '../../../..';
3
3
  import { ExtractPublicPropTypes, PropType } from 'vue';
4
- export declare const modalModel: {
5
- visible: {
6
- type: BooleanConstructor;
7
- default: boolean;
8
- };
9
- };
10
4
  export declare const modalProps: {
11
5
  title: {
12
6
  type: StringConstructor;
@@ -248,14 +248,13 @@ declare function __VLS_template(): {
248
248
  readonly text?: string | undefined;
249
249
  readonly request?: (() => Promise<void>) | undefined;
250
250
  readonly width?: import("csstype").Property.Width<0 | (string & {})> | undefined;
251
+ readonly onClick?: ((e: MouseEvent) => any) | undefined;
251
252
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed">;
252
253
  $attrs: {
253
254
  [x: string]: unknown;
254
255
  };
255
256
  $refs: {
256
257
  [x: string]: unknown;
257
- } & {
258
- buttonRef: HTMLButtonElement;
259
258
  };
260
259
  $slots: Readonly<{
261
260
  [name: string]: import('vue').Slot<any> | undefined;
@@ -263,7 +262,7 @@ declare function __VLS_template(): {
263
262
  $root: ComponentPublicInstance | null;
264
263
  $parent: ComponentPublicInstance | null;
265
264
  $host: Element | null;
266
- $emit: (event: string, ...args: any[]) => void;
265
+ $emit: (event: "click", e: MouseEvent) => void;
267
266
  $el: HTMLButtonElement;
268
267
  $options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
269
268
  text: {
@@ -321,7 +320,11 @@ declare function __VLS_template(): {
321
320
  type: PropType<() => Promise<void>>;
322
321
  validator: (value: any) => boolean;
323
322
  };
324
- }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
323
+ }>> & Readonly<{
324
+ onClick?: ((e: MouseEvent) => any) | undefined;
325
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
326
+ click: (e: MouseEvent) => void;
327
+ }, string, {
325
328
  loading: boolean;
326
329
  type: import('../../../..').LewButtonType;
327
330
  color: LewColor;
@@ -415,7 +418,9 @@ declare function __VLS_template(): {
415
418
  type: PropType<() => Promise<void>>;
416
419
  validator: (value: any) => boolean;
417
420
  };
418
- }>> & Readonly<{}>, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
421
+ }>> & Readonly<{
422
+ onClick?: ((e: MouseEvent) => any) | undefined;
423
+ }>, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
419
424
  $slots: {
420
425
  default?(_: {}): any;
421
426
  };
@@ -798,14 +803,13 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
798
803
  readonly text?: string | undefined;
799
804
  readonly request?: (() => Promise<void>) | undefined;
800
805
  readonly width?: import("csstype").Property.Width<0 | (string & {})> | undefined;
806
+ readonly onClick?: ((e: MouseEvent) => any) | undefined;
801
807
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed">;
802
808
  $attrs: {
803
809
  [x: string]: unknown;
804
810
  };
805
811
  $refs: {
806
812
  [x: string]: unknown;
807
- } & {
808
- buttonRef: HTMLButtonElement;
809
813
  };
810
814
  $slots: Readonly<{
811
815
  [name: string]: import('vue').Slot<any> | undefined;
@@ -813,7 +817,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
813
817
  $root: ComponentPublicInstance | null;
814
818
  $parent: ComponentPublicInstance | null;
815
819
  $host: Element | null;
816
- $emit: (event: string, ...args: any[]) => void;
820
+ $emit: (event: "click", e: MouseEvent) => void;
817
821
  $el: HTMLButtonElement;
818
822
  $options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
819
823
  text: {
@@ -871,7 +875,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
871
875
  type: PropType<() => Promise<void>>;
872
876
  validator: (value: any) => boolean;
873
877
  };
874
- }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
878
+ }>> & Readonly<{
879
+ onClick?: ((e: MouseEvent) => any) | undefined;
880
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
881
+ click: (e: MouseEvent) => void;
882
+ }, string, {
875
883
  loading: boolean;
876
884
  type: import('../../../..').LewButtonType;
877
885
  color: LewColor;
@@ -965,7 +973,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
965
973
  type: PropType<() => Promise<void>>;
966
974
  validator: (value: any) => boolean;
967
975
  };
968
- }>> & Readonly<{}>, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
976
+ }>> & Readonly<{
977
+ onClick?: ((e: MouseEvent) => any) | undefined;
978
+ }>, "loading" | "type" | "color" | "size" | "round" | "disabled" | "singleIcon" | "dashed"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
969
979
  $slots: {
970
980
  default?(_: {}): any;
971
981
  };
@@ -237,85 +237,85 @@ declare function __VLS_template(): {
237
237
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
238
238
  declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
239
239
  options: {
240
- type: PropType<LewCascaderOption[]>;
241
- typePopKey: string[];
242
- validator: (value: any[] | undefined) => boolean;
240
+ readonly type: PropType<LewCascaderOption[]>;
241
+ readonly typePopKeys: readonly ["LewCascaderOption"];
242
+ readonly validator: (value: any[] | undefined) => boolean;
243
243
  };
244
244
  width: {
245
- type: PropType<import("csstype").Property.Width>;
246
- default: string;
247
- validator: (value: string | number | undefined) => boolean;
245
+ readonly type: PropType<import("csstype").Property.Width>;
246
+ readonly default: "100%";
247
+ readonly validator: (value: string | number | undefined) => boolean;
248
248
  };
249
249
  placeholder: {
250
- type: StringConstructor;
251
- defaultLocale: boolean;
252
- validator: (value: any) => boolean;
250
+ readonly type: StringConstructor;
251
+ readonly defaultLocale: true;
252
+ readonly validator: (value: any) => boolean;
253
253
  };
254
254
  disabled: {
255
- type: BooleanConstructor;
256
- default: boolean;
257
- validator: (value: any) => boolean;
255
+ readonly type: BooleanConstructor;
256
+ readonly default: false;
257
+ readonly validator: (value: any) => boolean;
258
258
  };
259
259
  clearable: {
260
- type: BooleanConstructor;
261
- default: boolean;
262
- validator: (value: any) => boolean;
260
+ readonly type: BooleanConstructor;
261
+ readonly default: true;
262
+ readonly validator: (value: any) => boolean;
263
263
  };
264
264
  free: {
265
- type: BooleanConstructor;
266
- default: boolean;
267
- validator: (value: any) => boolean;
265
+ readonly type: BooleanConstructor;
266
+ readonly default: false;
267
+ readonly validator: (value: any) => boolean;
268
268
  };
269
269
  size: {
270
- type: PropType<import('../../../..').LewSize>;
271
- default: string;
272
- typeValues: import('../../../..').LewSize[];
273
- validator: (value: any) => boolean;
270
+ readonly type: PropType<import('../../../..').LewSize>;
271
+ readonly default: "medium";
272
+ readonly typeValues: import('../../../..').LewSize[];
273
+ readonly validator: (value: any) => boolean;
274
274
  };
275
275
  trigger: {
276
- type: PropType<import('../../../..').LewTrigger>;
277
- default: string;
278
- typeValues: import('../../../..').LewTrigger[];
279
- validator: (value: any) => boolean;
276
+ readonly type: PropType<import('../../../..').LewTrigger>;
277
+ readonly default: "click";
278
+ readonly typeValues: import('../../../..').LewTrigger[];
279
+ readonly validator: (value: any) => boolean;
280
280
  };
281
281
  loadMethod: {
282
- type: PropType<() => Promise<LewCascaderOption[]>>;
283
- default: null;
284
- validator: (value: any) => boolean;
282
+ readonly type: PropType<() => Promise<LewCascaderOption[]>>;
283
+ readonly default: null;
284
+ readonly validator: (value: any) => boolean;
285
285
  };
286
286
  loadMethodId: {
287
- type: StringConstructor;
288
- hidden: boolean;
289
- validator: (value: any) => boolean;
287
+ readonly type: StringConstructor;
288
+ readonly hidden: true;
289
+ readonly validator: (value: any) => boolean;
290
290
  };
291
291
  initMethod: {
292
- type: PropType<() => Promise<LewCascaderOption[]>>;
293
- default: null;
294
- validator: (value: any) => boolean;
292
+ readonly type: PropType<() => Promise<LewCascaderOption[]>>;
293
+ readonly default: null;
294
+ readonly validator: (value: any) => boolean;
295
295
  };
296
296
  initMethodId: {
297
- type: StringConstructor;
298
- validator: (value: any) => boolean;
297
+ readonly type: StringConstructor;
298
+ readonly validator: (value: any) => boolean;
299
299
  };
300
300
  readonly: {
301
- type: BooleanConstructor;
302
- default: boolean;
303
- validator: (value: any) => boolean;
301
+ readonly type: BooleanConstructor;
302
+ readonly default: false;
303
+ readonly validator: (value: any) => boolean;
304
304
  };
305
305
  onlyLeafSelectable: {
306
- type: BooleanConstructor;
307
- default: boolean;
308
- validator: (value: any) => boolean;
306
+ readonly type: BooleanConstructor;
307
+ readonly default: true;
308
+ readonly validator: (value: any) => boolean;
309
309
  };
310
310
  multiple: {
311
- type: BooleanConstructor;
312
- default: boolean;
313
- validator: (value: any) => boolean;
311
+ readonly type: BooleanConstructor;
312
+ readonly default: false;
313
+ readonly validator: (value: any) => boolean;
314
314
  };
315
315
  showAllLevels: {
316
- type: BooleanConstructor;
317
- default: boolean;
318
- validator: (value: any) => boolean;
316
+ readonly type: BooleanConstructor;
317
+ readonly default: true;
318
+ readonly validator: (value: any) => boolean;
319
319
  };
320
320
  modelValue: {
321
321
  type: globalThis.PropType<string | string[]>;
@@ -325,97 +325,97 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
325
325
  hide: typeof hide;
326
326
  getSelected: typeof getSelected;
327
327
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
328
- change: (value: any, items: any) => void;
328
+ change: (value: string | string[] | undefined, items: LewCascaderOption | LewCascaderOption[] | undefined) => void;
329
329
  clear: () => void;
330
330
  delete: (value: string[], deletedItem: string) => void;
331
331
  "update:modelValue": (value: string | string[] | undefined) => void;
332
332
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
333
333
  options: {
334
- type: PropType<LewCascaderOption[]>;
335
- typePopKey: string[];
336
- validator: (value: any[] | undefined) => boolean;
334
+ readonly type: PropType<LewCascaderOption[]>;
335
+ readonly typePopKeys: readonly ["LewCascaderOption"];
336
+ readonly validator: (value: any[] | undefined) => boolean;
337
337
  };
338
338
  width: {
339
- type: PropType<import("csstype").Property.Width>;
340
- default: string;
341
- validator: (value: string | number | undefined) => boolean;
339
+ readonly type: PropType<import("csstype").Property.Width>;
340
+ readonly default: "100%";
341
+ readonly validator: (value: string | number | undefined) => boolean;
342
342
  };
343
343
  placeholder: {
344
- type: StringConstructor;
345
- defaultLocale: boolean;
346
- validator: (value: any) => boolean;
344
+ readonly type: StringConstructor;
345
+ readonly defaultLocale: true;
346
+ readonly validator: (value: any) => boolean;
347
347
  };
348
348
  disabled: {
349
- type: BooleanConstructor;
350
- default: boolean;
351
- validator: (value: any) => boolean;
349
+ readonly type: BooleanConstructor;
350
+ readonly default: false;
351
+ readonly validator: (value: any) => boolean;
352
352
  };
353
353
  clearable: {
354
- type: BooleanConstructor;
355
- default: boolean;
356
- validator: (value: any) => boolean;
354
+ readonly type: BooleanConstructor;
355
+ readonly default: true;
356
+ readonly validator: (value: any) => boolean;
357
357
  };
358
358
  free: {
359
- type: BooleanConstructor;
360
- default: boolean;
361
- validator: (value: any) => boolean;
359
+ readonly type: BooleanConstructor;
360
+ readonly default: false;
361
+ readonly validator: (value: any) => boolean;
362
362
  };
363
363
  size: {
364
- type: PropType<import('../../../..').LewSize>;
365
- default: string;
366
- typeValues: import('../../../..').LewSize[];
367
- validator: (value: any) => boolean;
364
+ readonly type: PropType<import('../../../..').LewSize>;
365
+ readonly default: "medium";
366
+ readonly typeValues: import('../../../..').LewSize[];
367
+ readonly validator: (value: any) => boolean;
368
368
  };
369
369
  trigger: {
370
- type: PropType<import('../../../..').LewTrigger>;
371
- default: string;
372
- typeValues: import('../../../..').LewTrigger[];
373
- validator: (value: any) => boolean;
370
+ readonly type: PropType<import('../../../..').LewTrigger>;
371
+ readonly default: "click";
372
+ readonly typeValues: import('../../../..').LewTrigger[];
373
+ readonly validator: (value: any) => boolean;
374
374
  };
375
375
  loadMethod: {
376
- type: PropType<() => Promise<LewCascaderOption[]>>;
377
- default: null;
378
- validator: (value: any) => boolean;
376
+ readonly type: PropType<() => Promise<LewCascaderOption[]>>;
377
+ readonly default: null;
378
+ readonly validator: (value: any) => boolean;
379
379
  };
380
380
  loadMethodId: {
381
- type: StringConstructor;
382
- hidden: boolean;
383
- validator: (value: any) => boolean;
381
+ readonly type: StringConstructor;
382
+ readonly hidden: true;
383
+ readonly validator: (value: any) => boolean;
384
384
  };
385
385
  initMethod: {
386
- type: PropType<() => Promise<LewCascaderOption[]>>;
387
- default: null;
388
- validator: (value: any) => boolean;
386
+ readonly type: PropType<() => Promise<LewCascaderOption[]>>;
387
+ readonly default: null;
388
+ readonly validator: (value: any) => boolean;
389
389
  };
390
390
  initMethodId: {
391
- type: StringConstructor;
392
- validator: (value: any) => boolean;
391
+ readonly type: StringConstructor;
392
+ readonly validator: (value: any) => boolean;
393
393
  };
394
394
  readonly: {
395
- type: BooleanConstructor;
396
- default: boolean;
397
- validator: (value: any) => boolean;
395
+ readonly type: BooleanConstructor;
396
+ readonly default: false;
397
+ readonly validator: (value: any) => boolean;
398
398
  };
399
399
  onlyLeafSelectable: {
400
- type: BooleanConstructor;
401
- default: boolean;
402
- validator: (value: any) => boolean;
400
+ readonly type: BooleanConstructor;
401
+ readonly default: true;
402
+ readonly validator: (value: any) => boolean;
403
403
  };
404
404
  multiple: {
405
- type: BooleanConstructor;
406
- default: boolean;
407
- validator: (value: any) => boolean;
405
+ readonly type: BooleanConstructor;
406
+ readonly default: false;
407
+ readonly validator: (value: any) => boolean;
408
408
  };
409
409
  showAllLevels: {
410
- type: BooleanConstructor;
411
- default: boolean;
412
- validator: (value: any) => boolean;
410
+ readonly type: BooleanConstructor;
411
+ readonly default: true;
412
+ readonly validator: (value: any) => boolean;
413
413
  };
414
414
  modelValue: {
415
415
  type: globalThis.PropType<string | string[]>;
416
416
  };
417
417
  }>> & Readonly<{
418
- onChange?: ((value: any, items: any) => any) | undefined;
418
+ onChange?: ((value: string | string[] | undefined, items: LewCascaderOption | LewCascaderOption[] | undefined) => any) | undefined;
419
419
  onClear?: (() => any) | undefined;
420
420
  onDelete?: ((value: string[], deletedItem: string) => any) | undefined;
421
421
  "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
@@ -1,7 +1,8 @@
1
+ import { LewCascaderOption } from '../../../../types';
1
2
  export declare const cascaderEmits: {
2
- readonly change: (value: any, items: any) => {
3
- value: any;
4
- items: any;
3
+ readonly change: (value: string | string[] | undefined, items: LewCascaderOption | LewCascaderOption[] | undefined) => {
4
+ value: string | string[] | undefined;
5
+ items: LewCascaderOption | LewCascaderOption[] | undefined;
5
6
  };
6
7
  readonly clear: () => boolean;
7
8
  readonly delete: (value: string[], deletedItem: string) => {
@@ -1,5 +1,6 @@
1
+ import { PropType } from 'vue';
1
2
  export declare const cascaderModel: {
2
3
  modelValue: {
3
- type: StringConstructor;
4
+ type: PropType<string | string[] | undefined>;
4
5
  };
5
6
  };
@@ -2,86 +2,86 @@ import { Property } from 'csstype';
2
2
  import { LewCascaderOption, LewSize, LewTrigger } from '../../../..';
3
3
  import { ExtractPublicPropTypes, PropType } from 'vue';
4
4
  export declare const cascaderProps: {
5
- options: {
6
- type: PropType<LewCascaderOption[]>;
7
- typePopKey: string[];
8
- validator: (value: any[] | undefined) => boolean;
9
- };
10
- width: {
11
- type: PropType<Property.Width>;
12
- default: string;
13
- validator: (value: string | number | undefined) => boolean;
14
- };
15
- placeholder: {
16
- type: StringConstructor;
17
- defaultLocale: boolean;
18
- validator: (value: any) => boolean;
19
- };
20
- disabled: {
21
- type: BooleanConstructor;
22
- default: boolean;
23
- validator: (value: any) => boolean;
24
- };
25
- clearable: {
26
- type: BooleanConstructor;
27
- default: boolean;
28
- validator: (value: any) => boolean;
29
- };
30
- free: {
31
- type: BooleanConstructor;
32
- default: boolean;
33
- validator: (value: any) => boolean;
34
- };
35
- size: {
36
- type: PropType<LewSize>;
37
- default: string;
38
- typeValues: LewSize[];
39
- validator: (value: any) => boolean;
40
- };
41
- trigger: {
42
- type: PropType<LewTrigger>;
43
- default: string;
44
- typeValues: LewTrigger[];
45
- validator: (value: any) => boolean;
46
- };
47
- loadMethod: {
48
- type: PropType<() => Promise<LewCascaderOption[]>>;
49
- default: null;
50
- validator: (value: any) => boolean;
51
- };
52
- loadMethodId: {
53
- type: StringConstructor;
54
- hidden: boolean;
55
- validator: (value: any) => boolean;
56
- };
57
- initMethod: {
58
- type: PropType<() => Promise<LewCascaderOption[]>>;
59
- default: null;
60
- validator: (value: any) => boolean;
61
- };
62
- initMethodId: {
63
- type: StringConstructor;
64
- validator: (value: any) => boolean;
65
- };
66
- readonly: {
67
- type: BooleanConstructor;
68
- default: boolean;
69
- validator: (value: any) => boolean;
70
- };
71
- onlyLeafSelectable: {
72
- type: BooleanConstructor;
73
- default: boolean;
74
- validator: (value: any) => boolean;
75
- };
76
- multiple: {
77
- type: BooleanConstructor;
78
- default: boolean;
79
- validator: (value: any) => boolean;
80
- };
81
- showAllLevels: {
82
- type: BooleanConstructor;
83
- default: boolean;
84
- validator: (value: any) => boolean;
5
+ readonly options: {
6
+ readonly type: PropType<LewCascaderOption[]>;
7
+ readonly typePopKeys: readonly ["LewCascaderOption"];
8
+ readonly validator: (value: any[] | undefined) => boolean;
9
+ };
10
+ readonly width: {
11
+ readonly type: PropType<Property.Width>;
12
+ readonly default: "100%";
13
+ readonly validator: (value: string | number | undefined) => boolean;
14
+ };
15
+ readonly placeholder: {
16
+ readonly type: StringConstructor;
17
+ readonly defaultLocale: true;
18
+ readonly validator: (value: any) => boolean;
19
+ };
20
+ readonly disabled: {
21
+ readonly type: BooleanConstructor;
22
+ readonly default: false;
23
+ readonly validator: (value: any) => boolean;
24
+ };
25
+ readonly clearable: {
26
+ readonly type: BooleanConstructor;
27
+ readonly default: true;
28
+ readonly validator: (value: any) => boolean;
29
+ };
30
+ readonly free: {
31
+ readonly type: BooleanConstructor;
32
+ readonly default: false;
33
+ readonly validator: (value: any) => boolean;
34
+ };
35
+ readonly size: {
36
+ readonly type: PropType<LewSize>;
37
+ readonly default: "medium";
38
+ readonly typeValues: LewSize[];
39
+ readonly validator: (value: any) => boolean;
40
+ };
41
+ readonly trigger: {
42
+ readonly type: PropType<LewTrigger>;
43
+ readonly default: "click";
44
+ readonly typeValues: LewTrigger[];
45
+ readonly validator: (value: any) => boolean;
46
+ };
47
+ readonly loadMethod: {
48
+ readonly type: PropType<() => Promise<LewCascaderOption[]>>;
49
+ readonly default: null;
50
+ readonly validator: (value: any) => boolean;
51
+ };
52
+ readonly loadMethodId: {
53
+ readonly type: StringConstructor;
54
+ readonly hidden: true;
55
+ readonly validator: (value: any) => boolean;
56
+ };
57
+ readonly initMethod: {
58
+ readonly type: PropType<() => Promise<LewCascaderOption[]>>;
59
+ readonly default: null;
60
+ readonly validator: (value: any) => boolean;
61
+ };
62
+ readonly initMethodId: {
63
+ readonly type: StringConstructor;
64
+ readonly validator: (value: any) => boolean;
65
+ };
66
+ readonly readonly: {
67
+ readonly type: BooleanConstructor;
68
+ readonly default: false;
69
+ readonly validator: (value: any) => boolean;
70
+ };
71
+ readonly onlyLeafSelectable: {
72
+ readonly type: BooleanConstructor;
73
+ readonly default: true;
74
+ readonly validator: (value: any) => boolean;
75
+ };
76
+ readonly multiple: {
77
+ readonly type: BooleanConstructor;
78
+ readonly default: false;
79
+ readonly validator: (value: any) => boolean;
80
+ };
81
+ readonly showAllLevels: {
82
+ readonly type: BooleanConstructor;
83
+ readonly default: true;
84
+ readonly validator: (value: any) => boolean;
85
85
  };
86
86
  };
87
87
  export type LewCascaderProps = ExtractPublicPropTypes<typeof cascaderProps>;