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

<Picker mode="region"> 不支持微信官方的 level 属性 #13047

Closed
vinneli opened this issue Dec 28, 2022 · 2 comments · Fixed by #13178
Closed

<Picker mode="region"> 不支持微信官方的 level 属性 #13047

vinneli opened this issue Dec 28, 2022 · 2 comments · Fixed by #13178
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@vinneli
Copy link

vinneli commented Dec 28, 2022

相关平台

微信小程序

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

复现步骤

微信小程序一年前就有 level 属性了,麻烦你们尽快支持一下

期望结果

支持一下微信官方的 level 属性

实际结果

设置level属性没生效

环境信息

👽 Taro v3.5.7


  Taro CLI 3.5.7 environment info:
    System:
      OS: macOS 13.0.1
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 16.13.0 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 8.1.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.5.7 => 3.5.7 
      @tarojs/components: 3.5.7 => 3.5.7 
      @tarojs/helper: 3.5.7 => 3.5.7 
      @tarojs/plugin-framework-react: 3.5.7 => 3.5.7 
      @tarojs/plugin-platform-alipay: 3.5.7 => 3.5.7 
      @tarojs/plugin-platform-jd: 3.5.7 => 3.5.7 
      @tarojs/plugin-platform-qq: 3.5.7 => 3.5.7 
      @tarojs/plugin-platform-swan: 3.5.7 => 3.5.7 
      @tarojs/plugin-platform-tt: 3.5.7 => 3.5.7 
      @tarojs/plugin-platform-weapp: 3.5.7 => 3.5.7 
      @tarojs/react: 3.5.7 => 3.5.7 
      @tarojs/router: 3.5.7 => 3.5.7 
      @tarojs/runtime: 3.5.7 => 3.5.7 
      @tarojs/shared: 3.5.7 => 3.5.7 
      @tarojs/taro: 3.5.7 => 3.5.7 
      @tarojs/taro-h5: 3.5.7 => 3.5.7 
      @tarojs/webpack5-runner: 3.5.7 => 3.5.7 
      babel-preset-taro: 3.5.7 => 3.5.7 
      eslint-config-taro: 3.5.7 => 3.5.7 
      react: ^18.0.0 => 18.2.0 
      taro-ui: ^2.3.4 => 2.3.4 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Dec 28, 2022
@ZyairYH
Copy link

ZyairYH commented Jan 8, 2023

这个什么时候处理啊
而且直接用原生标签 也被忽略了

@ShopkeeperEgg
Copy link

我也遇到同样的问题了,用官方的 https://github.com/NervJS/taro-plugin-inject 这个库可以解决。

我是这么做的:

  1. npm i @tarojs/plugin-inject --save
  2. config/index.js 新增plugin
  plugins: [
    ['@tarojs/plugin-inject', {
      components: {
        Picker: {
          'level': ''
        }
      }
    }]
  ],

然后就可以使用了~

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

Successfully merging a pull request may close this issue.

3 participants