Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/react-ant-image-pop-view
Ant popover view image for react.
https://github.com/afeiship/react-ant-image-pop-view
ant antd popover react view
Last synced: about 18 hours ago
JSON representation
Ant popover view image for react.
- Host: GitHub
- URL: https://github.com/afeiship/react-ant-image-pop-view
- Owner: afeiship
- License: mit
- Created: 2018-05-29T10:37:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-26T08:30:56.000Z (almost 4 years ago)
- Last Synced: 2025-01-06T08:09:03.772Z (about 1 month ago)
- Topics: ant, antd, popover, react, view
- Language: JavaScript
- Size: 247 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# react-ant-image-pop-view
> Ant popover view image for react.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```shell
npm install -S @jswork/react-ant-image-pop-view
```## properties
| Name | Type | Required | Default | Description |
| --------- | ------ | -------- | ---------- | ------------------------------------- |
| className | string | false | - | The extended className for component. |
| placement | string | false | 'rightTop' | Placement for antd. |
| size | array | false | [100] | Thumbnail size. |
| popSize | array | false | [100] | Popup picture size. |
| thumbnail | string | false | - | The thumbnail/popup pictures. |
| src | string | true | - | The popup original picutrel. |## usage
1. import css
```scss
@import "~@jswork/react-ant-image-pop-view/dist/style.css";// or use sass
@import "~@jswork/react-ant-image-pop-view/dist/style.scss";// customize your styles:
$react-ant-image-pop-view-options: ()
```
2. import js
```js
import ReactDemokit from '@jswork/react-demokit';
import React from 'react';
import ReactDOM from 'react-dom';
import NxRandomAvatar from '@jswork/next-random-avatar';
import ReactAntImagePopView from '@jswork/react-ant-image-pop-view';
import './assets/style.scss';class App extends React.Component {
render() {
const img = NxRandomAvatar.lego();
return (
);
}
}ReactDOM.render(, document.getElementById('app'));
```
## documentation
- https://afeiship.github.io/react-ant-image-pop-view/## license
Code released under [the MIT license](https://github.com/afeiship/react-ant-image-pop-view/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/react-ant-image-pop-view
[version-url]: https://npmjs.org/package/@jswork/react-ant-image-pop-view[license-image]: https://img.shields.io/npm/l/@jswork/react-ant-image-pop-view
[license-url]: https://github.com/afeiship/react-ant-image-pop-view/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-ant-image-pop-view
[size-url]: https://github.com/afeiship/react-ant-image-pop-view/blob/master/dist/react-ant-image-pop-view.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/react-ant-image-pop-view
[download-url]: https://www.npmjs.com/package/@jswork/react-ant-image-pop-view