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

字节跳动图标样式中的svg需要encodeURIComponent才能显示 #64

Closed
KeithMo0425 opened this issue Oct 3, 2021 · 4 comments
Closed

Comments

@KeithMo0425
Copy link

相关平台

字节跳动小程序

复现仓库

iconfont-cli/mini-program-iconfont-cli#23
小程序基础库: 不限
使用框架: React

复现步骤

将icon样式中的<svg>...</svg>通过encodeURIComponent才能正常显示。
跟mini-program-iconfont-cli其中一个issue问题一样,希望能同步到taro-iconfont-cli

期望结果

icon正常显示

实际结果

显示不正常

环境信息

 Taro CLI 3.3.9 environment info:
    System:
      OS: macOS 10.15.7
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 14.17.0 - ~/.nvm/versions/node/v14.17.0/bin/node
      Yarn: 1.22.4 - ~/.nvm/versions/node/v8.11.1/bin/yarn
      npm: 6.14.13 - ~/.nvm/versions/node/v14.17.0/bin/npm
    npmPackages:
      @tarojs/cli: ^3.3.9 => 3.3.9 
      @tarojs/components: 3.3.9 => 3.3.9 
      @tarojs/mini-runner: 3.3.9 => 3.3.9 
      @tarojs/react: 3.3.9 => 3.3.9 
      @tarojs/runtime: 3.3.9 => 3.3.9 
      @tarojs/taro: 3.3.9 => 3.3.9 
      @tarojs/webpack-runner: 3.3.9 => 3.3.9 
      babel-preset-taro: 3.3.9 => 3.3.9 
      eslint-config-taro: 3.3.9 => 3.3.9 
      react: ^17.0.0 => 17.0.2 
@KeithMo0425
Copy link
Author

不好意思,应该是更新taro-iconfont-cli项目中的mini-program-iconfont-cli依赖版本

@fwh1990
Copy link
Member

fwh1990 commented Oct 9, 2021

👌

@fwh1990
Copy link
Member

fwh1990 commented Oct 9, 2021

升级到3.3.0试一下,

@KeithMo0425
Copy link
Author

可以了,谢谢

@fwh1990 fwh1990 closed this as completed Oct 9, 2021
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