[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
+7 -5
View File
@@ -1,4 +1,4 @@
## Notify
# Notify
### Install
@@ -8,15 +8,15 @@ import { Notify } from 'vant';
Vue.use(Notify);
```
### Usage
## Usage
#### Basic Usage
### Basic Usage
```js
Notify('Notify Message');
```
#### Custom Config
### Custom Config
```js
Notify({
@@ -26,7 +26,7 @@ Notify({
});
```
#### $notify Method
### $notify Method
After import the Notify component, the $notify method is automatically mounted on Vue.prototype, making it easy to call within a vue component.
@@ -38,6 +38,8 @@ export default {
}
```
## API
### Methods
| Methods | Attribute | Return value | Description |
+9 -6
View File
@@ -1,21 +1,22 @@
## Notify 消息提示
# Notify 消息提示
### 引入
### 使用指南
``` javascript
import { Notify } from 'vant';
Vue.use(Notify);
```
### 代码演示
## 代码演示
#### 基础用法
### 基础用法
```js
Notify('通知内容');
```
#### 自定义配置
### 自定义配置
```js
Notify({
@@ -25,7 +26,7 @@ Notify({
});
```
#### 组件内调用
### 组件内调用
引入 Notify 组件后,会自动在 Vue 的 prototype 上挂载 $notify 方法,便于在组件内调用。
@@ -37,6 +38,8 @@ export default {
}
```
## API
### 方法
| 方法名 | 参数 | 返回值 | 介绍 |