@fy-/fws-vue 1.2.4 → 1.2.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.
|
@@ -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();
|
|
@@ -63,7 +67,7 @@ const rules = {
|
|
|
63
67
|
},
|
|
64
68
|
Gender: {},
|
|
65
69
|
Bio: {
|
|
66
|
-
maxLength: maxLength(
|
|
70
|
+
maxLength: maxLength(1000),
|
|
67
71
|
},
|
|
68
72
|
Birthdate: {},
|
|
69
73
|
PublicGender: {},
|
|
@@ -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">
|