Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
custom_form
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
2023-04-07 17:36:03 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7d6ba6e8a9e78f6926a86ab33940280b35af65d0
7d6ba6e8
1 parent
0fb558f0
fix
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/components/DatePickerField/index.vue
src/components/TimePickerField/index.vue
src/components/DatePickerField/index.vue
View file @
7d6ba6e
<!--
* @Date: 2022-08-31 11:45:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-04-07 16:
41:59
* @LastEditTime: 2023-04-07 16:
53:40
* @FilePath: /custom_form/src/components/DatePickerField/index.vue
* @Description: 日期选择组件
-->
...
...
@@ -107,7 +107,7 @@ const error_msg = ref('');
// 校验模块
const validDate = () => {
// 必填项
if (required &&
!popupDesc.value
) {
if (required &&
popupDesc.value === '请选择'
) {
show_error.value = true;
error_msg.value = '必填项不能为空'
} else if (required && popupDesc.value && data_minvalue && popupDesc.value < data_minvalue) {
...
...
src/components/TimePickerField/index.vue
View file @
7d6ba6e
<!--
* @Date: 2022-08-31 11:45:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-04-07 1
6:41:40
* @LastEditTime: 2023-04-07 1
7:21:03
* @FilePath: /custom_form/src/components/TimePickerField/index.vue
* @Description: 时间选择组件
-->
...
...
@@ -87,7 +87,7 @@ const error_msg = ref('');
// 校验模块
const validTime = () => {
// 必填项
if (required &&
!popupDesc.value
) {
if (required &&
popupDesc.value === '请选择'
) {
show_error.value = true;
error_msg.value = '必填项不能为空'
} else if (required && popupDesc.value && data_minvalue && popupDesc.value < data_minvalue) {
...
...
Please
register
or
login
to post a comment