0.1.1 • Published 7 years ago

uxcore-workflow-notice-icon v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

uxcore-workflow-notice-icon

React workflow notice icon

NPM version build status Test Coverage Dependency Status devDependency Status NPM downloads

Sauce Test Status

Development

git clone https://github.com/uxcore/uxcore-workflow-notice-icon
cd uxcore-workflow-notice-icon
npm install
npm run server

if you'd like to save your install time,you can use uxcore-tools globally.

npm install uxcore-tools -g
git clone https://github.com/uxcore/uxcore-workflow-notice-icon
cd uxcore-workflow-notice-icon
npm install
npm run dep
npm run start

Test Case

npm run test

Coverage

npm run coverage

Demo

http://uxcore.github.io/components/workflow-notice-icon

Contribute

Yes please! See the CONTRIBUTING for details.

API

Props

NameTypeRequiredDefaultComments
workflowNoticeArrayOptional-待办任务列表
iconstringoptionalxiaoxitixingfull通知图标; http://uxco.re/components/icon/
dotbooleanoptionalfalse是否显示通知数量;默认不展示数字,只有一个小红点
countnumberoptional-通知的数量
overflowCountnumberoptional99通知封顶的数字
triggerstringoptionalhovertrigger mode:'hover' or 'click'
titlestringoptional通知通知标题
placementstringoptionalbottomRight箭头位置
emptyIconstringoptional默认图标其他可选:'access_restriction','acitve_empty','request_error','search_empty','unknown_error';http://uxco.re/components/icon/
emptyTextstringoptional暂无数据占位文字
onVisibleChangefunctionoptionalfuction(visible)显隐状态的回调
topActionReact Elementoptional-右上角操作
actionBarobject | render functionoptional-支持默认*和自定义形式

* 如果propTypes为object则使用默认样式渲染,object需按如下定义

{
    "text": string,
    "action": function
}