Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-07-27 08:23:00 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a227be92937fb7a6a3d280201b2ee20ff4ebc94c
a227be92
1 parent
8233750a
fix 错误提示toast弹框
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
src/components/FileUploaderField/index.vue
src/components/ImageUploaderField/index.vue
src/components/FileUploaderField/index.vue
View file @
a227be9
<!--
* @Date: 2022-08-31 16:16:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-27 08:
08:34
* @LastEditTime: 2024-07-27 08:
22:39
* @FilePath: /data-table/src/components/FileUploaderField/index.vue
* @Description: 文件上传控件
-->
...
...
@@ -335,6 +335,7 @@ const validFileUploader = () => {
// 必填项 未上传文件
if (props.item.component_props.required && !fileList.value.length) {
show_empty.value = true;
showToast(props.item.component_props.label + "必填项未填写");
} else {
show_empty.value = false;
}
...
...
src/components/ImageUploaderField/index.vue
View file @
a227be9
<!--
* @Date: 2022-08-31 16:16:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-27 08:
06:38
* @LastEditTime: 2024-07-27 08:
21:52
* @FilePath: /data-table/src/components/ImageUploaderField/index.vue
* @Description: 图片上传控件
-->
...
...
@@ -367,6 +367,7 @@ const validImageUploader = () => {
// 必填项 未上传图片
if (props.item.component_props.required && !fileList.value.length) {
show_empty.value = true;
showToast(props.item.component_props.label + "必填项未填写");
} else {
show_empty.value = false;
}
...
...
Please
register
or
login
to post a comment