comic-plus
Version:
<p align="center"> <img width="200px" src="./logo.png"/> </p>
18 lines (16 loc) • 582 B
TypeScript
import { InjectionKey } from 'vue';
import { SelectProps } from './main.props';
import { OptionProps } from './option.props';
import { Arrayable } from '../../../utils';
export type SelectValue = Arrayable<string | number>;
export type OptionInstance = {
key: string | number;
props: OptionProps;
};
export type SelectProvide = {
optionClick: (value: string | number) => void;
addOption: (option: OptionInstance) => void;
deleteOption: (key: string | number) => void;
props: SelectProps;
};
export declare const SELECT_PROVIDE: InjectionKey<SelectProvide>;