[Doc] new theme
This commit is contained in:
@@ -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 |
|
||||
|
||||
@@ -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
|
||||
|
||||
### 方法
|
||||
|
||||
| 方法名 | 参数 | 返回值 | 介绍 |
|
||||
|
||||
Reference in New Issue
Block a user