Skip to content

button 的 icon 偏大 #137

@geekact

Description

@geekact

OSSA version

0.7.0

复现步骤

<OsButton icon="add">文字</OsButton>

预期表现?

icon与文字一致都是 28rpx

实际表现?

icon的style上设置了 20px ,而且没有被转换成rpx

环境信息

System:
    OS: macOS 14.0
    CPU: (12) arm64 Apple M2 Max
    Memory: 375.50 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - ~/.volta/tools/image/node/18.16.0/bin/node
    Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn
    npm: 9.5.1 - ~/.volta/tools/image/node/18.16.0/bin/npm
    pnpm: 8.10.0 - ~/.volta/tools/image/pnpm/8.10.0/bin/pnpm
  Browsers:
    Chrome: 118.0.5993.70
    Safari: 17.0
  npmPackages:
    @babel/core: ^7.8.0 => 7.23.2 
    @babel/runtime: ^7.7.7 => 7.23.2 
    @commitlint/cli: ^18.2.0 => 18.2.0 
    @commitlint/config-conventional: ^18.1.0 => 18.1.0 
    @pmmmwh/react-refresh-webpack-plugin: ^0.5.5 => 0.5.11 
    @tarojs/cli: 3.6.18 => 3.6.18 
    @tarojs/components: 3.6.18 => 3.6.18 
    @tarojs/helper: 3.6.18 => 3.6.18 
    @tarojs/plugin-framework-react: 3.6.18 => 3.6.18 
    @tarojs/plugin-platform-weapp: 3.6.18 => 3.6.18 
    @tarojs/react: 3.6.18 => 3.6.18 
    @tarojs/runtime: 3.6.18 => 3.6.18 
    @tarojs/shared: 3.6.18 => 3.6.18 
    @tarojs/taro: 3.6.18 => 3.6.18 
    @tarojs/taro-loader: 3.6.18 => 3.6.18 
    @tarojs/webpack5-runner: 3.6.18 => 3.6.18 
    @types/node: ^18.15.11 => 18.18.8 
    @types/react: ^18.0.0 => 18.2.34 
    @types/webpack-env: ^1.13.6 => 1.18.3 
    babel-plugin-import: ^1.13.8 => 1.13.8 
    babel-preset-taro: 3.6.18 => 3.6.18 
    envinfo: ^7.11.0 => 7.11.0 
    foca: ^3.2.0 => 3.2.0 
    foca-taro-storage: ^1.0.4 => 1.0.4 
    husky: ^8.0.3 => 8.0.3 
    ossaui: ^0.7.0 => 0.7.0 
    postcss: ^8.4.18 => 8.4.31 
    prettier: ^3.0.3 => 3.0.3 
    react: ^18.0.0 => 18.2.0 
    react-dom: ^18.0.0 => 18.2.0 
    react-refresh: ^0.14.0 => 0.14.0 
    redux-logger: ^3.0.6 => 3.0.6 
    ts-node: ^10.9.1 => 10.9.1 
    typescript: ^5.2.2 => 5.2.2 
    webpack: ^5.78.0 => 5.89.0

其他?

另外button上为啥有那么多属性?类似这种bindagreeprivacyauthorization="eh" 一堆,占用小程序可怜的体积(2M)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions