UNPKG

jamis

Version:

一种支持通过JSON配置方式生成页面的组件库

23 lines (22 loc) 873 B
import type { LocaleProps, Option, ThemeProps } from 'jamis-core'; import type { UserSelectProps } from './UserSelect.types'; export interface UserSelectTop extends UserSelectProps { title: string; deferApi?: string; searchApi?: string; searchable?: boolean; searchParam?: PlainObject; searchTerm?: string; } export interface UserTabSelectProps extends ThemeProps, LocaleProps { tabOptions?: Array<UserSelectTop>; multiple?: boolean; placeholder?: string; valueField: string; labelField: string; selection?: Array<Option>; data?: PlainObject; onChange: (value: Array<Option> | Option) => void; onSearch?: (term: string, cancelExecutor?: (cancel: Function) => void, paramObj?: PlainObject) => Promise<any[]> | undefined; deferLoad: (data?: Object, isRef?: boolean, param?: PlainObject) => Promise<Option[]>; }