fix:编辑器底部栏配置,根据文本实时更新预览显示

This commit is contained in:
Apple 2022-10-13 14:06:58 +08:00
parent 1e5f5ea9bb
commit 39d9f0ab49
1 changed files with 2 additions and 2 deletions

View File

@ -206,13 +206,13 @@ export default class edittemplate extends React.Component {
let model2 = this.state.navlist;
model2[index].text = e;
this.setState({ navlist: model2 })
Bus.emit('titleBarConfig', {attr:'navlist',value:model2})
Bus.emit('bottomBarConfig', {attr:'navlist',value:model2})
}}
onClearItem={(e) => {
let model2 = this.state.navlist;
model2[index].text = '';
this.setState({ navlist: model2 })
Bus.emit('titleBarConfig', {attr:'navlist',value:model2})
Bus.emit('bottomBarConfig', {attr:'navlist',value:model2})
}}
value={this.state.navlist[index].text} placeholder={item.category} labelWidth={'0px'} maxLength={5} height={'36px'} width={'300px'} alignment={'left'} />
</FormItem>