File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 11angular-wt-genius
22=========
33
4- Worktile 项目启动工具包。
4+ Worktile 项目启动工具包,gulp打包,less编译 。
55
66### 1.wt-genius-notify
77angular 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
You can’t perform that action at this time.
0 commit comments