【文件属性】:
文件名称:wnp-notify:您网站的通知
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-26 21:14:48
notifications JavaScript
@ wnp /通知
安装
npm install @wnp/notify --save
进口
import { Notify } from "@wnp/notify"
初始化
const notify = new Notify()
用参数初始化
const notify = new Notify({...params})
可用参数
参数
类型
默认值
max_count 窗口中的最大通知数
数字
5
default_message 标准消息头
细绳
“ Whynotpack通知”
选择器
您要在其中放置插件的选择器
细绳
'身体'
link_title 展开通知的按钮的文字
细绳
'表演'
default_class 标准通知类别
细绳
'默认'
default_styles 设置默认样式
布尔值
真的
例如
const notify = new Notify ({
【文件预览】:
wnp-notify-master
----notify-es6.js(15KB)
----.npmignore(12B)
----README.MD(4KB)
----.gitignore(20B)
----index.js(23KB)
----package-lock.json(850B)
----package.json(510B)