UNPKG

@artmate/chat

Version:

**开箱即用的AI组件库(基于 Vue3 + ElementPlus)**

18 lines (17 loc) 578 B
import { CascaderOption } from 'element-plus'; import { CSSProperties } from 'vue'; export interface RenderChildrenProps<T> { onTrigger: (info?: T | false) => void; onKeyDown: (e: KeyboardEvent) => void; } export interface SuggestionProps<T = any> { direction?: 'ltr' | 'rtl'; open?: boolean; className?: string; rootClassName?: string; style?: CSSProperties; items: CascaderOption[] | ((info?: T) => CascaderOption[]); block?: boolean; styles?: Partial<Record<string, CSSProperties>>; classNames?: Partial<Record<string, string>>; }