@simsustech/quasar-components 0.11.21 → 0.11.23
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 +12 -0
- package/dist/form.js +4 -3
- package/package.json +1 -1
- package/src/ui/form/DateInput.vue +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @simsustech/quasar-components
|
|
2
2
|
|
|
3
|
+
## 0.11.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 85d1703: fix(components): DateInput use lazy-rules
|
|
8
|
+
|
|
9
|
+
## 0.11.22
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 9ef33d4: fix(components): set DateInput modelValue to null on clear
|
|
14
|
+
|
|
3
15
|
## 0.11.21
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/form.js
CHANGED
|
@@ -328,8 +328,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
328
328
|
const date = `${year.value}-${String(month.value).padStart(2, "0")}-${String(day.value).padStart(2, "0")}`;
|
|
329
329
|
if (year.value && month.value && day.value && !isNaN(Date.parse(date))) {
|
|
330
330
|
emit("update:modelValue", date);
|
|
331
|
-
} else {
|
|
332
|
-
emit("update:modelValue",
|
|
331
|
+
} else if (modelValue.value !== null) {
|
|
332
|
+
emit("update:modelValue", null);
|
|
333
333
|
}
|
|
334
334
|
});
|
|
335
335
|
const formattedDate = computed(() => {
|
|
@@ -437,7 +437,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
437
437
|
"bottom-slots": "",
|
|
438
438
|
rules: validations.value,
|
|
439
439
|
label: `${_ctx.label}${_ctx.required ? "*" : ""}`,
|
|
440
|
-
"stack-label": ""
|
|
440
|
+
"stack-label": "",
|
|
441
|
+
"lazy-rules": ""
|
|
441
442
|
}, createSlots({
|
|
442
443
|
control: withCtx(() => [
|
|
443
444
|
createElementVNode("div", _hoisted_1$1, [
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
:rules="validations"
|
|
6
6
|
:label="`${label}${required ? '*' : ''}`"
|
|
7
7
|
stack-label
|
|
8
|
+
lazy-rules
|
|
8
9
|
>
|
|
9
10
|
<template #control>
|
|
10
11
|
<div class="row">
|
|
@@ -160,8 +161,8 @@ watch([year, month, day], () => {
|
|
|
160
161
|
const date = `${year.value}-${String(month.value).padStart(2, '0')}-${String(day.value).padStart(2, '0')}`
|
|
161
162
|
if (year.value && month.value && day.value && !isNaN(Date.parse(date))) {
|
|
162
163
|
emit('update:modelValue', date)
|
|
163
|
-
} else {
|
|
164
|
-
emit('update:modelValue',
|
|
164
|
+
} else if (modelValue.value !== null) {
|
|
165
|
+
emit('update:modelValue', null)
|
|
165
166
|
}
|
|
166
167
|
})
|
|
167
168
|
|