[Doc] new theme
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
## Built-in Style
|
||||
# Built-in Style
|
||||
|
||||
### Intro
|
||||
|
||||
Vant contains some common styles that can be used directly by the className.
|
||||
|
||||
### Text ellipsis
|
||||
|
||||
When the text content length exceeds the maximum container width, the excess text is automatically omitted.
|
||||
|
||||
```html
|
||||
@@ -11,6 +15,7 @@ When the text content length exceeds the maximum container width, the excess tex
|
||||
```
|
||||
|
||||
### Hairline
|
||||
|
||||
Add 1px border under the Retina screen for the element, based on a pseudo element.
|
||||
|
||||
```html
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
## 内置样式
|
||||
# 内置样式
|
||||
|
||||
### 介绍
|
||||
|
||||
Vant 中默认包含了一些常用样式,可以直接通过 className 的方式使用。
|
||||
|
||||
### 文字省略
|
||||
|
||||
当文本内容长度超过容器最大宽度时,自动省略多余的文本。
|
||||
|
||||
```html
|
||||
@@ -9,6 +13,7 @@ Vant 中默认包含了一些常用样式,可以直接通过 className 的方
|
||||
```
|
||||
|
||||
### 1px 边框
|
||||
|
||||
为元素添加 Retina 屏幕下的 1px 边框(即 hairline),基于伪类 transform 实现。
|
||||
|
||||
```html
|
||||
@@ -32,6 +37,7 @@ Vant 中默认包含了一些常用样式,可以直接通过 className 的方
|
||||
```
|
||||
|
||||
### 动画
|
||||
|
||||
可以通过 `transition` 组件使用内置的动画
|
||||
|
||||
```html
|
||||
|
||||
Reference in New Issue
Block a user