quasar-ui-danx 0.0.33 → 0.0.34

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-danx",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "author": "Dan <dan@flytedesk.com>",
5
5
  "description": "DanX Vue / Quasar component library",
6
6
  "license": "MIT",
@@ -87,16 +87,21 @@ function toQDateValue(val) {
87
87
  }
88
88
 
89
89
  const dateRangeValue = computed(() => {
90
- let range = dateRange.value;
90
+ let range;
91
91
 
92
- if (typeof range === 'string') {
92
+ if (typeof dateRange.value === 'string') {
93
93
  range = {
94
- from: range,
95
- to: range
94
+ from: dateRange.value,
95
+ to: dateRange.value
96
+ };
97
+ } else if (dateRange.value) {
98
+ range = {
99
+ from: dateRange.value.from,
100
+ to: dateRange.value.to
96
101
  };
97
102
  }
98
103
 
99
- if (range?.from && range?.to && props.withTime) {
104
+ if (range?.from && range?.to && props.withTime && !range.from.includes('00:00:00')) {
100
105
  range.from += ' 00:00:00';
101
106
  range.to += ' 23:59:59';
102
107
  }