Skip to content

upload组件submit.md中示例代码有误 #3020

@justin-water

Description

@justin-water

<a-button type="primary" @click="submit"> start upload</a-button>

报错TypeError: Cannot read properties of undefined (reading 'submit')
error

return {
files,
submitOne,
submit,
onChange
}

在后续补上uploadRef
return { files, submitOne, submit, onChange, uploadRef }

Metadata

Metadata

Assignees

No one assigned

    Labels

    📖 DocsImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions