@dao-style/core 1.13.1-beta.1 → 1.13.1-beta.3

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,5 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
1
+ import { ExtractPropTypes, PropType, UnwrapNestedRefs } from 'vue';
2
+ import { UseInfiniteScrollOptions, useScroll } from '@vueuse/core';
2
3
  import { DaoSelectSearchFn, OptionValue } from './types';
3
4
  import { ValidateStatus } from '../../utils/constant';
4
5
  export declare const selectProps: {
@@ -64,6 +65,14 @@ export declare const selectProps: {
64
65
  type: BooleanConstructor;
65
66
  default: boolean;
66
67
  };
68
+ enableLazyLoad: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ lazyLoadOptions: {
73
+ type: PropType<UseInfiniteScrollOptions>;
74
+ default: undefined;
75
+ };
67
76
  };
68
77
  export type SelectProps = ExtractPropTypes<typeof selectProps>;
69
78
  export declare const optionProps: {
@@ -87,5 +96,6 @@ export declare const selectEmits: {
87
96
  'search-change': (search: string) => void;
88
97
  close: () => void;
89
98
  open: () => void;
99
+ 'load-more': (state: UnwrapNestedRefs<ReturnType<typeof useScroll>>) => void;
90
100
  };
91
101
  export type SelectEmits = typeof selectEmits;
@@ -21,6 +21,8 @@ declare const DaoSelect: {
21
21
  menuClass: string;
22
22
  optionLoading: boolean;
23
23
  hideSelectAll: boolean;
24
+ enableLazyLoad: boolean;
25
+ lazyLoadOptions: import("@vueuse/core").UseInfiniteScrollOptions;
24
26
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
25
27
  modelValue: {
26
28
  type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
@@ -84,13 +86,22 @@ declare const DaoSelect: {
84
86
  type: BooleanConstructor;
85
87
  default: boolean;
86
88
  };
89
+ enableLazyLoad: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ lazyLoadOptions: {
94
+ type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
95
+ default: undefined;
96
+ };
87
97
  }>> & {
88
98
  onChange?: ((...args: any[]) => any) | undefined;
89
99
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
90
100
  onOpen?: ((...args: any[]) => any) | undefined;
91
101
  onClose?: ((...args: any[]) => any) | undefined;
92
102
  "onSearch-change"?: ((...args: any[]) => any) | undefined;
93
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "modelValue" | "disabled" | "appendTo" | "size" | "multiple" | "loading" | "status" | "clearable" | "placeholder" | "optionsPlaceholder" | "searchPlaceholder" | "menuClass" | "optionLoading" | "hideSelectAll">;
103
+ "onLoad-more"?: ((...args: any[]) => any) | undefined;
104
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "modelValue" | "disabled" | "appendTo" | "size" | "multiple" | "loading" | "status" | "clearable" | "placeholder" | "optionsPlaceholder" | "searchPlaceholder" | "menuClass" | "optionLoading" | "hideSelectAll" | "enableLazyLoad" | "lazyLoadOptions">;
94
105
  $attrs: {
95
106
  [x: string]: unknown;
96
107
  };
@@ -102,7 +113,7 @@ declare const DaoSelect: {
102
113
  }>;
103
114
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
104
115
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
105
- $emit: (event: "open" | "close" | "change" | "update:modelValue" | "search-change", ...args: any[]) => void;
116
+ $emit: (event: "open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more", ...args: any[]) => void;
106
117
  $el: any;
107
118
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
108
119
  modelValue: {
@@ -167,12 +178,21 @@ declare const DaoSelect: {
167
178
  type: BooleanConstructor;
168
179
  default: boolean;
169
180
  };
181
+ enableLazyLoad: {
182
+ type: BooleanConstructor;
183
+ default: boolean;
184
+ };
185
+ lazyLoadOptions: {
186
+ type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
187
+ default: undefined;
188
+ };
170
189
  }>> & {
171
190
  onChange?: ((...args: any[]) => any) | undefined;
172
191
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
173
192
  onOpen?: ((...args: any[]) => any) | undefined;
174
193
  onClose?: ((...args: any[]) => any) | undefined;
175
194
  "onSearch-change"?: ((...args: any[]) => any) | undefined;
195
+ "onLoad-more"?: ((...args: any[]) => any) | undefined;
176
196
  }, {
177
197
  t: import("vue-i18n").ComposerTranslation<{
178
198
  [x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
@@ -613,7 +633,8 @@ declare const DaoSelect: {
613
633
  handleCheckAll: (checked: boolean) => void;
614
634
  resetCurrentVal: () => void;
615
635
  handleUpdateOptions: (data: OptionValue[]) => void;
616
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change")[], string, {
636
+ optionListRef: import("vue").Ref<HTMLUListElement | undefined>;
637
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more")[], string, {
617
638
  search: boolean | import("./types").DaoSelectSearchFn;
618
639
  modelValue: string | number | boolean | unknown[];
619
640
  disabled: boolean;
@@ -629,6 +650,8 @@ declare const DaoSelect: {
629
650
  menuClass: string;
630
651
  optionLoading: boolean;
631
652
  hideSelectAll: boolean;
653
+ enableLazyLoad: boolean;
654
+ lazyLoadOptions: import("@vueuse/core").UseInfiniteScrollOptions;
632
655
  }, {}, string> & {
633
656
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
634
657
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -712,12 +735,21 @@ declare const DaoSelect: {
712
735
  type: BooleanConstructor;
713
736
  default: boolean;
714
737
  };
738
+ enableLazyLoad: {
739
+ type: BooleanConstructor;
740
+ default: boolean;
741
+ };
742
+ lazyLoadOptions: {
743
+ type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
744
+ default: undefined;
745
+ };
715
746
  }>> & {
716
747
  onChange?: ((...args: any[]) => any) | undefined;
717
748
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
718
749
  onOpen?: ((...args: any[]) => any) | undefined;
719
750
  onClose?: ((...args: any[]) => any) | undefined;
720
751
  "onSearch-change"?: ((...args: any[]) => any) | undefined;
752
+ "onLoad-more"?: ((...args: any[]) => any) | undefined;
721
753
  } & import("vue").ShallowUnwrapRef<{
722
754
  t: import("vue-i18n").ComposerTranslation<{
723
755
  [x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
@@ -1158,6 +1190,7 @@ declare const DaoSelect: {
1158
1190
  handleCheckAll: (checked: boolean) => void;
1159
1191
  resetCurrentVal: () => void;
1160
1192
  handleUpdateOptions: (data: OptionValue[]) => void;
1193
+ optionListRef: import("vue").Ref<HTMLUListElement | undefined>;
1161
1194
  }> & {} & import("vue").ComponentCustomProperties & {};
1162
1195
  __isFragment?: undefined;
1163
1196
  __isTeleport?: undefined;
@@ -1225,12 +1258,21 @@ declare const DaoSelect: {
1225
1258
  type: BooleanConstructor;
1226
1259
  default: boolean;
1227
1260
  };
1261
+ enableLazyLoad: {
1262
+ type: BooleanConstructor;
1263
+ default: boolean;
1264
+ };
1265
+ lazyLoadOptions: {
1266
+ type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
1267
+ default: undefined;
1268
+ };
1228
1269
  }>> & {
1229
1270
  onChange?: ((...args: any[]) => any) | undefined;
1230
1271
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1231
1272
  onOpen?: ((...args: any[]) => any) | undefined;
1232
1273
  onClose?: ((...args: any[]) => any) | undefined;
1233
1274
  "onSearch-change"?: ((...args: any[]) => any) | undefined;
1275
+ "onLoad-more"?: ((...args: any[]) => any) | undefined;
1234
1276
  }, {
1235
1277
  t: import("vue-i18n").ComposerTranslation<{
1236
1278
  [x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
@@ -1671,7 +1713,8 @@ declare const DaoSelect: {
1671
1713
  handleCheckAll: (checked: boolean) => void;
1672
1714
  resetCurrentVal: () => void;
1673
1715
  handleUpdateOptions: (data: OptionValue[]) => void;
1674
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change")[], "open" | "close" | "change" | "update:modelValue" | "search-change", {
1716
+ optionListRef: import("vue").Ref<HTMLUListElement | undefined>;
1717
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more")[], "open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more", {
1675
1718
  search: boolean | import("./types").DaoSelectSearchFn;
1676
1719
  modelValue: string | number | boolean | unknown[];
1677
1720
  disabled: boolean;
@@ -1687,6 +1730,8 @@ declare const DaoSelect: {
1687
1730
  menuClass: string;
1688
1731
  optionLoading: boolean;
1689
1732
  hideSelectAll: boolean;
1733
+ enableLazyLoad: boolean;
1734
+ lazyLoadOptions: import("@vueuse/core").UseInfiniteScrollOptions;
1690
1735
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new <T_1 extends boolean>({ multiple: T, }: {
1691
1736
  multiple: any;
1692
1737
  }) => {
@@ -63,6 +63,14 @@ declare const _default: import("vue").DefineComponent<{
63
63
  type: BooleanConstructor;
64
64
  default: boolean;
65
65
  };
66
+ enableLazyLoad: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ lazyLoadOptions: {
71
+ type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
72
+ default: undefined;
73
+ };
66
74
  }, {
67
75
  t: import("vue-i18n").ComposerTranslation<{
68
76
  [x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
@@ -503,7 +511,8 @@ declare const _default: import("vue").DefineComponent<{
503
511
  handleCheckAll: (checked: boolean) => void;
504
512
  resetCurrentVal: () => void;
505
513
  handleUpdateOptions: (data: DaoSelectOption['value'][]) => void;
506
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change")[], "open" | "close" | "change" | "update:modelValue" | "search-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
514
+ optionListRef: import("vue").Ref<HTMLUListElement | undefined>;
515
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more")[], "open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
507
516
  modelValue: {
508
517
  type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
509
518
  default: undefined;
@@ -566,12 +575,21 @@ declare const _default: import("vue").DefineComponent<{
566
575
  type: BooleanConstructor;
567
576
  default: boolean;
568
577
  };
578
+ enableLazyLoad: {
579
+ type: BooleanConstructor;
580
+ default: boolean;
581
+ };
582
+ lazyLoadOptions: {
583
+ type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
584
+ default: undefined;
585
+ };
569
586
  }>> & {
570
587
  onChange?: ((...args: any[]) => any) | undefined;
571
588
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
572
589
  onOpen?: ((...args: any[]) => any) | undefined;
573
590
  onClose?: ((...args: any[]) => any) | undefined;
574
591
  "onSearch-change"?: ((...args: any[]) => any) | undefined;
592
+ "onLoad-more"?: ((...args: any[]) => any) | undefined;
575
593
  }, {
576
594
  search: boolean | import("./types").DaoSelectSearchFn;
577
595
  modelValue: string | number | boolean | unknown[];
@@ -588,5 +606,7 @@ declare const _default: import("vue").DefineComponent<{
588
606
  menuClass: string;
589
607
  optionLoading: boolean;
590
608
  hideSelectAll: boolean;
609
+ enableLazyLoad: boolean;
610
+ lazyLoadOptions: import("@vueuse/core").UseInfiniteScrollOptions;
591
611
  }>;
592
612
  export default _default;
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
2
  export declare const tagProps: {
3
3
  closable: {
4
4
  type: BooleanConstructor;
@@ -16,6 +16,10 @@ export declare const tagProps: {
16
16
  type: StringConstructor;
17
17
  default: string;
18
18
  };
19
+ size: {
20
+ type: PropType<"sm" | "md">;
21
+ default: string;
22
+ };
19
23
  };
20
24
  export type TagProps = ExtractPropTypes<typeof tagProps>;
21
25
  export declare const tagEmits: {
@@ -8,6 +8,7 @@ declare const DaoTag: {
8
8
  label: string;
9
9
  value: string;
10
10
  separator: string;
11
+ size: "sm" | "md";
11
12
  closable: boolean;
12
13
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
13
14
  closable: {
@@ -26,9 +27,13 @@ declare const DaoTag: {
26
27
  type: StringConstructor;
27
28
  default: string;
28
29
  };
30
+ size: {
31
+ type: import("vue").PropType<"sm" | "md">;
32
+ default: string;
33
+ };
29
34
  }>> & {
30
35
  onClose?: ((...args: any[]) => any) | undefined;
31
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "value" | "separator" | "closable">;
36
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "label" | "value" | "separator" | "size" | "closable">;
32
37
  $attrs: {
33
38
  [x: string]: unknown;
34
39
  };
@@ -59,12 +64,17 @@ declare const DaoTag: {
59
64
  type: StringConstructor;
60
65
  default: string;
61
66
  };
67
+ size: {
68
+ type: import("vue").PropType<"sm" | "md">;
69
+ default: string;
70
+ };
62
71
  }>> & {
63
72
  onClose?: ((...args: any[]) => any) | undefined;
64
73
  }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], string, {
65
74
  label: string;
66
75
  value: string;
67
76
  separator: string;
77
+ size: "sm" | "md";
68
78
  closable: boolean;
69
79
  }, {}, string> & {
70
80
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
@@ -103,6 +113,10 @@ declare const DaoTag: {
103
113
  type: StringConstructor;
104
114
  default: string;
105
115
  };
116
+ size: {
117
+ type: import("vue").PropType<"sm" | "md">;
118
+ default: string;
119
+ };
106
120
  }>> & {
107
121
  onClose?: ((...args: any[]) => any) | undefined;
108
122
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
@@ -126,12 +140,17 @@ declare const DaoTag: {
126
140
  type: StringConstructor;
127
141
  default: string;
128
142
  };
143
+ size: {
144
+ type: import("vue").PropType<"sm" | "md">;
145
+ default: string;
146
+ };
129
147
  }>> & {
130
148
  onClose?: ((...args: any[]) => any) | undefined;
131
149
  }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", {
132
150
  label: string;
133
151
  value: string;
134
152
  separator: string;
153
+ size: "sm" | "md";
135
154
  closable: boolean;
136
155
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
137
156
  $props: Partial<TagProps>;
@@ -15,6 +15,10 @@ declare const _default: import("vue").DefineComponent<{
15
15
  type: StringConstructor;
16
16
  default: string;
17
17
  };
18
+ size: {
19
+ type: import("vue").PropType<"sm" | "md">;
20
+ default: string;
21
+ };
18
22
  }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
23
  closable: {
20
24
  type: BooleanConstructor;
@@ -32,12 +36,17 @@ declare const _default: import("vue").DefineComponent<{
32
36
  type: StringConstructor;
33
37
  default: string;
34
38
  };
39
+ size: {
40
+ type: import("vue").PropType<"sm" | "md">;
41
+ default: string;
42
+ };
35
43
  }>> & {
36
44
  onClose?: ((...args: any[]) => any) | undefined;
37
45
  }, {
38
46
  label: string;
39
47
  value: string;
40
48
  separator: string;
49
+ size: "sm" | "md";
41
50
  closable: boolean;
42
51
  }>;
43
52
  export default _default;
@@ -1,4 +1,5 @@
1
- import type { ExtractPropTypes, PropType } from 'vue';
1
+ import type { ExtractPropTypes, PropType, UnwrapNestedRefs } from 'vue';
2
+ import { useScroll } from '@vueuse/core';
2
3
  import type { DaoVirtualSelectSearchFn, OptionType } from './types';
3
4
  import { OptionValue } from '../select/types';
4
5
  export declare const virtualSelectProps: {
@@ -80,6 +81,14 @@ export declare const virtualSelectProps: {
80
81
  type: BooleanConstructor;
81
82
  default: boolean;
82
83
  };
84
+ enableLazyLoad: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ lazyLoadOptions: {
89
+ type: PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
90
+ default: undefined;
91
+ };
83
92
  };
84
93
  export type virtualSelectProps = ExtractPropTypes<typeof virtualSelectProps>;
85
94
  export declare const virtualOptionProps: {
@@ -103,6 +112,7 @@ export declare const virtualSelectEmits: {
103
112
  'search-change': (search: string) => void;
104
113
  close: () => void;
105
114
  open: () => void;
115
+ 'load-more': (state: UnwrapNestedRefs<ReturnType<typeof useScroll>>) => void;
106
116
  };
107
117
  export declare const virtualOptionEmits: {
108
118
  select: (val: OptionType) => void;
@@ -23,6 +23,8 @@ declare const DaoVirtualSelect: {
23
23
  menuClass: string;
24
24
  optionLoading: boolean;
25
25
  hideSelectAll: boolean;
26
+ enableLazyLoad: boolean;
27
+ lazyLoadOptions: import("@vueuse/core").UseInfiniteScrollOptions;
26
28
  valueKey: string;
27
29
  labelKey: string;
28
30
  itemHeight: number;
@@ -105,13 +107,22 @@ declare const DaoVirtualSelect: {
105
107
  type: BooleanConstructor;
106
108
  default: boolean;
107
109
  };
110
+ enableLazyLoad: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
114
+ lazyLoadOptions: {
115
+ type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
116
+ default: undefined;
117
+ };
108
118
  }>> & {
109
119
  onChange?: ((...args: any[]) => any) | undefined;
110
120
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
111
121
  onOpen?: ((...args: any[]) => any) | undefined;
112
122
  onClose?: ((...args: any[]) => any) | undefined;
113
123
  "onSearch-change"?: ((...args: any[]) => any) | undefined;
114
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "modelValue" | "disabled" | "appendTo" | "size" | "multiple" | "options" | "loading" | "status" | "clearable" | "placeholder" | "optionsPlaceholder" | "searchPlaceholder" | "menuClass" | "optionLoading" | "hideSelectAll" | "valueKey" | "labelKey" | "itemHeight">;
124
+ "onLoad-more"?: ((...args: any[]) => any) | undefined;
125
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "modelValue" | "disabled" | "appendTo" | "size" | "multiple" | "options" | "loading" | "status" | "clearable" | "placeholder" | "optionsPlaceholder" | "searchPlaceholder" | "menuClass" | "optionLoading" | "hideSelectAll" | "enableLazyLoad" | "lazyLoadOptions" | "valueKey" | "labelKey" | "itemHeight">;
115
126
  $attrs: {
116
127
  [x: string]: unknown;
117
128
  };
@@ -123,7 +134,7 @@ declare const DaoVirtualSelect: {
123
134
  }>;
124
135
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
125
136
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
126
- $emit: (event: "open" | "close" | "change" | "update:modelValue" | "search-change", ...args: any[]) => void;
137
+ $emit: (event: "open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more", ...args: any[]) => void;
127
138
  $el: any;
128
139
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
129
140
  search: {
@@ -204,12 +215,21 @@ declare const DaoVirtualSelect: {
204
215
  type: BooleanConstructor;
205
216
  default: boolean;
206
217
  };
218
+ enableLazyLoad: {
219
+ type: BooleanConstructor;
220
+ default: boolean;
221
+ };
222
+ lazyLoadOptions: {
223
+ type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
224
+ default: undefined;
225
+ };
207
226
  }>> & {
208
227
  onChange?: ((...args: any[]) => any) | undefined;
209
228
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
210
229
  onOpen?: ((...args: any[]) => any) | undefined;
211
230
  onClose?: ((...args: any[]) => any) | undefined;
212
231
  "onSearch-change"?: ((...args: any[]) => any) | undefined;
232
+ "onLoad-more"?: ((...args: any[]) => any) | undefined;
213
233
  }, {
214
234
  t: import("vue-i18n").ComposerTranslation<{
215
235
  [x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
@@ -620,7 +640,8 @@ declare const DaoVirtualSelect: {
620
640
  onSelect: (option: OptionType) => void;
621
641
  handleCheckAll: (checked: boolean) => void;
622
642
  isDisabled: import("vue").ComputedRef<boolean>;
623
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change")[], string, {
643
+ optionListRef: import("vue").Ref<any>;
644
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more")[], string, {
624
645
  search: boolean | import("./types").DaoVirtualSelectSearchFn;
625
646
  modelValue: string | number | boolean | unknown[];
626
647
  disabled: boolean;
@@ -637,6 +658,8 @@ declare const DaoVirtualSelect: {
637
658
  menuClass: string;
638
659
  optionLoading: boolean;
639
660
  hideSelectAll: boolean;
661
+ enableLazyLoad: boolean;
662
+ lazyLoadOptions: import("@vueuse/core").UseInfiniteScrollOptions;
640
663
  valueKey: string;
641
664
  labelKey: string;
642
665
  itemHeight: number;
@@ -739,12 +762,21 @@ declare const DaoVirtualSelect: {
739
762
  type: BooleanConstructor;
740
763
  default: boolean;
741
764
  };
765
+ enableLazyLoad: {
766
+ type: BooleanConstructor;
767
+ default: boolean;
768
+ };
769
+ lazyLoadOptions: {
770
+ type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
771
+ default: undefined;
772
+ };
742
773
  }>> & {
743
774
  onChange?: ((...args: any[]) => any) | undefined;
744
775
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
745
776
  onOpen?: ((...args: any[]) => any) | undefined;
746
777
  onClose?: ((...args: any[]) => any) | undefined;
747
778
  "onSearch-change"?: ((...args: any[]) => any) | undefined;
779
+ "onLoad-more"?: ((...args: any[]) => any) | undefined;
748
780
  } & import("vue").ShallowUnwrapRef<{
749
781
  t: import("vue-i18n").ComposerTranslation<{
750
782
  [x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
@@ -1155,6 +1187,7 @@ declare const DaoVirtualSelect: {
1155
1187
  onSelect: (option: OptionType) => void;
1156
1188
  handleCheckAll: (checked: boolean) => void;
1157
1189
  isDisabled: import("vue").ComputedRef<boolean>;
1190
+ optionListRef: import("vue").Ref<any>;
1158
1191
  }> & {} & import("vue").ComponentCustomProperties & {};
1159
1192
  __isFragment?: undefined;
1160
1193
  __isTeleport?: undefined;
@@ -1238,12 +1271,21 @@ declare const DaoVirtualSelect: {
1238
1271
  type: BooleanConstructor;
1239
1272
  default: boolean;
1240
1273
  };
1274
+ enableLazyLoad: {
1275
+ type: BooleanConstructor;
1276
+ default: boolean;
1277
+ };
1278
+ lazyLoadOptions: {
1279
+ type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
1280
+ default: undefined;
1281
+ };
1241
1282
  }>> & {
1242
1283
  onChange?: ((...args: any[]) => any) | undefined;
1243
1284
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1244
1285
  onOpen?: ((...args: any[]) => any) | undefined;
1245
1286
  onClose?: ((...args: any[]) => any) | undefined;
1246
1287
  "onSearch-change"?: ((...args: any[]) => any) | undefined;
1288
+ "onLoad-more"?: ((...args: any[]) => any) | undefined;
1247
1289
  }, {
1248
1290
  t: import("vue-i18n").ComposerTranslation<{
1249
1291
  [x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
@@ -1654,7 +1696,8 @@ declare const DaoVirtualSelect: {
1654
1696
  onSelect: (option: OptionType) => void;
1655
1697
  handleCheckAll: (checked: boolean) => void;
1656
1698
  isDisabled: import("vue").ComputedRef<boolean>;
1657
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change")[], "open" | "close" | "change" | "update:modelValue" | "search-change", {
1699
+ optionListRef: import("vue").Ref<any>;
1700
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more")[], "open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more", {
1658
1701
  search: boolean | import("./types").DaoVirtualSelectSearchFn;
1659
1702
  modelValue: string | number | boolean | unknown[];
1660
1703
  disabled: boolean;
@@ -1671,6 +1714,8 @@ declare const DaoVirtualSelect: {
1671
1714
  menuClass: string;
1672
1715
  optionLoading: boolean;
1673
1716
  hideSelectAll: boolean;
1717
+ enableLazyLoad: boolean;
1718
+ lazyLoadOptions: import("@vueuse/core").UseInfiniteScrollOptions;
1674
1719
  valueKey: string;
1675
1720
  labelKey: string;
1676
1721
  itemHeight: number;
@@ -80,6 +80,14 @@ declare const _default: import("vue").DefineComponent<{
80
80
  type: BooleanConstructor;
81
81
  default: boolean;
82
82
  };
83
+ enableLazyLoad: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ lazyLoadOptions: {
88
+ type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
89
+ default: undefined;
90
+ };
83
91
  }, {
84
92
  t: import("vue-i18n").ComposerTranslation<{
85
93
  [x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
@@ -490,7 +498,8 @@ declare const _default: import("vue").DefineComponent<{
490
498
  onSelect: (option: OptionType) => void;
491
499
  handleCheckAll: (checked: boolean) => void;
492
500
  isDisabled: import("vue").ComputedRef<boolean>;
493
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change")[], "open" | "close" | "change" | "update:modelValue" | "search-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
501
+ optionListRef: import("vue").Ref<any>;
502
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more")[], "open" | "close" | "change" | "update:modelValue" | "search-change" | "load-more", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
494
503
  search: {
495
504
  type: import("vue").PropType<boolean | import("./types").DaoVirtualSelectSearchFn>;
496
505
  default: boolean;
@@ -569,12 +578,21 @@ declare const _default: import("vue").DefineComponent<{
569
578
  type: BooleanConstructor;
570
579
  default: boolean;
571
580
  };
581
+ enableLazyLoad: {
582
+ type: BooleanConstructor;
583
+ default: boolean;
584
+ };
585
+ lazyLoadOptions: {
586
+ type: import("vue").PropType<import("@vueuse/core").UseInfiniteScrollOptions>;
587
+ default: undefined;
588
+ };
572
589
  }>> & {
573
590
  onChange?: ((...args: any[]) => any) | undefined;
574
591
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
575
592
  onOpen?: ((...args: any[]) => any) | undefined;
576
593
  onClose?: ((...args: any[]) => any) | undefined;
577
594
  "onSearch-change"?: ((...args: any[]) => any) | undefined;
595
+ "onLoad-more"?: ((...args: any[]) => any) | undefined;
578
596
  }, {
579
597
  search: boolean | import("./types").DaoVirtualSelectSearchFn;
580
598
  modelValue: string | number | boolean | unknown[];
@@ -592,6 +610,8 @@ declare const _default: import("vue").DefineComponent<{
592
610
  menuClass: string;
593
611
  optionLoading: boolean;
594
612
  hideSelectAll: boolean;
613
+ enableLazyLoad: boolean;
614
+ lazyLoadOptions: import("@vueuse/core").UseInfiniteScrollOptions;
595
615
  valueKey: string;
596
616
  labelKey: string;
597
617
  itemHeight: number;