h-image-perview
v0.0.9
Published
图片预览
Downloads
18
Maintainers
Readme
Vue 3 + TypeScript + Vite 开发的图片预览
安装
npm i h-image-perview
使用
import { imagePerview } from "h-image-perview";
import "h-image-perview/style.css"
<imagePerview :url="" @download="" @remove="" />
属性:
url 图片地址 string
isDownload: 是否显示下载 boolean 默认true
isDelete: 是否显示删除 boolean 默认true
方法:
download 自定义下载 默认返回图片地址
remove 自定义删除 默认返回图片地址