0.3.11 • Published 6 years ago

uxcore-alert v0.3.11

Weekly downloads
15
License
MIT
Repository
github
Last release
6 years ago

uxcore-alert Dependency Status devDependency Status

TL;DR

uxcore-alert ui component for react

setup develop environment

$ git clone https://github.com/uxcore/uxcore-alert
$ cd uxcore-alert
$ npm install
$ gulp server

Usage

demo

http://uxcore.github.io/

API

  • toggleShow: 切换 Alert 的显示状态。

Props

配置项类型必填默认值功能/备注
prefixClsstringoptional'kuma-alert'类名前缀,不想使用 kuma 主题时使用
iconPrefixClsstringoptional'kuma-icon'图标类名前缀,不想使用 kuma 主题时使用
classNamestringoptional-额外的类名
typestringoptional'message'警告类型,包括 message', 'error', 'warning', 'success', 'question', 'stop', 'wait'
hasContainerbooloptionalfalse是否包含外层容器
closablebooloptionalfalse是否能够关闭,此项为 true 时,将自动包含外层容器
closeTextstring or react elementoptional-将关闭图标替换成想要的文字
messagestring or react elementrequired-提示文案
descriptionstring or react elementoptional描述文字,将自动包含外层容器
onClosefunctionoptionalnoop在警告关闭时触发,传回 event
sizestringoptional'normal'配置提示框大小,可选large
0.3.11

6 years ago

0.3.10

6 years ago

0.3.9

6 years ago

0.3.8

6 years ago

0.3.7

6 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago