From eae42898695ff204ffff2d30aa87f584c4a2854a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Mon, 3 Jul 2023 08:09:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20upload=20=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E4=B8=AD=20`text`=20=E5=B1=9E=E6=80=A7=E7=9A=84?= =?UTF-8?q?=E4=BB=8B=E7=BB=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/upload/detail/options.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/upload/detail/options.md b/docs/upload/detail/options.md index 2db0e2e1..81bec362 100644 --- a/docs/upload/detail/options.md +++ b/docs/upload/detail/options.md @@ -265,6 +265,33 @@ acceptMime: 'image/jpeg, image/png` // 只筛选 jpg,png 格式图片 `true` + + + + + +[text](#options.text) 2.8.9+ + + + + +
+ +自定义内部各类场景下的提示文本 + +
+ +``` +text: { // 自定义提示文本 + "data-format-error": "", // 数据格式错误的提示 + "check-error": "", // 文件格式校验失败的提示 + "error": "", // 上传失败的提示 + "limit-number": null, // 限制 number 属性的提示。若设置,需为函数写法 + "limit-size": null, // 限制 size 属性的提示。若设置,需为函数写法 + "cross-domain": "", // IE 下跨域的提示 +} +``` +