Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix value edition #3811

Merged
merged 1 commit into from
Oct 18, 2024
Merged

fix value edition #3811

merged 1 commit into from
Oct 18, 2024

Conversation

VachetVirginie
Copy link
Contributor

@VachetVirginie VachetVirginie commented Oct 17, 2024

Description

Playground

<script setup lang="ts">

import { notAfterDate, notBeforeDate, required } from '@/main';
import DatePicker from '@/patterns/DatePicker/DatePicker.vue';
import { ref } from 'vue';

import { reactive } from 'vue';

const piece = reactive({
	dateRedaction: '',
	dateReception: '',
});
const date = ref('')
</script>

<template>
	<DatePicker
		v-model="piece.dateRedaction"
		label="Date de rédaction (optionnel)"
		bg-color="white"
		outlined
		:rules="[
		notAfterDate(piece.dateReception || ''),
	]"
	/>
	<br>
	<DatePicker
		v-model="piece.dateReception"
		label="Date de réception"
		bg-color="white"
		outlined
		:rules="[
		required,
		notBeforeDate(piece.dateRedaction || ''),
	]"
	/>


	<DatePicker
		v-model="date"
		label="Date "
		outlined
		:rules="[
		required,
		notBeforeDate(piece.dateRedaction || ''),
	]"
	/>
</template>

<style lang="scss" scoped></style>

Type de changement

  • Nouvelle fonctionnalité
  • Correction de bug
  • Changement cassant
  • Refactoring
  • Maintenance
  • Documentation
  • Ce changement nécessite une mise à jour de la documentation

Checklist

  • Ma Pull Request pointe vers la bonne branche
  • Mon code suit le style de code du projet
  • J'ai effectué une review de mon propre code
  • J'ai commenté mon code, en particulier dans les parties difficiles à comprendre
  • J'ai apporté les modifications correspondantes à la documentation
  • Mes modifications ne génèrent aucun nouveau warning
  • J'ai ajouté des tests qui prouvent que mon correctif est efficace ou que ma fonctionnalité fonctionne
  • Les tests unitaires passent localement avec mes modifications
  • J'ai mis à jour le fichier Changelog

@VachetVirginie VachetVirginie linked an issue Oct 18, 2024 that may be closed by this pull request
@DavidFyon DavidFyon merged commit bf62f6a into v2-bridge Oct 18, 2024
2 checks passed
@DavidFyon DavidFyon deleted the fix/issue-3810-date-picker branch October 18, 2024 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DatePicker edition de la valeur
3 participants