@veritree/ui 0.78.0-1 → 0.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.78.0-1",
3
+ "version": "0.78.0",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -36,6 +36,7 @@
36
36
  </template>
37
37
 
38
38
  <script>
39
+ import utc from 'dayjs/plugin/utc';
39
40
  import {
40
41
  formControlMixin,
41
42
  formControlStyleMixin,
@@ -46,6 +47,7 @@ import VTPopoverContent from './../Popover/VTPopoverContent.vue';
46
47
  import Datepicker from '@sum.cumo/vue-datepicker';
47
48
  import { IconChevronLeft, IconChevronRight } from '@veritree/icons';
48
49
  import dayjs from 'dayjs';
50
+ dayjs.extend(utc);
49
51
 
50
52
  export default {
51
53
  name: 'VTInputDate',
@@ -112,7 +114,7 @@ export default {
112
114
  },
113
115
 
114
116
  valueModelFormatted() {
115
- return dayjs(this.value).format(this.format);
117
+ return dayjs(this.value).utc().format(this.format);
116
118
  },
117
119
 
118
120
  disabledDatesComputed() {
@@ -46,8 +46,13 @@ export default {
46
46
  },
47
47
  },
48
48
 
49
- valueFormatted() {
50
- return Number(this.value).toLocaleString();
49
+ valueFormatted: {
50
+ get() {
51
+ return Number(this.value).toLocaleString();
52
+ },
53
+ set(value) {
54
+ this.valueComputed = value;
55
+ },
51
56
  },
52
57
  },
53
58