vantui icon indicating copy to clipboard operation
vantui copied to clipboard

Cell 组件中对于 .van-hairline--surround::after 的样式定义冗余了

Open sojuker opened this issue 3 years ago • 1 comments

BUG描述 在项目中引用 Button, Cell 组件,并指定 Button 使用 hairline。 会发现 .van-hairline--surround::after 样式定义出现两遍

复现步骤

import { Button, Cell } from "@antmjs/vantui";
export default () => {
     return (<Button className="button" plain hairline type="primary">
        细边框按钮
     </Button>)
}

期望结果 .van-hairline--surround::after 只出现一遍

实际结果 出现了两遍

截图 wecom-temp-086f63cc020cae86314c7a1488370a52

环境

附加信息

sojuker avatar Feb 23 '22 05:02 sojuker

把src/style/index.less文件下面的@import '@antmjs/vantui/es/style/base.less'; 改成@import '@antmjs/vantui/es/style/var.less'; 如果base.less下面的方法业务上也需要用到的话可以再把@import '@antmjs/vantui/es/style/base.less'; 放到app.less下面

hisanshao avatar Apr 11 '22 10:04 hisanshao