1.0.4 • Published 4 years ago

@feizheng/react-ant-image-pop-view v1.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

react-ant-image-pop-view

Ant popover view image for react.

installation

npm install -S @feizheng/react-ant-image-pop-view

update

npm update @feizheng/react-ant-image-pop-view

properties

NameTypeDefaultDescription
classNamestring-The extended className for component.
placementstring'rightTop'Placement for antd.
sizearray100Thumbnail size.
popSizearray100Popup picture size.
thumbnailstring-The thumbnail/popup pictures.
srcstring-The popup original picutrel.

usage

  1. import css

    @import "~@feizheng/webkit-sassui-frame-wrapper/dist/index.scss";
    @import "~@feizheng/react-figure/dist/style.scss";
    @import "~@feizheng/react-ant-image-pop-view/dist/style.scss";
    
    // customize your styles:
    $react-ant-image-pop-view-options: ()
  2. import js

    import ReactAntImagePopView from '@feizheng/react-ant-image-pop-view';
    import ReactDOM from 'react-dom';
    import React from 'react';
    import './assets/style.scss';
    
    class App extends React.Component {
      componentDidMount() {}
      render() {
        return (
          <div className="app-container">
            <ReactAntImagePopView
              thumbnail="https://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg"
              src="https://himg.bdimg.com/sys/portrait/item/be10475f686d6x73db00.jpg"
              size={['100px', '100px']}
              popSize={[200, 200]}
            />
          </div>
        );
      }
    }
    
    ReactDOM.render(<App />, document.getElementById('app'));

documentation

resources

todos

  • Add: semver number for every build files.
  • Add: need output css files.
  • Add: PWA support for docs.
  • Add: source.map file for dist(you can upload for production debug).
  • BUG: npm run dev will clean dist.