File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 6
6
:return-value.sync =" tempFormData.date"
7
7
width =" 290px"
8
8
>
9
- <v-date-picker v-model =" tempFormData.date" >
9
+ <v-date-picker
10
+ v-model =" tempFormData.date"
11
+ :locale =" $root.$i18n.locale"
12
+ :day-format =" (date) => $dayjs(date).format('D')"
13
+ >
10
14
<v-spacer />
11
15
<v-btn text color =" primary" @click =" datePickerOpen = false" >
12
16
{{ $t('common.general.buttons.cancel') }}
Original file line number Diff line number Diff line change 3
3
<v-dialog v-model =" openCalenderDialog" max-width =" 320px" >
4
4
<v-date-picker
5
5
v-model =" date"
6
- locale =" ja"
7
6
first-day-of-week =" 1"
8
7
width =" 100%"
9
8
class =" mb-4"
9
+ :locale =" $root.$i18n.locale"
10
+ :day-format =" (date) => $dayjs(date).format('D')"
10
11
@input =" openCalenderDialog = false"
11
12
/>
12
13
<base-action-button
@@ -133,8 +134,8 @@ export default Vue.extend({
133
134
get() {
134
135
return this .$dayjs (vxm .app .currentDate ).format (' YYYY-MM-DD' )
135
136
},
136
- set(newValue : string ) {
137
- vxm .app .setDate (newValue )
137
+ set(newValue : Date ) {
138
+ vxm .app .setDate (( this as any ). $dayjs ( newValue ). toDate () )
138
139
},
139
140
},
140
141
},
Original file line number Diff line number Diff line change 3
3
<v-dialog v-model =" openCalenderDialog" max-width =" 320px" >
4
4
<v-date-picker
5
5
v-model =" date"
6
- locale =" ja"
7
6
first-day-of-week =" 1"
8
7
width =" 100%"
9
8
class =" mb-4"
9
+ :locale =" $root.$i18n.locale"
10
+ :day-format =" (date) => $dayjs(date).format('D')"
10
11
@input =" openCalenderDialog = false"
11
12
/>
12
13
<base-action-button
@@ -132,8 +133,8 @@ export default Vue.extend({
132
133
get() {
133
134
return this .$dayjs (vxm .app .currentDate ).format (' YYYY-MM-DD' )
134
135
},
135
- set(newValue : string ) {
136
- vxm .app .setDate (newValue )
136
+ set(newValue : Date ) {
137
+ vxm .app .setDate (( this as any ). $dayjs ( newValue ). toDate () )
137
138
},
138
139
},
139
140
classData() {
You can’t perform that action at this time.
0 commit comments