0.0.4 • Published 6 years ago

oni-react-preview v0.0.4

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

oni-react-preview

NPM version NPM downloads

Getting Started

Install

# Install
$ npm install oni-react-preview --save

Usage Examples

import PreviewImage from 'oni-react-preview'
function App(props) {
  const ImageUrl = {
    isShow:true,
    urls:[
        'https://avatar.csdn.net/A/1/F/3_onil_chen.jpg',
],
    current:0,
    onCloseHander:()=>{
      //可选,点击回调
    }
  }
  return (
    <div className={styles.wrap}>
     <PreviewImage {...ImageUrl}></PreviewImage>
     </div>
  );
}

License

MIT

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago