@fy-/fws-vue 1.2.1 → 1.2.2
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.
|
@@ -30,9 +30,8 @@ const eventBus = useEventBus();
|
|
|
30
30
|
const currentDate = new Date();
|
|
31
31
|
const defaultDate = new Date(
|
|
32
32
|
currentDate.setFullYear(currentDate.getFullYear() - 18),
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
.split("T")[0];
|
|
33
|
+
);
|
|
34
|
+
|
|
36
35
|
const state = reactive({
|
|
37
36
|
userData: {
|
|
38
37
|
Username: userData.value?.UserProfile?.Username || "",
|
|
@@ -51,8 +50,6 @@ watchEffect(() => {
|
|
|
51
50
|
Bio: userData.value?.UserProfile?.Bio || "",
|
|
52
51
|
Birthdate: userData.value?.UserProfile?.Birthdate
|
|
53
52
|
? new Date(userData.value?.UserProfile?.Birthdate.unixms)
|
|
54
|
-
.toISOString()
|
|
55
|
-
.split("T")[0]
|
|
56
53
|
: defaultDate,
|
|
57
54
|
PublicGender: userData.value?.UserProfile?.PublicGender || false,
|
|
58
55
|
PublicBio: userData.value?.UserProfile?.PublicBio || false,
|
|
@@ -76,9 +76,7 @@ const handleFocus = () => {
|
|
|
76
76
|
const handleBlur = () => {
|
|
77
77
|
emit("blur", props.id);
|
|
78
78
|
};
|
|
79
|
-
|
|
80
|
-
model.value = new Date(date).toISOString().split("T")[0];
|
|
81
|
-
};
|
|
79
|
+
|
|
82
80
|
const emit = defineEmits([
|
|
83
81
|
"update:modelValue",
|
|
84
82
|
"update:checkboxValue",
|
|
@@ -187,9 +185,7 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
187
185
|
</svg>
|
|
188
186
|
</div>
|
|
189
187
|
<VueDatePicker
|
|
190
|
-
|
|
191
|
-
@update:model-value="setDate"
|
|
192
|
-
model-type="yyyy-mm-dd"
|
|
188
|
+
v-model="model"
|
|
193
189
|
auto-apply
|
|
194
190
|
:placeholder="placeholder"
|
|
195
191
|
year-first
|