From 2d7f26712de349062f446197a74c8db347ad3f44 Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期二, 24 十一月 2020 14:52:33 +0800
Subject: [PATCH] 独立场景改为读取cameraInfo中的分辨率信息
---
src/components/subComponents/FileUpload/uploader.vue | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/components/subComponents/FileUpload/uploader.vue b/src/components/subComponents/FileUpload/uploader.vue
index 2df8221..6ada9f3 100644
--- a/src/components/subComponents/FileUpload/uploader.vue
+++ b/src/components/subComponents/FileUpload/uploader.vue
@@ -5,8 +5,8 @@
<uploader-unsupport></uploader-unsupport>
<uploader-drop>
<!-- <p>鎷栧姩鏂囦欢鍒拌鍖哄煙涓婁紶</p> -->
- <uploader-btn>閫夋嫨鏂囦欢</uploader-btn>
- <uploader-btn :directory="true">閫夋嫨鏂囦欢澶�</uploader-btn>
+ <uploader-btn >閫夋嫨鏂囦欢</uploader-btn>
+ <uploader-btn :directory="true" >閫夋嫨鏂囦欢澶�</uploader-btn>
</uploader-drop>
<uploader-list></uploader-list>
</slot>
@@ -34,6 +34,12 @@
}
},
props: {
+ attrs: {
+ type: Object,
+ default() {
+ return {}
+ }
+ },
options: {
type: Object,
default() {
@@ -94,6 +100,7 @@
}
},
allEvent(...args) {
+ console.log(args)
const name = args[0]
const EVENTSMAP = {
[FILE_ADDED_EVENT]: true,
@@ -115,6 +122,8 @@
}
},
created() {
+ // console.log('uploader attrs',this.attrs);
+ // this.bindUploader();
this.options.initialPaused = !this.autoStart
const uploader = new Uploader(this.options)
this.uploader = uploader
@@ -125,7 +134,9 @@
uploader.on('fileRemoved', this.fileRemoved)
uploader.on('filesSubmitted', this.filesSubmitted)
},
+
destroyed() {
+ //this.unBindUploader();
const uploader = this.uploader
uploader.off('catchAll', this.allEvent)
uploader.off(FILE_ADDED_EVENT, this.fileAdded)
--
Gitblit v1.8.0