mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-16 01:40:53 +08:00
[amis-saas-5460]代码编辑器,默认值js报错时,组件中无法显示代码
Change-Id: I61c3003daddda542c8a46f6d06c84020ec168ee7
This commit is contained in:
parent
2f2f57eed9
commit
1eacd22079
@ -205,6 +205,11 @@ export class CodeEditorControlPlugin extends BasePlugin {
|
|||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
filterProps(props: any) {
|
||||||
|
props.disabled = true;
|
||||||
|
return props;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
registerEditorPlugin(CodeEditorControlPlugin);
|
registerEditorPlugin(CodeEditorControlPlugin);
|
||||||
|
@ -214,6 +214,11 @@ export class DiffEditorControlPlugin extends BasePlugin {
|
|||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
filterProps(props: any) {
|
||||||
|
props.disabled = true;
|
||||||
|
return props;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
registerEditorPlugin(DiffEditorControlPlugin);
|
registerEditorPlugin(DiffEditorControlPlugin);
|
||||||
|
Loading…
Reference in New Issue
Block a user