Skip to content

[upload] console打印告警 #6024

@RuijieYu

Description

@RuijieYu

tdesign-vue-next 版本

1.15.2

重现链接

No response

重现步骤

<template>
  <t-upload theme="file-flow" :auto-upload="false" :cancel-upload-button="{ onClick() {} }" />
</template>

期望结果

正常显示页面,且不显示任何告警信息

实际结果

产生告警,最底几层如下:

[Vue warn]: Invalid prop: type check failed for prop "onClick". Expected Function, got Array  
at <TButton theme="default" disabled=true content="取消上传"  ... > 
at <UploadMultipleFlowList accept="" files= Array [] toUploadFiles= Array []  ... > 
at <UploadFile onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< Proxy { <target>: {…}, handler>: {…} } > > 

框架版本

vue 3.5.18

浏览器版本

firefox 142.0.1

系统版本

windows

Node版本

24.3.0

补充说明

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions