|
@@ -40,7 +40,7 @@ const props = defineProps({
|
|
|
})
|
|
|
|
|
|
//事件
|
|
|
-const emit = defineEmits(['change', 'progress', 'finished'])
|
|
|
+const emit = defineEmits(['change', 'progress', 'finished', 'close'])
|
|
|
//变量
|
|
|
const uploadData = ref(props.datas)
|
|
|
const fileListData = ref(props.fileList)
|
|
@@ -132,6 +132,7 @@ const uploadError = () => {
|
|
|
|
|
|
//预览
|
|
|
const uploadPreview = ({ url }) => {
|
|
|
+ emit('close')
|
|
|
toPdfPage(url)
|
|
|
/*if (url) {
|
|
|
window.open(url, '_blank')
|