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

当配置 minifyXML.collapseWhitespace=true 时 驼峰式的 props 会失效 #8933

Open
LengYXin opened this issue Mar 16, 2021 · 0 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@LengYXin
Copy link
Contributor

LengYXin commented Mar 16, 2021

相关平台

微信小程序

小程序基础库: 2.16.0
使用框架: React

复现步骤

配置

mini: {
    minifyXML: {
      collapseWhitespace: true
    }
}

使用任意组件 (自己写的 extends Component 的组件没问题 )

使用 的 @vant/weapp 组件会出现

<van-cell
            isLink
            border
            center
            clickable
            title=“我是标题”
            linkType="redirectTo"
            value="内容"
            url={url}
        />

类似这样
isLink 和 linkType 会无效 (is-link 也试过了)
title ,value ,url 这些非驼峰的是有效的

虽然不清楚什么原因

期望结果

驼峰 props 有效

实际结果

无效

环境信息

 Taro CLI 3.1.4 environment info:
    System:
      OS: macOS 10.15.7
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 12.18.3 - ~/.nvm/versions/node/v12.18.3/bin/node
      Yarn: 1.22.10 - ~/.nvm/versions/node/v12.18.3/bin/yarn
      npm: 7.5.6 - ~/.nvm/versions/node/v12.18.3/bin/npm

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

1 participant