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 17:54:08 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5e72277f6080d929954fb5cbb7c833eb30ac2341
5e72277f
1 parent
705dc66d
fix 日期控件的月份计算问题处理,月份从0开始需要+1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/components/DatePickerField/index.vue
src/components/DateTimePickerField/index.vue
src/components/DatePickerField/index.vue
View file @
5e72277
<!--
* @Date: 2022-08-31 11:45:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-13 1
5:54:10
* @LastEditTime: 2024-06-13 1
7:52:57
* @FilePath: /data-table/src/components/DatePickerField/index.vue
* @Description: 日期选择组件
-->
...
...
@@ -82,7 +82,7 @@ onMounted(() => {
let Day = '';
if (!props.item.component_props.default) {
Year = String(dayjs().year());
Month = formatZero(dayjs().month(), 2);
Month = formatZero(dayjs().month()
+1
, 2);
Day = formatZero(dayjs().date(), 2);
} else {
Year = currentDate.value[0];
...
...
src/components/DateTimePickerField/index.vue
View file @
5e72277
<!--
* @Date: 2022-09-08 15:02:45
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-13 1
5:56:40
* @LastEditTime: 2024-06-13 1
7:53:14
* @FilePath: /data-table/src/components/DateTimePickerField/index.vue
* @Description: 日期时间选择器
-->
...
...
@@ -91,7 +91,7 @@ onMounted(() => {
let Day = '';
if (!props.item.component_props.default) {
Year = String(dayjs().year());
Month = formatZero(dayjs().month(), 2);
Month = formatZero(dayjs().month()
+1
, 2);
Day = formatZero(dayjs().date(), 2);
} else {
Year = currentDate.value[0];
...
...
Please
register
or
login
to post a comment