使用ui库时遇到的一些问题

函数有默认参数但是需要传额外的参数

实际处理函数外套一层函数

1
2
3
4
<a-upload
v-model:file-list="(file) => return handleBefore(file, index)"
>
</a-upload>
1
handleBefore(file, index) {}

使用ui库时遇到的一些问题
http://example.com/2022/11/01/使用ui库时遇到的一些问题/
Author
John Doe
Posted on
November 1, 2022
Licensed under