我正在使用蚂蚁设计 drawer ,我遇到了一些冲突 我试图将抽屉标题添加到空间,但无法正常工作,有人知道如何正确执行此操作吗?
问题是
title={"My account no:" + this.props.accountId}
此处发生冲突我的帐号:123456
我想在文本和数字之间放置一些空格,例如我的帐号:123456
谢谢
在此处着色。
<Drawer
title={"My account no:" + this.props.accountId}
width={720}
onClose={this.onDrawerClose}
maskClosable={false}
visible={this.state.statusChangeDrawerVisible}
bodyStyle={{ paddingBottom: 80 }}>
</Drawer>
答案 0 :(得分:2)
title={"My account no: " + this.props.accountId}
与上述相同,在“我的帐号:”中的“:”后保留空格