UNPKG

birdpaper-ui

Version:

一个通用的 vue3 UI组件库。A common vue3 UI component library.

18 lines (17 loc) 529 B
import { InjectionKey } from "vue"; export declare type SelectBindValue = string | number; export declare class SelectOption { /** 选项文本 */ label: string; /** 选项值 */ value: SelectBindValue; } export interface SelectContext { /** 绑定值 */ modelValue: SelectBindValue; /** 当前选择 */ currentSelect: SelectOption; /** 选择后触发 */ onSelect: (value: SelectBindValue, payload: object) => void; } export declare const selectInjectionKey: InjectionKey<SelectContext>;