mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +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> {
|
||||
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