【问题标题】:Ant design drawer title to put div and space tagAnt design 抽屉标题放 div 和 space 标签
【发布时间】:2020-05-16 07:35:20
【问题描述】:

我用的是ant design 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>

【问题讨论】:

    标签: reactjs antd


    【解决方案1】:
    title={"My account no: " +   this.props.accountId}
    

    在“我的帐号:”中的“:”之后保留空格,就像上面一样

    【讨论】:

    猜你喜欢
    • 2020-12-26
    • 1970-01-01
    • 1970-01-01
    • 2020-03-01
    • 2017-05-09
    • 2016-01-22
    • 2020-05-12
    • 2018-11-12
    • 2016-01-29
    相关资源
    最近更新 更多