UNPKG

element-plus

Version:

A Component Library for Vue3.0

57 lines (56 loc) 1.5 kB
import type { VNode } from 'vue'; export declare type Key = string | number; export declare type DataItem = { key: Key; label: string; disabled: boolean; }; export declare type Format = { noChecked: string; hasChecked: string; }; export declare type Props = { label: string; key: string; disabled: string; }; export declare type TargetOrder = 'original' | 'push' | 'unshift'; export interface TransferProps { data: DataItem[]; titles: [string, string]; buttonTexts: [string, string]; filterPlaceholder: string; filterMethod?: (query: string, item: DataItem) => boolean; leftDefaultChecked: Key[]; rightDefaultChecked: Key[]; renderContent?: (h: any, option: any) => VNode; modelValue: Key[]; format: Format; filterable: boolean; props: Props; targetOrder: TargetOrder; } export interface TransferCheckedState { leftChecked: Key[]; rightChecked: Key[]; } export interface TransferPanelProps { data: DataItem[]; optionRender: ({ option: VNode }: { option: any; }) => VNode; placeholder: string; title: string; filterable: boolean; format: Format; filterMethod: (query: string, item: DataItem) => boolean; defaultChecked: Key[]; props: Props; } export interface TransferPanelState { checked: Key[]; allChecked: boolean; query: string; inputHover: boolean; checkChangeByUser: boolean; }