@lx-vue-materiel/upload-el-plus

0.0.5 • Public • Published

@lx-vue-materiel/upload

lx上传服务组件插件

注意:该组件需依赖项目中的 element-plus 2.x


使用方式

安装

npm i @lx-vue-materiel/upload --save

// 示例

import uploadPlugin from '@lx-vue-materiel/upload';
Vue.use(uploadPlugin);

<lx-upload
    type="em_addition_config"
    :list.sync="form.config_image_urls"
    :limit="3" // 最大上传文件数 默认1
    :maxSize="2" // 单个文件大小(MB)默认10MB
    authType="form" // 认证token传递方式 支持 header(默认) 和 form
    :headersProps="headers"
    :imgType=['image/jpg', 'image/jpeg', 'image/png', 'image/bmp', 'image/gif'] // 可选上传图片类型
>

TODO

  • 上传音频
  • 上传视频

/@lx-vue-materiel/upload-el-plus/

    Package Sidebar

    Install

    npm i @lx-vue-materiel/upload-el-plus

    Weekly Downloads

    1

    Version

    0.0.5

    License

    ISC

    Unpacked Size

    8.14 kB

    Total Files

    4

    Last publish

    Collaborators

    • haiyulu
    • chenzian
    • mind29
    • lichao.franklee
    • owen.huang
    • simba.wang
    • tiny.tu
    • yuki.liu
    • jeely
    • pok.h