Showing
2 changed files
with
4 additions
and
2 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-08-31 16:16:49 | 2 | * @Date: 2022-08-31 16:16:49 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-07-27 08:08:34 | 4 | + * @LastEditTime: 2024-07-27 08:22:39 |
| 5 | * @FilePath: /data-table/src/components/FileUploaderField/index.vue | 5 | * @FilePath: /data-table/src/components/FileUploaderField/index.vue |
| 6 | * @Description: 文件上传控件 | 6 | * @Description: 文件上传控件 |
| 7 | --> | 7 | --> |
| ... | @@ -335,6 +335,7 @@ const validFileUploader = () => { | ... | @@ -335,6 +335,7 @@ const validFileUploader = () => { |
| 335 | // 必填项 未上传文件 | 335 | // 必填项 未上传文件 |
| 336 | if (props.item.component_props.required && !fileList.value.length) { | 336 | if (props.item.component_props.required && !fileList.value.length) { |
| 337 | show_empty.value = true; | 337 | show_empty.value = true; |
| 338 | + showToast(props.item.component_props.label + "必填项未填写"); | ||
| 338 | } else { | 339 | } else { |
| 339 | show_empty.value = false; | 340 | show_empty.value = false; |
| 340 | } | 341 | } | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-08-31 16:16:49 | 2 | * @Date: 2022-08-31 16:16:49 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-07-27 08:06:38 | 4 | + * @LastEditTime: 2024-07-27 08:21:52 |
| 5 | * @FilePath: /data-table/src/components/ImageUploaderField/index.vue | 5 | * @FilePath: /data-table/src/components/ImageUploaderField/index.vue |
| 6 | * @Description: 图片上传控件 | 6 | * @Description: 图片上传控件 |
| 7 | --> | 7 | --> |
| ... | @@ -367,6 +367,7 @@ const validImageUploader = () => { | ... | @@ -367,6 +367,7 @@ const validImageUploader = () => { |
| 367 | // 必填项 未上传图片 | 367 | // 必填项 未上传图片 |
| 368 | if (props.item.component_props.required && !fileList.value.length) { | 368 | if (props.item.component_props.required && !fileList.value.length) { |
| 369 | show_empty.value = true; | 369 | show_empty.value = true; |
| 370 | + showToast(props.item.component_props.label + "必填项未填写"); | ||
| 370 | } else { | 371 | } else { |
| 371 | show_empty.value = false; | 372 | show_empty.value = false; |
| 372 | } | 373 | } | ... | ... |
-
Please register or login to post a comment