MVP Verson: 0.5.2 beta
Lang Icon
Toggle Icon
Upload
File selection upload control.
Default
PreviewCode
    Upload List
    PreviewCode
    • file iconcard.pngfile icon2
    • file iconavatar.pngfile icon2
    Count Limit
    PreviewCode
      Size Limit
      PreviewCode
        Format Limit
        PreviewCode
          Before
          PreviewCode
            Props
            Universal Props
            PropTypeAccepted ValuesDescriptionDefaultVerson
            acceptstringimage/* | video/* | audio/*specify the allowed file types. For security reasons, it is recommended to only allow image files to be uploaded. For more formats, please refer to https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/fileimage/*-
            multiplebooleanbooleanenable multiple file uploadsfalse-
            onChange() => void-callback function when the uploaded file changes--
            beforeUpload() => void-callback function before uploading a file--
            filesarrayarrayupload file list[]-
            showUploadListbooleanbooleanshow upload listtrue-
            maxCountnumbernumbermaximum number of uploads20-
            maxSizenumbernumbermaximum upload file size(MB)100-
            btnTextstringstringupload button text选择文件0.5.1
            btnStyleobjectobjectupload button style-0.5.1
            showSizebooleanbooleanshow file sizetrue0.5.1
            sxobjectobjectinline styles for customizing components. Note: Inline styles set using the 'style' property will override the 'sx' property.--
            classNamestringstringdefines the class name of the component.--
            styleobjectobjectdefines inline styles for a component.--