@simsustech/quasar-components 0.5.5 → 0.5.6
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/CHANGELOG.md +6 -0
- package/dist/form.js +1 -1
- package/package.json +1 -1
- package/src/ui/form/DateInput.vue +1 -1
package/CHANGELOG.md
CHANGED
package/dist/form.js
CHANGED
|
@@ -388,7 +388,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
388
388
|
};
|
|
389
389
|
watch([year, month, day], () => {
|
|
390
390
|
const date = `${year.value}-${String(month.value).padStart(2, "0")}-${String(day.value).padStart(2, "0")}`;
|
|
391
|
-
if (Date.parse(date)) {
|
|
391
|
+
if (year.value && month.value && day.value && !isNaN(Date.parse(date))) {
|
|
392
392
|
emit("update:modelValue", date);
|
|
393
393
|
} else {
|
|
394
394
|
emit("update:modelValue", "");
|
package/package.json
CHANGED
|
@@ -139,7 +139,7 @@ const setDate: InstanceType<typeof QDate>['$props']['onUpdate:modelValue'] = (
|
|
|
139
139
|
|
|
140
140
|
watch([year, month, day], () => {
|
|
141
141
|
const date = `${year.value}-${String(month.value).padStart(2, '0')}-${String(day.value).padStart(2, '0')}`
|
|
142
|
-
if (Date.parse(date)) {
|
|
142
|
+
if (year.value && month.value && day.value && !isNaN(Date.parse(date))) {
|
|
143
143
|
emit('update:modelValue', date)
|
|
144
144
|
} else {
|
|
145
145
|
emit('update:modelValue', '')
|