没有合适的资源?快使用搜索试试~ 我知道了~
darrell-photo-gallery:一个基于 react hoos 开发的 仿石墨的 图片放大插件
共64个文件
ts:22个
less:8个
js:6个
需积分: 10 0 下载量 115 浏览量
2021-05-02
13:32:18
上传
评论
收藏 3.1MB ZIP 举报
温馨提示
darrell-photo-gallery 因为最近工作需要预览制作一个图片预览的插件,在查看了很多产品(掘金、知乎、简书、石墨等)的图片预览之后,还是觉得石墨的图片预览符合我们的产品需求。 介绍 这是一个基于 React Hoos 开发的 仿石墨的图片 放大预览插件。 在社区找了很久之后,没有找到相关的轮子,于是自己撸了一个。 插件的功能是当你的设备支持 canvas 的时候,就使用 canvas 进行绘图,当不支持 canvas 的时候就直接显示图片。 支持功能 放大图片 缩小图片 原尺寸大小显示 适应屏幕 下载图片 预览 安装 // 安装 npm install darrell-photo-gallery -D // 在项目中使用 import PhotoGallery from 'darrell-photo-gallery'; import 'darrell-photo-
资源推荐
资源详情
资源评论
收起资源包目录
darrell-photo-gallery-master.zip (64个子文件)
darrell-photo-gallery-master
example
image
img-gallery.gif 2.99MB
src
index.less.d.ts 386B
index.less 456B
index.html 508B
app.js 2KB
.babelrc 61B
config
webpack.prod.config.js 3KB
webpack.dev.config.js 3KB
demo.js 3KB
webpack.base.js 568B
package.json 2KB
tslint.json 74B
package-lock.json 332KB
src
images
images.d.ts 169B
loading.gif 2KB
index.less 25B
index.html 452B
index.tsx 105B
components
photoGallery
index.less.d.ts 510B
canvas.ts 11KB
index.less 1KB
fonts
iconfont.eot 4KB
iconfont.less 4KB
iconfont.ttf 4KB
iconfont.svg 9KB
iconfont.woff 2KB
iconfont.woff2 2KB
index.tsx 5KB
components
Canvas.tsx 4KB
footer.less.d.ts 1KB
image.less.d.ts 361B
image.less 217B
canvas.less.d.ts 350B
sidebar.less 712B
Image.tsx 3KB
Sidebar.tsx 1KB
footer.less 1KB
sidebar.less.d.ts 395B
index.ts 177B
Footer.tsx 2KB
canvas.less 34B
types
global
window.d.ts 195B
utils
utils.ts 2KB
img.ts 5KB
.npmignore 0B
tsconfig.json 834B
.gitignore 12B
lib
index.js 20KB
58640177ac8479591e07836acf38b280.ttf 4KB
5e7cb895895e7d9a1f42692c25f0f89e.svg 9KB
d3af303528816fafe00926a29dba3a50.woff 2KB
6ca395623c66716ea37499830cca838e.eot 4KB
main.min.css 11KB
README.md 2KB
build
index.d.ts 89B
components
photoGallery
canvas.d.ts 2KB
index.d.ts 446B
components
index.d.ts 168B
Image.d.ts 436B
Canvas.d.ts 638B
Sidebar.d.ts 428B
Footer.d.ts 266B
utils
img.d.ts 1KB
utils.d.ts 511B
共 64 条
- 1
资源评论
佐罗先生
- 粉丝: 31
- 资源: 4750
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功