Skip to content

Commit

Permalink
fix notch
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidFyon committed Sep 10, 2024
1 parent 38ccab6 commit da976b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import withNuxt from './.nuxt/eslint.config.mjs'

export default withNuxt({
files: ['**/*.{js,ts,vue}'],
ignores: ['.config/*', 'cypress/**/*', 'cypress.config.js'],
rules: {
'vue/html-self-closing': 'off',
'vue/multi-word-component-names': 'off',
Expand Down
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 da976b1

Please sign in to comment.