quasar-ui-sellmate-ui-kit 3.14.31 → 3.14.32
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/index.common.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.min.css +1 -1
- package/dist/index.rtl.css +1 -1
- package/dist/index.rtl.min.css +1 -1
- package/dist/index.umd.js +88 -105
- package/dist/index.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/components/SDatePicker.vue +3 -18
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
{{ dateValue }}
|
|
2
3
|
<q-input
|
|
3
4
|
dense
|
|
4
5
|
outlined
|
|
@@ -33,7 +34,6 @@
|
|
|
33
34
|
>
|
|
34
35
|
<q-menu v-model="calendarOpen" fit class="date-picker-wrapper" :offset="[12, 12]">
|
|
35
36
|
<q-date
|
|
36
|
-
v-if="range"
|
|
37
37
|
v-model="dateValue"
|
|
38
38
|
minimal
|
|
39
39
|
:range="range"
|
|
@@ -45,19 +45,6 @@
|
|
|
45
45
|
@range-end="resetDate"
|
|
46
46
|
@update:modelValue="dateUpdate"
|
|
47
47
|
/>
|
|
48
|
-
<q-date
|
|
49
|
-
v-else
|
|
50
|
-
v-model="processedDateValue"
|
|
51
|
-
minimal
|
|
52
|
-
:range="range"
|
|
53
|
-
color="positive"
|
|
54
|
-
class="q-pa-none"
|
|
55
|
-
:options="optionsFn"
|
|
56
|
-
:locale="lang ? locale[lang] : {}"
|
|
57
|
-
@range-start="getRangeStartDay"
|
|
58
|
-
@range-end="resetDate"
|
|
59
|
-
@update:modelValue="dateUpdate"
|
|
60
|
-
/>
|
|
61
48
|
</q-menu>
|
|
62
49
|
</q-btn>
|
|
63
50
|
</template>
|
|
@@ -147,9 +134,8 @@
|
|
|
147
134
|
);
|
|
148
135
|
|
|
149
136
|
const dateValue = ref(props.modelValue);
|
|
150
|
-
const processedDateValue = ref(props.modelValue);
|
|
151
137
|
|
|
152
|
-
function dateUpdate(
|
|
138
|
+
function dateUpdate() {
|
|
153
139
|
if (props.range) {
|
|
154
140
|
if (typeof dateValue.value === 'string') {
|
|
155
141
|
dateValue.value = {
|
|
@@ -162,8 +148,7 @@
|
|
|
162
148
|
}
|
|
163
149
|
inputDate.value = `${dateValue.value.from} ~ ${dateValue.value.to}`;
|
|
164
150
|
} else {
|
|
165
|
-
dateValue.value =
|
|
166
|
-
processedDateValue.value = dateVal;
|
|
151
|
+
dateValue.value = date.formatDate(dateValue.value, 'YYYY-MM-DD');
|
|
167
152
|
inputDate.value = dateValue.value;
|
|
168
153
|
}
|
|
169
154
|
calendarOpen.value = false;
|