lew-ui 2.7.56 → 2.7.59

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.
@@ -1,4 +1,9 @@
1
1
  import { LewCascaderOption } from '../../../../types';
2
+ declare function getSelected(): LewCascaderOption | {
3
+ key: string;
4
+ disabled?: boolean;
5
+ isLeaf: boolean;
6
+ }[] | null;
2
7
  declare function show(): Promise<void>;
3
8
  declare function hide(): void;
4
9
  declare function __VLS_template(): {
@@ -332,8 +337,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
332
337
  }>, {
333
338
  show: typeof show;
334
339
  hide: typeof hide;
340
+ getSelected: typeof getSelected;
335
341
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
336
- change: (value: any) => void;
342
+ change: (value: any, items: any) => void;
337
343
  clear: () => void;
338
344
  delete: (value: string[], deletedItem: string) => void;
339
345
  "update:modelValue": (value: string | string[] | undefined) => void;
@@ -423,7 +429,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
423
429
  type: globalThis.PropType<string | string[]>;
424
430
  };
425
431
  }>> & Readonly<{
426
- onChange?: ((value: any) => any) | undefined;
432
+ onChange?: ((value: any, items: any) => any) | undefined;
427
433
  onClear?: (() => any) | undefined;
428
434
  onDelete?: ((value: string[], deletedItem: string) => any) | undefined;
429
435
  "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
@@ -1,5 +1,8 @@
1
1
  export declare const cascaderEmits: {
2
- readonly change: (value: any) => any;
2
+ readonly change: (value: any, items: any) => {
3
+ value: any;
4
+ items: any;
5
+ };
3
6
  readonly clear: () => boolean;
4
7
  readonly delete: (value: string[], deletedItem: string) => {
5
8
  value: string[];
@@ -17,5 +17,4 @@ export * from './switch';
17
17
  export * from './tabs';
18
18
  export * from './textarea';
19
19
  export * from './tree-select';
20
- export * from './tree-select-multiple';
21
20
  export * from './upload';
@@ -16,11 +16,20 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
16
16
  default: string;
17
17
  validator: (value: string | number | undefined) => boolean;
18
18
  };
19
+ canClickItem: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ canCrossSteps: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
19
27
  modelValue: {
20
28
  type: globalThis.PropType<any>;
21
29
  };
22
30
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
- "update:modelValue": (value: any) => any;
31
+ change: (...args: any[]) => void;
32
+ "update:modelValue": (value: any) => void;
24
33
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
25
34
  options: {
26
35
  type: PropType<import('../../../..').LewStepsOption[]>;
@@ -39,13 +48,24 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
39
48
  default: string;
40
49
  validator: (value: string | number | undefined) => boolean;
41
50
  };
51
+ canClickItem: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ canCrossSteps: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
42
59
  modelValue: {
43
60
  type: globalThis.PropType<any>;
44
61
  };
45
62
  }>> & Readonly<{
63
+ onChange?: ((...args: any[]) => any) | undefined;
46
64
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
47
65
  }>, {
48
66
  minWidth: import("csstype").Property.Width<0 | (string & {})>;
49
67
  status: import('../../../..').LewStepsStatus;
68
+ canClickItem: boolean;
69
+ canCrossSteps: boolean;
50
70
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
51
71
  export default _default;
@@ -24,5 +24,13 @@ export declare const stepsProps: {
24
24
  default: string;
25
25
  validator: (value: string | number | undefined) => boolean;
26
26
  };
27
+ canClickItem: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ canCrossSteps: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
27
35
  };
28
36
  export type LewStepsProps = ExtractPublicPropTypes<typeof stepsProps>;
@@ -2,6 +2,7 @@ export interface TreeNode {
2
2
  key: string;
3
3
  children?: TreeNode[];
4
4
  disabled?: boolean;
5
+ [key: string]: any;
5
6
  }
6
7
  /**
7
8
  * 树形选择 Hook - 参考 Ant Design 和 Element UI 的实现