八个组件的props透传,事件向上暴露

This commit is contained in:
yaoyanan
2021-04-07 17:57:14 +08:00
parent 53a032bc97
commit 139fe266e1
12 changed files with 108 additions and 57 deletions
@@ -12,6 +12,8 @@
accept=".xls,.xlsx"
:fileList="fileList"
:remove="handleRemove"
v-bind="$attrs"
v-on="$listeners"
:beforeUpload="beforeUpload">
<a-button>
<a-icon type="upload" />
@@ -43,6 +45,11 @@
default: '',
required: false
},
visible:{
type: Boolean,
default: '',
required: false
},
biz:{
type: String,
default: '',
@@ -51,7 +58,6 @@
},
data(){
return {
visible:false,
uploading:false,
fileList:[],
uploadAction:'',
@@ -66,9 +72,9 @@
}
},
created () {
console.log(this.$attrs)
this.uploadAction = window._CONFIG['domianURL']+this.url
},
methods:{
handleClose(){
this.visible=false