[Doc] new theme

This commit is contained in:
陈嘉涵
2019-05-15 20:53:04 +08:00
parent 3cae4288f2
commit d0f4169c86
130 changed files with 1460 additions and 1147 deletions
+11 -9
View File
@@ -1,15 +1,16 @@
## Tag
# Tag
### Install
``` javascript
import { Tag } from 'vant';
Vue.use(Tag);
```
### Usage
## Usage
#### Basic Usage
### Basic Usage
```html
<van-tag>Tag</van-tag>
@@ -18,7 +19,7 @@ Vue.use(Tag);
<van-tag type="success">Tag</van-tag>
```
#### Plain style
### Plain style
```html
<van-tag plain>Tag</van-tag>
@@ -27,7 +28,7 @@ Vue.use(Tag);
<van-tag plain type="success">Tag</van-tag>
```
#### Round style
### Round style
```html
<van-tag round>Tag</van-tag>
@@ -36,7 +37,7 @@ Vue.use(Tag);
<van-tag round type="success">Tag</van-tag>
```
#### Mark style
### Mark style
```html
<van-tag mark>Tag</van-tag>
@@ -45,7 +46,7 @@ Vue.use(Tag);
<van-tag mark type="success">Tag</van-tag>
```
#### Custom Color
### Custom Color
```html
<van-tag color="#f2826a">Tag</van-tag>
@@ -55,7 +56,7 @@ Vue.use(Tag);
<van-tag color="#ffe1e1" text-color="#ad0000">Tag</van-tag>
```
#### Custom Size
### Custom Size
```html
<van-tag>Tag</van-tag>
@@ -63,6 +64,8 @@ Vue.use(Tag);
<van-tag size="large">Tag</van-tag>
```
## API
### Props
| Attribute | Description | Type | Default |
@@ -75,7 +78,6 @@ Vue.use(Tag);
| mark | Whether to be mark style | `Boolean` | `false` |
| text-color | Text color | `String` | `white` |
### Slots
| Name | Description |
+12 -9
View File
@@ -1,15 +1,16 @@
## Tag 标记
# Tag 标记
### 引入
### 使用指南
``` javascript
import { Tag } from 'vant';
Vue.use(Tag);
```
### 代码演示
## 代码演示
#### 基础用法
### 基础用法
通过 type 属性控制 Tag 颜色,默认为灰色
@@ -20,7 +21,7 @@ Vue.use(Tag);
<van-tag type="success">标签</van-tag>
```
#### 空心样式
### 空心样式
设置`plain`属性设置为空心样式
@@ -31,7 +32,7 @@ Vue.use(Tag);
<van-tag plain type="success">标签</van-tag>
```
#### 圆角样式
### 圆角样式
通过`round`设置为圆角样式
@@ -42,7 +43,7 @@ Vue.use(Tag);
<van-tag round type="success">标签</van-tag>
```
#### 标记样式
### 标记样式
通过`mark`设置为标记样式(半圆角)
@@ -53,7 +54,7 @@ Vue.use(Tag);
<van-tag mark type="success">标签</van-tag>
```
#### 自定义颜色
### 自定义颜色
```html
<van-tag color="#f2826a">标签</van-tag>
@@ -63,7 +64,7 @@ Vue.use(Tag);
<van-tag color="#ffe1e1" text-color="#ad0000">标签</van-tag>
```
#### 标签大小
### 标签大小
```html
<van-tag>标签</van-tag>
@@ -71,6 +72,8 @@ Vue.use(Tag);
<van-tag size="large">标签</van-tag>
```
## API
### Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |