Skip to content

Commit

Permalink
fix notch
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidFyon committed Oct 4, 2024
1 parent aa1105f commit 591974b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pages/datePicker/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,15 @@
<date-picker v-model="dateToFormat" dateFormat="DD-MM-YYYY" hint="JJ-MM-YYYY" label="Date"/>
<h3 class="mt-4">DateFormatReturn JJ/MM/YY</h3>
{{ dateFormatReturn }}
<date-picker v-model="dateFormatReturn" :hint="defaultHint" dateFormatReturn="DD/MM/YY" label="Date"/>
<date-picker v-model="dateFormatReturn" :warning-rules="warningRules" :hint="defaultHint" dateFormatReturn="DD/MM/YY" label="Date"/>
</div>
</div>
</template>

<script lang="ts">
import {defineComponent} from "vue";
import {required} from "@cnamts/synapse-bridge/rules/required";
import {notAfterToday} from "@cnamts/synapse-bridge/rules/notAfterToday";
import {notBeforeToday} from "@cnamts/synapse-bridge/rules/notBeforeToday";
import {required, notAfterToday, notBeforeToday, notBeforeDate} from "@cnamts/synapse-bridge";
import dayjs from "dayjs";
import {
DatePicker,
Expand All @@ -69,7 +67,7 @@ export default defineComponent({
data() {
return {
validRules: [required],
warningRules: [notAfterToday, notBeforeToday],
warningRules: [notBeforeDate('06/07/2024')],
active: true,
dialog: false,
chipItems: [
Expand Down

0 comments on commit 591974b

Please sign in to comment.