+
Skip to content

tinglejs/tingle-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tingle-notification

此项目基于 React 0.14.3 ,使用前请注意版本兼容性。

用例

(演示数据,仅供参考)

const Notice = require('tingle-notification');

<Notice onClick={handler}>
最新公告,点击查看 <Notice.LinkButton/>
</Notice>


<Notice ref="successNotice" onClick={this.refs.successNotice.hide()}>
注册成功,欢迎使用 <Notice.CloseButton/>
</Notice>

API接口

.hide()

描述:隐藏此组件

类型:Function

.show()

描述:显示此组件

类型:Function

内置了两个常用的按钮样式

使用前注意Tingle-Icon的SVG引用方案

.LinkButton

b0cbcd7a6b4510309cb47dbd68366ced

带有链接样式的内置按钮

.CloseButton

a511bbf60622dba621a9669560ecb9a5

带有关闭样式的内置按钮

Links

About

Notification Component for tingle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载