fix:编辑器底部栏配置,根据文本实时更新预览显示
This commit is contained in:
parent
1e5f5ea9bb
commit
39d9f0ab49
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue