zt-file-viewer
v0.0.7
Published
<span><img src="https://img.shields.io/npm/dt/zt-file-viewer.svg" alt="Total Downloads"></span> <span><img src="https://img.shields.io/npm/v/zt-file-viewer.svg" alt="Latest Release"></span> <span><img src="https://img.shields.io/npm/l/zt-file-viewer.svg"
Downloads
8
Readme
ZtFileViewer
Install
npm i zt-file-viewer
Properties
preview: PropTypes.number, allowdelete: PropTypes.number, onChange: PropTypes.func, value: PropTypes.array,
| 字段 | 类别 | 介绍 | 默认值 | 必填 | | ------------ | ----------------- | ----------------------------------------------------------------------- | ------------- | -------- | | className | string | 图片dom的classname | _ | 否 | | style | object | 图片dom的style | {} | 否 | | preview | number | 是否可以预览(1:可以,0:不可以) | 1 | 否 | | allowdelete | number | 允许删除(1:可以,0:不可以) | 0 | 否 | | value | Array<string> | 资源数组 | [] | 是 | | onChange | (value: Array<string>) => {} | value变化回调 | _ | 否 |