UNPKG

@aliretail/react-materials-components

Version:
23 lines (22 loc) 625 B
import * as React from 'react'; export interface SelectConditionProps { useCompact?: boolean; last: boolean; index: number; condition: Condition; removable: boolean; onAdd: (v: Condition, index?: number) => void; onRemove: (key: string) => void; onUpdate: (key: string, payload: Partial<Condition>) => void; onClear: (key: string) => void; } export interface Condition { /** 前端id */ id: string; key?: string; keyCalcType?: string; value?: any; [key: string]: any; } declare const SelectCondition: React.FC<SelectConditionProps>; export default SelectCondition;