@fy-/fws-vue 1.2.5 → 1.2.7
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.
|
@@ -15,11 +15,15 @@ const props = withDefaults(
|
|
|
15
15
|
imageDomain?: string;
|
|
16
16
|
onCompleted?: (data: any) => void;
|
|
17
17
|
hidePublic?: boolean;
|
|
18
|
+
hideBirthdate?: boolean;
|
|
19
|
+
hideGender?: boolean;
|
|
18
20
|
}>(),
|
|
19
21
|
{
|
|
20
22
|
imageDomain: "https://s.nocachenocry.com",
|
|
21
23
|
onCompleted: () => {},
|
|
22
24
|
hidePublic: false,
|
|
25
|
+
hideBirthdate: false,
|
|
26
|
+
hideGender: false,
|
|
23
27
|
},
|
|
24
28
|
);
|
|
25
29
|
const rest = useRest();
|
|
@@ -247,6 +251,7 @@ function selectFile(e: Event) {
|
|
|
247
251
|
type="toggle"
|
|
248
252
|
:label="$t('fws_public_gender')"
|
|
249
253
|
:error-vuelidate="v$.userData.PublicGender.$errors"
|
|
254
|
+
v-if="!hideGender"
|
|
250
255
|
/>
|
|
251
256
|
<DefaultInput
|
|
252
257
|
id="publicBioFWS"
|
|
@@ -261,6 +266,7 @@ function selectFile(e: Event) {
|
|
|
261
266
|
type="toggle"
|
|
262
267
|
:label="$t('fws_public_birthdate')"
|
|
263
268
|
:error-vuelidate="v$.userData.PublicBirthdate.$errors"
|
|
269
|
+
v-if="!hideBirthdate"
|
|
264
270
|
/>
|
|
265
271
|
</template>
|
|
266
272
|
<div class="flex">
|
|
@@ -96,6 +96,13 @@ const modelCheckbox = computed({
|
|
|
96
96
|
},
|
|
97
97
|
});
|
|
98
98
|
defineExpose({ focus, blur, getInputRef });
|
|
99
|
+
const dpComponent = ref<any | null>(null);
|
|
100
|
+
onMounted(async () => {
|
|
101
|
+
if (props.type === "datepicker") {
|
|
102
|
+
const { default: VueDatePicker } = await import("@vuepic/vue-datepicker");
|
|
103
|
+
dpComponent.value = VueDatePicker;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
99
106
|
</script>
|
|
100
107
|
<template>
|
|
101
108
|
<div>
|
|
@@ -184,14 +191,16 @@ defineExpose({ focus, blur, getInputRef });
|
|
|
184
191
|
/>
|
|
185
192
|
</svg>
|
|
186
193
|
</div>
|
|
187
|
-
<
|
|
194
|
+
<component
|
|
195
|
+
:is="dpComponent"
|
|
196
|
+
v-if="dpComponent"
|
|
188
197
|
v-model="model"
|
|
189
198
|
auto-apply
|
|
190
199
|
:placeholder="placeholder"
|
|
191
200
|
year-first
|
|
192
201
|
dark
|
|
193
202
|
:enable-time-picker="false"
|
|
194
|
-
></
|
|
203
|
+
></component>
|
|
195
204
|
</div>
|
|
196
205
|
</div>
|
|
197
206
|
<div v-if="type == 'chips' || type == 'tags'">
|