0.3.9 • Published 3 years ago

@q673115816/pics-viewer v0.3.9

Weekly downloads
-
License
APGL
Repository
github
Last release
3 years ago

用 react 实现网易云图片浏览插件

image viewer component built with React.

示例


Installation

npm

Example

import React from "react";
import PicsViewer from "@q673115816/pics-viewer";

const srcList = [
  {
    width: 560,
    height: 560,
    detail: "https://cdn.jsdelivr.net/gh/q673115816/cdn/image/佐菲.jpg",
    thumb: "https://cdn.jsdelivr.net/gh/q673115816/cdn/image/佐菲.jpg",
  },
];

const App = () => {
  return <PicsViewer srcList={srcList} />;
};

Props

interface PicsViewer {
  srcList: {
    width: number | string;
    height: number | string;
    detail: string;
    thumb?: string;
  }[];
  className?: string;
  el?: string; // appendDOM default = document.body
}
0.3.9

3 years ago

0.3.5

3 years ago

0.3.8

3 years ago

0.3.7

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago