@aplus-frontend/ui
Version:
55 lines (54 loc) • 2.91 kB
TypeScript
import { ApValueSelectCardProps, ApValueSelectCardOption } from './interface';
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode } from 'vue';
declare const _default: <T extends Record<string, any> = Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
readonly onChange?: ((keys: (string | number)[]) => any) | undefined;
readonly onSelect?: ((key: string | number) => any) | undefined;
readonly onRemove?: ((key: string | number) => any) | undefined;
readonly onHighlight?: ((keys: (string | number)[]) => any) | undefined;
readonly "onUpdate:selectedKeys"?: ((keys: (string | number)[]) => any) | undefined;
readonly "onUpdate:highlightedKeys"?: ((keys: (string | number)[]) => any) | undefined;
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onChange" | "onSelect" | "onUpdate:selectedKeys" | "onRemove" | "onHighlight" | "onUpdate:highlightedKeys"> & ApValueSelectCardProps<T> & Partial<{}>> & PublicProps;
expose(exposed: ShallowUnwrapRef<{
popoverVisible: Ref<boolean, boolean>;
allOptions: ComputedRef< ApValueSelectCardOption<T>[]>;
selectedOptions: ComputedRef< ApValueSelectCardOption<T>[]>;
isSelected: (key: string | number) => boolean;
isHighlighted: (key: string | number) => boolean;
toggleOption: (key: string | number) => void;
addOption: (key: string | number) => void;
removeOption: (key: string | number) => void;
highlightOption: (key: string | number) => void;
}>): void;
attrs: any;
slots: {
'popover-label'?(_: {
option: ApValueSelectCardOption<T>;
}): any;
'popover-value'?(_: {
option: ApValueSelectCardOption<T>;
}): any;
'close-icon'?(_: {}): any;
label?(_: {
option: ApValueSelectCardOption<T>;
}): any;
value?(_: {
option: ApValueSelectCardOption<T>;
}): any;
'add-button'?(_: {}): any;
};
emit: {
(e: "update:selectedKeys", keys: (string | number)[]): void;
(e: "update:highlightedKeys", keys: (string | number)[]): void;
(e: "change", keys: (string | number)[]): void;
(e: "select", key: string | number): void;
(e: "remove", key: string | number): void;
(e: "highlight", keys: (string | number)[]): void;
};
}>) => VNode & {
__ctx?: Awaited<typeof __VLS_setup>;
};
export default _default;
type __VLS_PrettifyLocal<T> = {
[K in keyof T]: T[K];
} & {};