1.2.16 • Published 1 year ago

gc_cos_upload v1.2.16

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

绿云上传组件

绿云上传组件 -- vue2

支持图片、视频和文件上传

安装

npm install --save gc_cos_upload

使用

<template>
  <CosUpload
    :max="2"
    :disabled="disabled"
    fileType="IMAGE"
    v-model="images"
  ></CosUpload>
</template>

<script>
import Vue from "vue";
import gc_cos_upload from "gc_cos_upload";
Vue.use(gc_cos_upload);
export default {
  name: "HomeView",
  data() {
    return {
      disabled: false,
      images: ""
    };
  }
};
</script>

通用属性

属性说明类型默认值
value绑定的值,可使用 v-model 双向绑定,采用;分隔String""
fileType类型: 图片、视频、文件(IMAGE/VIDEO/OTHER )StringIMAGE
token传入的token值String/Object/function/
point点位数据,详见下方说明Object{system: "UC", page: "USER",position: "Avatar",bizRelObject: "用户", bizRelObjectId: "user111" }
max最大上传数量Number/

point

属性说明类型默认值
system业务模块String/
page业务子模块String/
position当前位置String/
bizRelObject业务关联对象String/
bizRelObjectId业务关联对象IDString/

图片上传

属性说明类型默认值
linkVisible是否显示修改链接Objecttrue
tupiankuVisible是否显示图片库Objecttrue
disabled是否禁用图片库Booleanfalse
其他属性图片上传原有配置Object/

视频上传

属性说明类型默认值
通用属性通用属性Object/

文件上传

属性说明类型默认值
通用属性通用属性Object/
1.2.16

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.2.11

1 year ago

1.2.9

2 years ago

1.2.10

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.0

2 years ago

1.2.1

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.13

2 years ago

1.1.9

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.10

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago