UNPKG

otb-module

Version:

otb-module是基于现有的element-ui库进行的二次封装,简化组件的各自用法,将所有基础组件归纳于一个表单中, 集成表单组件,另还有增删改查的CRUD组件、预览图片/PDF的preview组件、上传文件的upload组件、分页组件与导出组件等等。 引入组件后以数据驱动组件从而加载Dom,让开发变得更简单,让代码更易维护。

89 lines (88 loc) 1.7 kB
export const supportFile = [ // 图片 { type: ["image/jpg"], suffix: "jpg" }, { type: ["image/jpeg"], suffix: "jpeg" }, { type: ["image/png"], suffix: "png" }, { type: ["image/gif"], suffix: "gif" }, // Office { type: ["application/pdf"], suffix: "pdf" }, { type: ["application/msword"], suffix: "doc" }, { type: ["application/vnd.openxmlformats-officedocument.wordprocessingml.document"], suffix: "docx" }, { type: ["application/vnd.ms-excel"], suffix: "xsl" }, { type: ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"], suffix: "xslx" }, { type: ["application/vnd.ms-powerpoint"], suffix: "ppt" }, { type: ["application/vnd.openxmlformats-officedocument.presentationml.presentation"], suffix: "pptx" }, // 视频 { type: ["video/mp4"], suffix: "mp4" }, { type: ["video/x-msvideo"], suffix: "avi" }, { type: ["audio/3gpp", "video/3gpp"], suffix: "3gpp" }, // 音频 { type: ["audio/mpeg"], suffix: "mp3" }, // 文本 { type: ["text/plain"], suffix: "txt" }, // 代码文件 { type: ["text/html"], suffix: "html" }, { type: ["text/css"], suffix: "css" }, { type: ["text/javascript", "application/javascript"], suffix: "js" }, { type: ["application/json"], suffix: "json" }, ]