diff --git a/components/braftEditor/index.tsx b/components/braftEditor/index.tsx index 74897e7d691a07dd6dc78a7a0da008b05f9eeec6..337d5e239d9200631dde106ca1bd0613b5206f2e 100644 --- a/components/braftEditor/index.tsx +++ b/components/braftEditor/index.tsx @@ -31,6 +31,7 @@ interface IProps { cRef?: any; excludeControls?: string[]; // 不需要显示的控件 onChange?: Function + extendControls?: any[]; } const EditorDemo: React.FC = ({ @@ -103,6 +104,7 @@ const EditorDemo: React.FC = ({ ), }, + ...(others.extendControls || []) ]; const insertText = (text: string) => { setEditorState(ContentUtils.insertText(editorState, text)); diff --git a/components/braftEditor/preview.tsx b/components/braftEditor/preview.tsx index 23ef00d299ef32f804dcd11e21b2154d79677266..398711110b89f2024d7426af8f3504ef899a1a8c 100644 --- a/components/braftEditor/preview.tsx +++ b/components/braftEditor/preview.tsx @@ -6,7 +6,7 @@ interface IProps { cRef?: any; language?: 'zh' | 'en'; } -const Preview:React.FC = ({ htmlStr, cRef, language = 'zh' }) => { +const Preview: React.FC = ({ htmlStr, cRef, language = 'zh' }) => { const [visible, setVisible] = useState(false); useImperativeHandle(cRef, () => { @@ -32,7 +32,7 @@ const Preview:React.FC = ({ htmlStr, cRef, language = 'zh' }) => { footer={null} width={800} > -
+
); }; diff --git a/components/dataView-V2/_components/searchView/baseComponent/date/index.tsx b/components/dataView-V2/_components/searchView/baseComponent/date/index.tsx index 94b4c1888f4c2e327f03f4a73c56512c616da659..640193043dd15b121160b486e1904832b096cc3b 100644 --- a/components/dataView-V2/_components/searchView/baseComponent/date/index.tsx +++ b/components/dataView-V2/_components/searchView/baseComponent/date/index.tsx @@ -14,6 +14,8 @@ const CustomInput = (props: InputProps) => { return props.onChange(newVal) } } - return + return } export default CustomInput; \ No newline at end of file