quasar-ui-sellmate-ui-kit 3.14.31 → 3.14.33
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 +21 -41
- package/dist/index.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/components/SDatePicker.vue +2 -18
package/package.json
CHANGED
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
>
|
|
34
34
|
<q-menu v-model="calendarOpen" fit class="date-picker-wrapper" :offset="[12, 12]">
|
|
35
35
|
<q-date
|
|
36
|
-
v-if="range"
|
|
37
36
|
v-model="dateValue"
|
|
38
37
|
minimal
|
|
39
38
|
:range="range"
|
|
@@ -45,19 +44,6 @@
|
|
|
45
44
|
@range-end="resetDate"
|
|
46
45
|
@update:modelValue="dateUpdate"
|
|
47
46
|
/>
|
|
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
47
|
</q-menu>
|
|
62
48
|
</q-btn>
|
|
63
49
|
</template>
|
|
@@ -147,9 +133,8 @@
|
|
|
147
133
|
);
|
|
148
134
|
|
|
149
135
|
const dateValue = ref(props.modelValue);
|
|
150
|
-
const processedDateValue = ref(props.modelValue);
|
|
151
136
|
|
|
152
|
-
function dateUpdate(
|
|
137
|
+
function dateUpdate() {
|
|
153
138
|
if (props.range) {
|
|
154
139
|
if (typeof dateValue.value === 'string') {
|
|
155
140
|
dateValue.value = {
|
|
@@ -162,8 +147,7 @@
|
|
|
162
147
|
}
|
|
163
148
|
inputDate.value = `${dateValue.value.from} ~ ${dateValue.value.to}`;
|
|
164
149
|
} else {
|
|
165
|
-
dateValue.value =
|
|
166
|
-
processedDateValue.value = dateVal;
|
|
150
|
+
dateValue.value = date.formatDate(dateValue.value, 'YYYY-MM-DD');
|
|
167
151
|
inputDate.value = dateValue.value;
|
|
168
152
|
}
|
|
169
153
|
calendarOpen.value = false;
|