@fy-/fws-vue 1.1.7 → 1.2.1
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.
|
@@ -76,6 +76,9 @@ const handleFocus = () => {
|
|
|
76
76
|
const handleBlur = () => {
|
|
77
77
|
emit("blur", props.id);
|
|
78
78
|
};
|
|
79
|
+
const setDate = (date: string) => {
|
|
80
|
+
model.value = new Date(date).toISOString().split("T")[0];
|
|
81
|
+
};
|
|
79
82
|
const emit = defineEmits([
|
|
80
83
|
"update:modelValue",
|
|
81
84
|
"update:checkboxValue",
|
|
@@ -184,8 +187,9 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
184
187
|
</svg>
|
|
185
188
|
</div>
|
|
186
189
|
<VueDatePicker
|
|
187
|
-
|
|
188
|
-
model-
|
|
190
|
+
:model-value="model"
|
|
191
|
+
@update:model-value="setDate"
|
|
192
|
+
model-type="yyyy-mm-dd"
|
|
189
193
|
auto-apply
|
|
190
194
|
:placeholder="placeholder"
|
|
191
195
|
year-first
|