| | |
| | | :limit="limit" |
| | | :action="action" |
| | | @change="handleChange" |
| | | @before-remove="beforeRemove" |
| | | image-preview |
| | | /> |
| | | </template> |
| | |
| | | url: String, //回显的文件地址 |
| | | }); |
| | | |
| | | const emit = defineEmits(['update:fileList', 'success']); |
| | | const emit = defineEmits(['update:fileList', 'success', 'handleRemove']); |
| | | const urls = computed(() => props.url); |
| | | const fileList = ref([]); |
| | | |
| | |
| | | }); |
| | | |
| | | // console.log(urls.value, 8988); |
| | | const beforeRemove = (file) => { |
| | | emit('handleRemove'); |
| | | fileList.value = []; |
| | | }; |
| | | |
| | | const handleChange = (fileList) => { |
| | | emit('update:fileList', fileList); |