Skip to content

A web - end photo browser that mimics QQ(一个模仿QQ的web端图片浏览器)

Notifications You must be signed in to change notification settings

xiaohuoni/oni-react-preview

Repository files navigation

oni-react-preview

NPM version NPM downloads

Getting Started

源码在src,还没整理,下面的东西不能用哈 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

About

A web - end photo browser that mimics QQ(一个模仿QQ的web端图片浏览器)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published