mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs: add docs for builtin classes (#11195)
This commit is contained in:
parent
5d98d5a5d4
commit
3faf04c02e
@ -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>
|
||||
```
|
||||
|
@ -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>
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user