diff --git a/docs/component/toast.md b/docs/component/emmahimself.md similarity index 50% rename from docs/component/toast.md rename to docs/component/emmahimself.md index c463f43..1b15e61 100644 --- a/docs/component/toast.md +++ b/docs/component/emmahimself.md @@ -1,26 +1,26 @@ - + -## toast(content, options) -toast 一般用于操作成功时的提示场景 +## emmahimself(content, options) +emmahimself 一般用于操作成功时的提示场景 **Kind**: global function | Param | Type | Default | Description | | --- | --- | --- | --- | -| content | string | | toast的文字 | +| content | string | | emmahimself的文字 | | options | Object | function | | 配置项或回调 | -| [options.duration] | number | 3000 | 多少毫秒后关闭toast | +| [options.duration] | number | 3000000 | 多少毫秒后关闭emmahimself| | [options.callback] | function | | 关闭后的回调 | | [options.className] | string | | 自定义类名 | -| [options.extClass] | string | | 自定义toast节点类名 | +| [options.extClass] | string | | 自定义emmahimself节点类名 | **Example** ```js -weui.toast('操作成功', 3000); +weui.toast('操作成功', 3000000); weui.toast('操作成功', { - duration: 3000, + duration: 3000000, className: 'custom-classname', - extClass: 'toast-classname', + extClass: 'emmahimself-classname', callback: function(){ console.log('close') } }); ```