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 16:41:27 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7759469467daa1b427cf9eac58cb0b1e28214b0c
77594694
1 parent
e6add2a0
fix
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
src/components/DatePickerField/index.vue
src/components/DateTimePickerField/index.vue
src/components/TimePickerField/index.vue
src/components/DatePickerField/index.vue
View file @
7759469
<!--
* @Date: 2022-08-31 11:45:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-13 1
4:30:42
* @LastEditTime: 2024-06-13 1
5:54:10
* @FilePath: /data-table/src/components/DatePickerField/index.vue
* @Description: 日期选择组件
-->
...
...
@@ -76,7 +76,7 @@ const maxDate = ref()
onMounted(() => {
// 根据默认值时间调整显示
props.item.value = props.item.component_props.default;
currentDate.value = props.item.component_props.default ? props.item.component_props.default.split("-") : props.item.value.split("-");
currentDate.value = props.item.component_props.default ? props.item.component_props.default.split("-") : props.item.value
?
.split("-");
let Year = '';
let Month = '';
let Day = '';
...
...
src/components/DateTimePickerField/index.vue
View file @
7759469
<!--
* @Date: 2022-09-08 15:02:45
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-13 1
4:32:2
0
* @LastEditTime: 2024-06-13 1
5:56:4
0
* @FilePath: /data-table/src/components/DateTimePickerField/index.vue
* @Description: 日期时间选择器
-->
...
...
@@ -82,7 +82,7 @@ const maxDate = ref()
onMounted(() => {
// 根据默认值时间调整显示
props.item.value = props.item.component_props.default;
const datetime = props.item.component_props.default ? props.item.component_props.default.split(" ") : props.item.value.split(" ");
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(":");
// YYYY=年,YYYY-MM=年月,YYYY-MM-DD=年月日,YYYY-MM-DD HH=年月日时,YYYY-MM-DD HH:mm=年月日时分,YYYY-MM-DD HH:mm:ss=年月日时分秒
...
...
src/components/TimePickerField/index.vue
View file @
7759469
<!--
* @Date: 2022-08-31 11:45:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-13 1
4:33:24
* @LastEditTime: 2024-06-13 1
5:54:33
* @FilePath: /data-table/src/components/TimePickerField/index.vue
* @Description: 时间选择组件
-->
...
...
@@ -63,7 +63,7 @@ const date_format = props.item.component_props.data_dateformat; // HH:mm=时分ï
onMounted(() => {
// 根据默认值时间调整显示
props.item.value = props.item.component_props.default;
currentTime.value = props.item.component_props.default ? props.item.component_props.default.split(":") : props.item.value.split(":");
currentTime.value = props.item.component_props.default ? props.item.component_props.default.split(":") : props.item.value
?
.split(":");
let Hour = ''
let Minute = ''
let Second = ''
...
...
Please
register
or
login
to post a comment