UNPKG

@opensig/opendesign

Version:

<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>

115 lines (114 loc) 1.91 kB
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const UploadFileStatusTypes = ["pending", "uploading", "finished", "failed"]; const UploadListTypes = ["text", "picture", "picture-card"]; const uploadProps = { /** * 文件列表(受控) * v-model */ modelValue: { type: Array }, /** * 文件列表(非受控) */ defaultFileList: { type: Array }, /** * 文件选择 MIME类型 * image/jpeg;image/jpg;image/png;image/gif;video/mp4; */ accept: { type: String }, /** * 是否为禁用状态 */ disabled: { type: Boolean }, /** * 是否支持多选 */ multiple: { type: Boolean }, /** * 选择文件前回调,根据返回值判断是否继续选择文件 */ beforeSelect: { type: Function }, /** * 选择后触发 */ onAfterSelect: { type: Function }, /** * 选择按钮文本 */ btnLabel: { type: String }, /** * 自定义上传请求 */ uploadRequest: { type: Function }, /** * true 选择完成后,手动触发上传;false 选择完成后自动上传 */ lazyUpload: { type: Boolean }, /** * 上传前触发 */ onBeforeUpload: { type: Function }, /** * 删除前触发 */ onBeforeRemove: { type: Function }, /** * 支持拖拽上传 */ draggable: { type: Boolean }, /** * 拖拽区域上传提示文本 */ dragLabel: { type: String }, /** * 拖拽区域拖拽中的提示文本 */ dragHoverLabel: { type: String }, /** * 文件列表类型 */ listType: { type: String, default: "text" }, /** * 生成缩略图 */ createThumbnail: { type: Function } }; exports.UploadFileStatusTypes = UploadFileStatusTypes; exports.UploadListTypes = UploadListTypes; exports.uploadProps = uploadProps;