docs: add docs for builtin classes (#11195)

This commit is contained in:
neverland 2022-10-30 20:17:36 +08:00 committed by GitHub
parent 5d98d5a5d4
commit 3faf04c02e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View File

@ -89,3 +89,21 @@ Enable safe area.
<div v-show="visible">Slide Right</div>
</transition>
```
### Haptics Feedback
Add haptics feedback for an element. When touched, the opacity of the element is reduced.
Usually used in clickable elements such as button.
```html
<div class="van-haptics-feedback"></div>
```
### Clearfix
Clear floated content within a container.
```html
<div class="van-clearfix"></div>
```

View File

@ -89,3 +89,21 @@ Vant 中默认包含了一些常用样式,可以直接通过 className 的方
<div v-show="visible">Slide Right</div>
</transition>
```
### 触碰反馈
为元素添加触碰反馈效果,触碰后,元素的透明度会降低。
通常用于按钮等可点击的元素上。
```html
<div class="van-haptics-feedback"></div>
```
### 清除浮动
清除元素在 float 布局下的浮动,
```html
<div class="van-clearfix"></div>
```