Commit 559faf90 authored by Xuguangxing's avatar Xuguangxing

feat: 升级组件库

parent 693214fa
......@@ -87,6 +87,23 @@
chunk_size: '4mb', // 分块上传时,每片的体积
auto_start: true, // 选择文件后自动上传,若关闭需要自己绑定事件触发上传
init: {
FilesAdded: (up, files) => {
if (this.componentKey === 'freedomVideo') {
console.log(files.length)
if (files.length > 1) {
up.removeFile(files[0]);
this.$toast('视频背景只允许上传单个文件');
return false;
}
console.log(files[0].type, 999)
if (files[0].type.indexOf('video') === -1) {
up.removeFile(files[0]);
this.$toast('只允许上传视频格式文件');
return false;
}
// 自由容器视频背景,只允许上传video
}
},
FileUploaded: (up, file, info) => {
// console.log(this);
this.percent = 0;
......
......@@ -2176,9 +2176,9 @@
}
},
"@qg/citrus-ui": {
"version": "0.3.50",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.3.50.tgz",
"integrity": "sha512-eEoHobkGCDsCX7YmM+ivulbMub510F3vPCtkDUflL0UsYTLYLorC3kqJEyN8UQcxpjqI9Cav/HZCwYfnAz7Jng==",
"version": "0.3.51-beta1",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.3.51-beta1.tgz",
"integrity": "sha512-PGXPvL9hAjqeNlG/saf6sINxFYc+a5QBCohZ5bmkfOeH5/s/wBgwS0S0CMe25/prqrZsa50JRzarDHef4MB2bw==",
"requires": {
"@better-scroll/core": "^2.1.1",
"@qg/cherry-ui": "^2.23.9",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment