rc-dialog
dialog ui component for react
Last updated a day ago by afc163 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rc-dialog 
SYNC missed versions from official npm registry.

rc-dialog


react dialog component

NPM version build status Test coverage Dependencies DevDependencies npm download bundle size

Screenshot

Install

rc-dialog

Usage

var Dialog = require('rc-dialog');

ReactDOM.render(
  <Dialog title={title} onClose={callback1} visible>
      <p>first dialog</p>
  </Dialog>
), document.getElementById('t1'));

// use dialog

API

rc-dialog

Name Type Default Description Version
prefixCls String rc-dialog The dialog dom node's prefixCls
className String additional className for dialog
style Object {} Root style for dialog element.Such as width, height
zIndex Number
bodyStyle Object {} body style for dialog body element.Such as height
maskStyle Object {} style for mask element
visible Boolean false current dialog's visible status
animation String part of dialog animation css class name
maskAnimation String part of dialog's mask animation css class name
transitionName String dialog animation css class name
maskTransitionName String mask animation css class name
title String|React.Element Title of the dialog
footer React.Element footer of the dialog
closable Boolean true whether show close button
mask Boolean true whether show mask
maskClosable Boolean true whether click mask to close
keyboard Boolean true whether support press esc to close
mousePosition {x:number,y:number} set pageX and pageY of current mouse(it will cause transform origin to be set).
onClose function() called when click close button or mask
afterClose function() called when close animation end
getContainer function(): HTMLElement to determine where Dialog will be mounted
destroyOnClose Boolean false to unmount child compenents on onClose
closeIcon ReactNode specific the close icon.
forceRender Boolean false Create dialog dom node before dialog first show
focusTriggerAfterClose Boolean true focus trigger element when dialog closed
modalRender (node: ReactNode) => ReactNode Custom modal content render 8.3.0

Development

npm install
npm start

Example

http://localhost:8007/examples/

online example: http://react-component.github.io/dialog/

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rc-dialog is released under the MIT license.

Current Tags

  • 7.5.0-alpha.0                                ...           beta (a year ago)
  • 8.4.3                                ...           latest (a day ago)

134 Versions

  • 8.4.3                                ...           a day ago
  • 8.4.2                                ...           8 days ago
  • 8.4.1                                ...           11 days ago
  • 8.4.0                                ...           23 days ago
  • 8.3.4                                ...           2 months ago
  • 8.2.2                                ...           2 months ago
  • 8.1.2                                ...           2 months ago
  • 8.3.3                                ...           2 months ago
  • 8.2.1                                ...           2 months ago
  • 8.3.2                                ...           2 months ago
  • 8.3.1                                ...           2 months ago
  • 8.3.0                                ...           2 months ago
  • 8.2.0                                ...           2 months ago
  • 8.1.1                                ...           2 months ago
  • 8.1.0                                ...           3 months ago
  • 8.0.1                                ...           4 months ago
  • 8.0.0                                ...           5 months ago
  • 7.7.0                                ...           5 months ago
  • 7.6.1                                ...           7 months ago
  • 7.6.0                                ...           10 months ago
  • 7.5.14                                ...           a year ago
  • 7.5.13                                ...           a year ago
  • 7.5.12                                ...           a year ago
  • 7.5.11                                ...           a year ago
  • 7.5.10                                ...           a year ago
  • 7.5.9                                ...           a year ago
  • 7.5.8                                ...           a year ago
  • 7.5.7                                ...           a year ago
  • 7.5.6                                ...           a year ago
  • 7.5.5                                ...           a year ago
  • 7.5.4                                ...           a year ago
  • 7.5.3                                ...           a year ago
  • 7.5.2                                ...           a year ago
  • 7.5.1                                ...           a year ago
  • 7.5.0                                ...           a year ago
  • 7.5.0-alpha.0                                ...           a year ago
  • 7.4.1                                ...           a year ago
  • 7.4.0                                ...           a year ago
  • 7.3.1                                ...           2 years ago
  • 7.3.0                                ...           2 years ago
  • 7.2.1                                ...           2 years ago
  • 7.2.0                                ...           2 years ago
  • 7.1.8                                ...           2 years ago
  • 7.1.7                                ...           2 years ago
  • 7.1.6                                ...           2 years ago
  • 7.1.4                                ...           3 years ago
  • 7.1.3                                ...           3 years ago
  • 7.1.2                                ...           3 years ago
  • 7.1.1                                ...           3 years ago
  • 7.1.0                                ...           3 years ago
  • 7.0.4                                ...           3 years ago
  • 7.0.3                                ...           3 years ago
  • 7.0.2                                ...           3 years ago
  • 7.0.1                                ...           3 years ago
  • 7.0.0                                ...           3 years ago
  • 6.5.11                                ...           3 years ago
  • 6.5.10                                ...           3 years ago
  • 6.5.9                                ...           3 years ago
  • 6.5.8                                ...           4 years ago
  • 6.5.7                                ...           4 years ago
  • 6.5.6                                ...           4 years ago
  • 6.5.5                                ...           4 years ago
  • 6.5.4                                ...           4 years ago
  • 6.5.3                                ...           4 years ago
  • 6.5.2                                ...           4 years ago
  • 6.5.1                                ...           4 years ago
  • 6.5.0                                ...           4 years ago
  • 6.4.5                                ...           4 years ago
  • 6.4.4                                ...           4 years ago
  • 6.4.3                                ...           4 years ago
  • 6.4.2                                ...           4 years ago
  • 6.4.1                                ...           4 years ago
  • 6.4.0                                ...           4 years ago
  • 6.3.0                                ...           4 years ago
  • 6.2.3                                ...           4 years ago
  • 6.2.2                                ...           4 years ago
  • 6.2.1                                ...           4 years ago
  • 6.2.0                                ...           4 years ago
  • 6.1.1                                ...           4 years ago
  • 6.1.0                                ...           4 years ago
  • 6.0.8                                ...           4 years ago
  • 6.0.7                                ...           4 years ago
  • 6.0.6                                ...           4 years ago
  • 6.0.5                                ...           4 years ago
  • 6.0.4                                ...           4 years ago
  • 6.0.3                                ...           4 years ago
  • 6.0.2                                ...           4 years ago
  • 6.0.1                                ...           5 years ago
  • 6.0.0                                ...           5 years ago
  • 6.0.0-beta.1                                ...           5 years ago
  • 6.0.0-beta.0                                ...           5 years ago
  • 5.4.0                                ...           5 years ago
  • 5.3.4                                ...           5 years ago
  • 5.3.3                                ...           5 years ago
  • 5.3.2                                ...           5 years ago
  • 5.3.1                                ...           5 years ago
  • 5.3.0                                ...           5 years ago
  • 5.2.2                                ...           5 years ago
  • 5.2.1                                ...           5 years ago
  • 5.2.0                                ...           5 years ago
  • 5.1.1                                ...           5 years ago
  • 5.1.0                                ...           5 years ago
  • 5.0.3                                ...           5 years ago
  • 5.0.2                                ...           5 years ago
  • 5.0.1                                ...           5 years ago
  • 5.0.0                                ...           5 years ago
  • 4.5.0                                ...           5 years ago
  • 4.4.1                                ...           5 years ago
  • 4.4.0                                ...           5 years ago
  • 4.3.5                                ...           5 years ago
  • 4.3.4                                ...           5 years ago
  • 4.3.3                                ...           5 years ago
  • 4.3.2                                ...           5 years ago
  • 4.3.1                                ...           5 years ago
  • 4.3.0                                ...           5 years ago
  • 4.2.0                                ...           5 years ago
  • 4.1.3                                ...           5 years ago
  • 4.1.2                                ...           5 years ago
  • 4.1.1                                ...           5 years ago
  • 4.1.0                                ...           5 years ago
  • 4.0.7                                ...           5 years ago
  • 4.0.6                                ...           5 years ago
  • 4.0.5                                ...           5 years ago
  • 4.0.4                                ...           5 years ago
  • 4.0.3                                ...           5 years ago
  • 4.0.2                                ...           5 years ago
  • 4.0.1                                ...           5 years ago
  • 4.0.0                                ...           5 years ago
  • 3.0.0                                ...           6 years ago
  • 2.1.0                                ...           6 years ago
  • 2.0.2                                ...           6 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Downloads
Today 9,273
This Week 36,658
This Month 114,154
Last Day 9,086
Last Week 52,161
Last Month 234,109
Dependencies (4)
Dev Dependencies (25)
Dependents (393)

Copyright 2014 - 2016 © taobao.org |