Skip to content

upload组件的disabled属性使用没有效果,不会隐藏删除按钮 #1692

@donglinkai

Description

@donglinkai
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.4.8

Environment

chrome 版本 79.0.3945.88(正式版本) (64 位)

Reproduction link

Edit on CodeSandbox

Steps to reproduce

<Upload
action="#"
@preview="handlePictureCardPreview"
listType="picture-card"
:fileList="fileList"
:multiple="true"
disabled
@change="fileChange"
:openFileDialogOnClick="false"
>

我试了下跟ant-design里面disabled效果不一样,antd可以隐藏这个按钮

What is expected?

隐藏删除按钮

What is actually happening?

disabled失效,无法隐藏删除按钮

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions