heroMan
heroMan
  • 发布:2024-06-26 09:19
  • 更新:2024-07-01 17:08
  • 阅读:168

text组件设置space属性无效,日志提示is not defined

分类:uni-app x
iOS

需求:想要给两句文本之间加些空格,比如文本内容 “大家好 大家吃饭了没有”,发现空格显示很小,所以想要设置space属性。

代码:<text :space="emsp" style="flex: 1; height: 100%; line-height: 40px;">大家好 大家吃饭了没有</text>

遇到问题:设置无效,控制台提示警告“[Vue warn]: Property "ensp" was accessed during render but is not defined on instance.”,具体可查看附件截图。

运行环境:Mac电脑,HBuilderX 4.15,标准基座,iPad设备。

2024-06-26 09:19 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

{{ "大家好  大家吃饭了没有" }}

我一般是这样写

  • heroMan (作者)

    感谢感谢 这个可以

    2024-06-26 10:41

  • heroMan (作者)

    button组件设置背景图,或者前景图 是不是不能直接设置

    2024-06-26 10:42

  • 1***@qq.com

    回复 c***@163.com: 没试过

    2024-06-30 18:56

DCloud_App_Array

DCloud_App_Array

space属性的写法不正确 :space="emsp",这总写法space属性前不应该带:

  • heroMan (作者)

    感谢,不带:可以的

    2024-07-01 16:21

要回复问题请先登录注册