fix(amis): 修复富文本组件/右侧面板/属性/状态/静态展示属性配置失效问题

This commit is contained in:
wibetter 2023-09-26 18:12:44 +08:00
parent 5bbbec2962
commit 754490857d

View File

@ -280,6 +280,7 @@ export default class RichTextControl extends React.Component<
value,
onChange,
disabled,
static: isStatic,
size,
vendor,
env,
@ -290,6 +291,19 @@ export default class RichTextControl extends React.Component<
const finnalVendor = vendor || (env.richTextToken ? 'froala' : 'tinymce');
if (isStatic) {
return (
<div
className={cx(`${ns}RichTextControl`, className, {
'is-focused': this.state.focused,
'is-disabled': disabled,
[`${ns}RichTextControl--border${ucFirst(borderMode)}`]: borderMode
})}
dangerouslySetInnerHTML={{__html: env.filterHtml(value)}}
></div>
);
}
return (
<div
className={cx(`${ns}RichTextControl`, className, {