zt-fitted-image
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

Total Downloads Latest Release License

ZtFittedImage

微信环境已适配√ 图片预览非微信环境采用viewerjs查看,微信环境采用wx.previewImage预览

Install

npm i zt-fitted-image

Properties

字段 类别 介绍 默认值 必填
background number 是否使用background渲染方式 0
className string 图片dom的classname _
outClassName string 组件外部dom的classname _
fit string 图片fit值,可以是 "auto", "contain" 或 "cover" "auto"
onLoad function 图片加载成功回调 _
onError function 图片加载失败回调 _
src string 图片渲染地址 _
style object 图片dom的style {}
preview number 是否可以预览(1:可以,0:不可以) 1
previewarr array<string> 预览图片数组 []
index number 预览图片序号 0
allowdelete number 允许删除(1:可以,0:不可以) 1
onDelete function 图片删除回调(src, index) _

Package Sidebar

Install

npm i zt-fitted-image

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

292 kB

Total Files

21

Last publish

Collaborators

  • ztwcy1314