用 webpack 和 postcss 打包的,直接引用 JS 即可,自动插♂入 CSS 。
眼见为实,在线演示: http://egoist.github.io/notie
NPM and Webpack ready:
import notie from 'notie'
// tell notie to show `hello world` info and auto-hide it.
notie('info', 'hello world', true)
// or use object as argument
notie({
type: 'info',
text: 'hello world',
autoHide: true
})
当然开源的: GitHub
1
DIYgod 2015 年 11 月 3 日
又见到你了(*´∇`*)
|
2
gilgamesh 2015 年 11 月 3 日
楼主最棒了,好久不见哟!
|
4
hqs123 2015 年 11 月 4 日
楼主很厉害啊
|
5
yws112358 2015 年 11 月 4 日
感觉效果不错 不过不知道用在哪些场景合适 登陆成功?有一条新信息?
另外可以规范些 叫做 notice 吧 |
6
tomoya92 2015 年 11 月 4 日
好东西,喜欢
|
8
paledream 2015 年 11 月 4 日 via Android
感谢楼主的轮子
|
9
crayygy 2015 年 11 月 4 日
收藏一个~感谢
|