/// //#region src/plus/noteModal/types.d.ts interface NoteModalMultilingualValue { original: string; en: string; 'zh-CN': string; 'zh-HK': string; ja: string; pt: string; } interface NoteModalBaseProps { /** 是否显示弹窗 */ open?: boolean; /** 弹窗标题 */ title?: string; /** 备注最大字符数,默认与订单接口限制保持一致 */ maxLength?: number; /** 删除回调 */ onDelete?: () => void; /** 取消回调 */ onCancel?: () => void; /** 弹窗层级 */ zIndex?: number; /** 传给弹层根节点的样式类,用于业务场景做局部样式覆盖 */ modalClassName?: string; } interface PlainNoteModalProps extends NoteModalBaseProps { multilingual?: false; /** 初始内容 */ value?: string; /** 确认回调 */ onConfirm?: (value: string) => void; } interface MultilingualNoteModalProps extends NoteModalBaseProps { multilingual: true; /** 多语言初始内容 */ value?: NoteModalMultilingualValue; /** 多语言确认回调 */ onConfirm?: (value: NoteModalMultilingualValue) => void; } type NoteModalProps = PlainNoteModalProps | MultilingualNoteModalProps; type NoteModalComponent = React.FC; //#endregion export { NoteModalComponent };