| | |
| | | function handleUploadSuccess(res) {
|
| | | uploadList.value.push({ name: res.fileName, url: res.fileName });
|
| | | if (uploadList.value.length === number.value) {
|
| | | fileList.value = fileList.value.concat(uploadList.value);
|
| | | fileList.value = fileList.value.filter(f => f.url !== undefined).concat(uploadList.value);
|
| | | uploadList.value = [];
|
| | | number.value = 0;
|
| | | emit("update:modelValue", listToString(fileList.value));
|
| | |
| | | return strs != "" ? strs.substr(0, strs.length - 1) : "";
|
| | | }
|
| | | </script>
|
| | |
|
| | | <style scoped lang="scss">
|
| | | // .el-upload--picture-card 控制加号部分
|
| | | :deep(.hide .el-upload--picture-card) {
|
| | | display: none;
|
| | | }
|
| | | </style> |