Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taro中Space Between失效 #42

Closed
disturbwe opened this issue Mar 7, 2022 · 3 comments
Closed

Taro中Space Between失效 #42

disturbwe opened this issue Mar 7, 2022 · 3 comments

Comments

@disturbwe
Copy link

设置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>

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

@forsigner
Copy link
Owner

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

@disturbwe
Copy link
Author

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

@forsigner
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants