Skip to content

Commit 3ee86ea

Browse files
committed
docs: 增加 AtSwitch 的 SCSS 变量描述 close #936
1 parent bd39394 commit 3ee86ea

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/markdown/switch.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ export default class Index extends Taro.Component {
5959

6060
:::
6161

62+
> AtSwitch 组件拥有两个 SCSS 变量,可以修改它们来调整标题的颜色和大小,默认的样式为 `#333``28(r)px`
63+
64+
```scss
65+
/* Switch */
66+
$at-switch-title-color: $color-text-base !default; // #333
67+
$at-switch-title-size: $font-size-base !default; // 14px * 2
68+
```
69+
6270
## 参数
6371

6472
| 参数 | 说明 | 类型 | 可选值 | 默认值 |

0 commit comments

Comments
 (0)