I have added the ability to write in the text fields.
This commit is contained in:
@@ -85,7 +85,21 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script async setup>
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
|
||||
const firstName = ref('');
|
||||
const lastName = ref('');
|
||||
const occupation = ref('');
|
||||
const email = ref('');
|
||||
const phone = ref('');
|
||||
const birthDate = ref('');
|
||||
const country = ref('');
|
||||
const city = ref('');
|
||||
const address = ref('');
|
||||
const titre = ref('');
|
||||
const description = ref('');
|
||||
|
||||
const dateRule = value => {
|
||||
const datePattern = /^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[0-2])\/(19|20)\d{2}$/;
|
||||
return datePattern.test(value) || 'Format de date invalide (JJ/MM/AAAA)';
|
||||
@@ -93,5 +107,5 @@ const dateRule = value => {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
/* Votre style ici */
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user