import { IElectronSignaturesProps, IElectronSignaturesItem } from '../interface'; interface IOptions { /** * 是否开启非受控模式 * 非受控模式开启后,数值的改变交由内部控制。外部只需要在合适的时机 获取数据即可 */ isUnControlled?: IElectronSignaturesProps['isUnControlled']; /** * 触发外部onChange事件 */ onValueChange?: IElectronSignaturesItem['onValueChange']; /** * 当前数据类型 */ dataType?: IElectronSignaturesItem['dataType']; /** * 新附件 */ records?: IElectronSignaturesItem['fileList']; setRecords?: any; /** 清空已选印章相关数据 */ onClearElectronListData?: any; /** 清空已盖印章相关数据 */ onClearElectronSetting?: any; deptId?: any; secondDepId?: any; electronicSealIdList?: any; } /** * 是否需要给附件加盖电子印章 */ export default function useParseIsNeedElectronData(options: IOptions): { /** 是否加盖电子印章改变时触发 */ onIsStampElectronChange: (this: any, checked: any, index: any) => void; /** 当前列表数据中 是否有选择加盖电子印章的数据 */ isStampElectron: boolean; /** 清空数据 */ clearAllElectronDataHandler: (this: any, dataType: any) => void; }; export {};