Skip to content

conglai/clrc-qnimg

Repository files navigation

从来React组件:七牛图片 NPM version NPM downloads MIT License

安装

npm i clrc-qnimg

案例

QNImg.setDefaultConfig({
  pre: '//cdn.withme.cn/',
  mode: 0,
  className: 'ssss-img',
  scale: 2
});
class APP extends Component {
  componentDidMount() {
    window._load = () => {
      this.refs.obj.loadPic();
    };
  }
  render() {
    return <div>
      <h1>从来前端组件测试:</h1>
      <QNImg ref="obj" lazy={true} config={{
        src: '//cdn.withme.cn/withme.back.u.2f7f440d35a38b7610eba472762c120f.jpg',
        w: 100,
        h: 100,
      }}/>
    </div>;
  }
};

About

从来React组件:七牛图片

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published