diff --git a/.DS_Store b/.DS_Store
index af692fa..3cf60cd 100644
Binary files a/.DS_Store and b/.DS_Store differ
diff --git a/.gitignore b/.gitignore
index 28d8b43..213ef25 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ node_modules/
*.log
/docs/_book/
uploader-server/uploads
+.DS_Store
diff --git a/docs/component/toast.md b/docs/component/toast.md
index 612f557..06b06e6 100644
--- a/docs/component/toast.md
+++ b/docs/component/toast.md
@@ -10,15 +10,19 @@ toast 一般用于操作成功时的提示场景
| content | string | | toast的文字 |
| options | Object | function | | 配置项或回调 |
| [options.duration] | number | 3000 | 多少毫秒后关闭toast |
+| [options.type] | 'success' | 'warning' | 'error' | 'none' | 'success' | 显示的图标 |
| [options.callback] | function | | 关闭后的回调 |
-| [options.className] | string | | 自定义类名 |
+| [options.className] | string | | 自定义根节点类名 |
+| [options.extClass] | string | | 自定义内容节点类名 |
**Example**
```js
weui.toast('操作成功', 3000);
weui.toast('操作成功', {
duration: 3000,
- className: 'custom-classname',
+ type: 'none'
+ className: 'root',
+ extClass: 'content',
callback: function(){ console.log('close') }
});
```
diff --git a/src/toast/toast.html b/src/toast/toast.html
index 3319d93..431cc86 100644
--- a/src/toast/toast.html
+++ b/src/toast/toast.html
@@ -1,7 +1,15 @@
<%=content%>