@monoui/vuejs 1.1.59 → 1.1.60
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/dist/main.js +2 -2
- package/package.json +1 -1
- package/src/components/Date/DatePicker.vue +12 -2
package/package.json
CHANGED
|
@@ -97,8 +97,13 @@ export default {
|
|
|
97
97
|
let date2 = moment(this.value[1]).toDate();
|
|
98
98
|
return [date1, date2];
|
|
99
99
|
} else {
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
if (this.isUTC) {
|
|
101
|
+
let date = moment.utc(this.value).toDate();
|
|
102
|
+
return date;
|
|
103
|
+
} else {
|
|
104
|
+
let date = moment(this.value).toDate();
|
|
105
|
+
return date;
|
|
106
|
+
}
|
|
102
107
|
}
|
|
103
108
|
},
|
|
104
109
|
set: function(value) {
|
|
@@ -258,6 +263,11 @@ export default {
|
|
|
258
263
|
* shortcuts.
|
|
259
264
|
* Allows to determine shortcuts when shortcutsEnable property is true
|
|
260
265
|
*/
|
|
266
|
+
isUTC: {
|
|
267
|
+
type: Boolean,
|
|
268
|
+
required: false,
|
|
269
|
+
default: false
|
|
270
|
+
},
|
|
261
271
|
shortcuts: {
|
|
262
272
|
type: Array,
|
|
263
273
|
default: () => {
|