Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Upload] 当设置为拖拽模式时,自定义上传方法的error tips不展示 #4651

Open
Nero978 opened this issue Oct 14, 2024 · 1 comment

Comments

@Nero978
Copy link
Contributor

Nero978 commented Oct 14, 2024

tdesign-vue-next 版本

1.10.1

重现链接

No response

重现步骤

        <t-upload
          v-model="formData.file"
          style="margin: 100px"
          theme="file"
          :request-method="upload"
          :size-limit="{
            size: 10,
            unit: 'MB',
            message: '文件大小不能超过 10MB'
          }"
          :abridge-name="[10, 8]"
          draggable
        />

function upload(file) {
  //console.log(file)
  return new Promise((resolve) => {
    resolve({
      status: 'fail',
      error: '99999999999'
    })
  })
}

期望结果

自定义上传方法错误时能在下方的tips区域显示错误原因

实际结果

上传文件,本应该在下方tips展示错误原因9999999,但是没展示
image

超出上传限制大小的时候却有

image

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @Nero978,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant