mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-15 08:12:01 +08:00
fix(upload): 修复组件属性透传问题
在 file-upload 和 image-upload 组件中添加 v-bind="$attrs" 以确保所有未声明的属性能够正确传递给底层 Upload 组件,避免因属性丢失导致的功能异常。
This commit is contained in:
@@ -78,6 +78,7 @@ Upload.Dragger只会影响样式
|
||||
<template>
|
||||
<div>
|
||||
<CurrentUploadComponent
|
||||
v-bind="$attrs"
|
||||
v-model:file-list="innerFileList"
|
||||
:accept="accept"
|
||||
:list-type="listType"
|
||||
|
||||
@@ -86,6 +86,7 @@ function currentPreview(file: UploadFile) {
|
||||
<template>
|
||||
<div>
|
||||
<Upload
|
||||
v-bind="$attrs"
|
||||
v-model:file-list="innerFileList"
|
||||
:class="{ 'upload-animation__disabled': !withAnimation }"
|
||||
:list-type="listType"
|
||||
|
||||
Reference in New Issue
Block a user