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-06-13 18:39:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4a5a623683e9871fff3b02942346508a9f07012c
4a5a6236
1 parent
5e72277f
fix 默认值为空判断
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/components/DateTimePickerField/index.vue
src/components/DateTimePickerField/index.vue
View file @
4a5a623
<!--
* @Date: 2022-09-08 15:02:45
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-13 1
7:53:14
* @LastEditTime: 2024-06-13 1
8:22:45
* @FilePath: /data-table/src/components/DateTimePickerField/index.vue
* @Description: 日期时间选择器
-->
...
...
@@ -81,7 +81,7 @@ const maxDate = ref()
onMounted(() => {
// 根据默认值时间调整显示
props.item.value = props.item.component_props.default;
props.item.value = props.item.component_props.default
? props.item.component_props.default : ''
;
const datetime = props.item.component_props.default ? props.item.component_props.default.split(" ") : props.item.value?.split(" ");
currentDate.value = datetime[0]?.split("-");
currentTime.value = datetime[1]?.split(":");
...
...
Please
register
or
login
to post a comment