|
@@ -47,7 +47,10 @@ export default defineComponent({
|
|
|
type: String,
|
|
type: String,
|
|
|
default: store.state.uploadUrl,
|
|
default: store.state.uploadUrl,
|
|
|
},
|
|
},
|
|
|
- disabled: Boolean,
|
|
|
|
|
|
|
+ disabled: {
|
|
|
|
|
+ type: Boolean,
|
|
|
|
|
+ default: false,
|
|
|
|
|
+ },
|
|
|
fileList: Array,
|
|
fileList: Array,
|
|
|
uploadText: {
|
|
uploadText: {
|
|
|
type: String,
|
|
type: String,
|
|
@@ -94,7 +97,7 @@ export default defineComponent({
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
- changeDragVisable(false);
|
|
|
|
|
|
|
+ changeDragVisable(!props.disabled);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
return {
|
|
return {
|