mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
commit
6eaec8c6d3
@ -36,7 +36,7 @@ export interface DiffControlSchema extends FormBaseControl {
|
||||
}
|
||||
|
||||
function loadComponent(): Promise<any> {
|
||||
return import('../../components/Editor');
|
||||
return import('../../components/Editor').then(item => item.default);
|
||||
}
|
||||
|
||||
export interface DiffEditorProps
|
||||
|
@ -29,8 +29,8 @@ function loadRichText(
|
||||
): () => Promise<any> {
|
||||
return () =>
|
||||
type === 'tinymce'
|
||||
? import('../../components/Tinymce')
|
||||
: import('../../components/RichText');
|
||||
? import('../../components/Tinymce').then(item => item.default)
|
||||
: import('../../components/RichText').then(item => item.default);
|
||||
}
|
||||
|
||||
export default class RichTextControl extends React.Component<
|
||||
|
Loading…
Reference in New Issue
Block a user