///
import * as Icons from '@alipay/sofa-icons';
export type FunctionConfig = {
/**
* 功能名称
*/
name: string;
/**
* 是否禁用
*/
disabled?: boolean;
/**
* 功能文本
*/
text: string;
/**
* 功能图标
*/
icon?: keyof typeof Icons | React.ReactElement;
};
export interface FunctionProps {
/**
* 功能列表
* @type { boolean | FunctionConfig[] }
* @default true
*/
functions?: boolean | FunctionConfig[];
/**
* 功能变化回调
* @param { Partial> } value 功能值
*/
onChange?: (value: Partial>) => void;
}