mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
修复修复 dynamic import 用法问题
This commit is contained in:
parent
e38e1a5c2b
commit
1b3fb46ba6
@ -36,7 +36,7 @@ export interface DiffControlSchema extends FormBaseControl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loadComponent(): Promise<any> {
|
function loadComponent(): Promise<any> {
|
||||||
return import('../../components/Editor');
|
return import('../../components/Editor').then(item => item.default);
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DiffEditorProps
|
export interface DiffEditorProps
|
||||||
|
@ -29,8 +29,8 @@ function loadRichText(
|
|||||||
): () => Promise<any> {
|
): () => Promise<any> {
|
||||||
return () =>
|
return () =>
|
||||||
type === 'tinymce'
|
type === 'tinymce'
|
||||||
? import('../../components/Tinymce')
|
? import('../../components/Tinymce').then(item => item.default)
|
||||||
: import('../../components/RichText');
|
: import('../../components/RichText').then(item => item.default);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class RichTextControl extends React.Component<
|
export default class RichTextControl extends React.Component<
|
||||||
|
Loading…
Reference in New Issue
Block a user