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