Skip to content

Commit 7544d69

Browse files
authored
fix: 修复wd-button在自定义样式时激活态样式问题 (#312)
1 parent cef427e commit 7544d69

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

docs/component/button.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
`type` 设置为 `icon`,同时设置 `icon` 属性,icon为图标的类名,可以直接使用 `Icon 图标` 章节中的图标类名。
7272

7373
```html
74-
<wd-button type="icon" icon="menu"></wd-button>
74+
<wd-button type="icon" icon="picture"></wd-button>
7575
```
7676

7777
## 带图标的按钮

src/uni_modules/wot-design-uni/components/wd-button/index.scss

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,7 @@
224224

225225
@include when(round) {
226226
border-radius: 999px;
227-
228-
&::after {
229-
border-radius: 999px;
230-
}
231-
232-
&::before {
233-
border-radius: 999px;
234-
}
227+
overflow: hidden;
235228
}
236229

237230
@include when(text) {

0 commit comments

Comments
 (0)