From 3769c03d7853603f9e3d9cc233b7b4ab61514f41 Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期一, 20 十二月 2021 13:35:56 +0800
Subject: [PATCH] 登录页修改
---
src/components/subComponents/FileUpload/btn.vue | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/components/subComponents/FileUpload/btn.vue b/src/components/subComponents/FileUpload/btn.vue
index 7ea24ff..0bffa02 100644
--- a/src/components/subComponents/FileUpload/btn.vue
+++ b/src/components/subComponents/FileUpload/btn.vue
@@ -26,11 +26,21 @@
default() {
return {}
}
+ },
+ sourceType: {
+ type: Number,
}
},
+
mounted() {
this.$nextTick(() => {
- this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, this.attrs)
+ let props = {accept:''};
+ if(this.sourceType == 1){
+ props.accept = '.mp4';
+ }else if(this.sourceType == 2){
+ props.accept = '.jpg,.jpeg,.png';
+ }
+ this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, props)
})
}
}
@@ -51,6 +61,6 @@
outline: none;
}
.uploader-btn:hover {
- background-color: rgba(0, 0, 0, 0.08);
+ /* background-color: rgba(0, 0, 0, 0.08); */
}
</style>
--
Gitblit v1.8.0