fower icon indicating copy to clipboard operation
fower copied to clipboard

Taro中Space Between失效

Open disturbwe opened this issue 3 years ago • 3 comments

设置spaceY-10

 <View
      p="20px 0"
      column
      alignItems=""
      css={{ view: { m: "10px 0" } }}
      spaceY-10
    >
      <View>
        <Text text3XL fontBold>
          {props.title}
        </Text>
      </View>
      <View>
        <Text text3XL mb-20>
          扫描下方二维码加入本课程哦
        </Text>
      </View>
    </View>

在微信开发者工具中没有对应的子类

disturbwe avatar Mar 07 '22 12:03 disturbwe

space 使用了 CSS 的选择器功能,在taro中确实不能用,下个小版本我在 taro 中去掉这个插件

forsigner avatar Mar 07 '22 12:03 forsigner

有没有什么好的解决方案呢,css prop中嵌套选择器也不能用

disturbwe avatar Mar 07 '22 13:03 disturbwe

可以自己自定义一个 <Space/> 组件,在小程序中嵌套选择器都不支持

forsigner avatar Mar 07 '22 14:03 forsigner