又一个轮子: 右上角消息提示组件

2015-11-03 21:53:23 +08:00
 sox

用 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

2321 次点击
所在节点    分享创造
9 条回复
DIYgod
2015-11-03 22:00:20 +08:00
又见到你了(*´∇`*)
gilgamesh
2015-11-03 22:00:42 +08:00
楼主最棒了,好久不见哟!
sox
2015-11-03 22:21:44 +08:00
@DIYgod
ԅ(¯ㅂ¯ԅ) 最喜欢头像可爱的男孩子了
hqs123
2015-11-04 08:34:30 +08:00
楼主很厉害啊
yws112358
2015-11-04 09:09:16 +08:00
感觉效果不错 不过不知道用在哪些场景合适 登陆成功?有一条新信息?
另外可以规范些 叫做 notice 吧
tomoya92
2015-11-04 10:03:28 +08:00
好东西,喜欢
sox
2015-11-04 12:15:21 +08:00
@yws112358 我是做给我的一个编辑器用的,保存后显示 saved 的消息。
paledream
2015-11-04 15:00:56 +08:00
感谢楼主的轮子
crayygy
2015-11-04 22:19:46 +08:00
收藏一个~感谢

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/233383

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX