完全跑通1.0版本

This commit is contained in:
2026-05-26 12:56:03 +08:00
parent 2ece5174a7
commit 93c714a93b
11557 changed files with 1648225 additions and 36 deletions

View File

@@ -0,0 +1,59 @@
import { FixedSizeListInstance } from "../../virtual-list/src/components/fixed-size-list.js";
import { DynamicSizeListInstance } from "../../virtual-list/src/components/dynamic-size-list.js";
import { ScrollbarDirection } from "../../scrollbar/src/scrollbar.js";
import { Option } from "./select.types.js";
import * as _$vue from "vue";
import { ComponentPublicInstance, ComputedRef, ExtractPropTypes, Ref } from "vue";
import * as _$vue_jsx_runtime0 from "vue/jsx-runtime";
//#region ../../packages/components/select-v2/src/select-dropdown.d.ts
declare const props: {
loading: BooleanConstructor;
data: {
type: ArrayConstructor;
required: true;
};
hoveringIndex: NumberConstructor;
width: NumberConstructor;
id: StringConstructor;
ariaLabel: StringConstructor;
};
interface SelectDropdownExposed {
listRef: Ref<FixedSizeListInstance | DynamicSizeListInstance | undefined>;
isSized: ComputedRef<boolean>;
isItemDisabled: (modelValue: any[] | any, selected: boolean) => boolean;
isItemHovering: (target: number) => boolean;
isItemSelected: (modelValue: any[] | any, target: Option) => boolean;
scrollToItem: (index: number) => void;
resetScrollTop: () => void;
}
type SelectDropdownInstance = ComponentPublicInstance<ExtractPropTypes<typeof props>, SelectDropdownExposed>;
declare const _default: _$vue.DefineComponent<ExtractPropTypes<{
loading: BooleanConstructor;
data: {
type: ArrayConstructor;
required: true;
};
hoveringIndex: NumberConstructor;
width: NumberConstructor;
id: StringConstructor;
ariaLabel: StringConstructor;
}>, () => _$vue_jsx_runtime0.JSX.Element, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
'end-reached': (direction: ScrollbarDirection) => boolean;
}, string, _$vue.PublicProps, Readonly<ExtractPropTypes<{
loading: BooleanConstructor;
data: {
type: ArrayConstructor;
required: true;
};
hoveringIndex: NumberConstructor;
width: NumberConstructor;
id: StringConstructor;
ariaLabel: StringConstructor;
}>> & Readonly<{
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
}>, {
loading: boolean;
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
//#endregion
export { SelectDropdownInstance, _default as default };