Skip to content

Commit 95645b1

Browse files
author
zhenshuai
committed
Merge branch 'master' of github.com:WorktileTech/angular-wt-genius
2 parents e000d15 + 49d26b8 commit 95645b1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
angular-wt-genius
22
=========
33

4-
Worktile 项目启动工具包。
4+
Worktile 项目启动工具包,gulp打包,less编译
55

66
### 1.wt-genius-notify
77
angular provider 封装第三方插件 [notify.js](https://github.com/alexgibson/notify.js)
88

9+
```
10+
$wtNotifyProvider.config({
11+
title: 'Worktile 桌面通知',
12+
icon : '/img/wt-logo.png'
13+
});
14+
```
15+
916
```
1017
$wtNotify.notify({
1118
title: '桌面通知',
@@ -30,7 +37,7 @@ $wtNotify.checkPermission(function () {
3037
* icon: (string) - 图标
3138
* tag: (string) - 标识重复通知
3239
* lang: (string) - 文本格式 (default: `en`)
33-
* timeout: (integer) - 显示延时几秒关闭 (default: 2)
40+
* timeout: (integer) - 显示延时几秒关闭 (default: `2`)
3441
* notifyShow: (function) - 通知显示回调
3542
* notifyClose: (function) - 通知关闭回调
3643
* notifyClick: (function) - 通知点击回调
@@ -39,7 +46,7 @@ $wtNotify.checkPermission(function () {
3946

4047
##### Static methods and properties
4148
-----------------------------
42-
* `$wtNotify.notify` - 初始化方法(没有设置权限时,自动请求权限)
49+
* `$wtNotify.notify` - 初始化,并显示通知(没有设置权限时,自动请求权限)
4350

4451
* `$wtNotify.notSetPermission` - Boolean - 未设置通知权限
4552

0 commit comments

Comments
 (0)