diff --git a/src/components/common/VnInputDate.vue b/src/components/common/VnInputDate.vue index b822092a5..fcc04ddf7 100644 --- a/src/components/common/VnInputDate.vue +++ b/src/components/common/VnInputDate.vue @@ -6,9 +6,9 @@ import { useAttrs } from 'vue'; import VnDate from './VnDate.vue'; import { useRequired } from 'src/composables/useRequired'; +const $attrs = useAttrs(); const { isRequired, requiredFieldRule } = useRequired($attrs); const model = defineModel({ type: [String, Date] }); -const $attrs = useAttrs(); const { t } = useI18n(); const $props = defineProps({ diff --git a/src/components/common/VnInputTime.vue b/src/components/common/VnInputTime.vue index a0967fdf6..6724c00b5 100644 --- a/src/components/common/VnInputTime.vue +++ b/src/components/common/VnInputTime.vue @@ -5,9 +5,9 @@ import { date } from 'quasar'; import VnTime from './VnTime.vue'; import { useRequired } from 'src/composables/useRequired'; +const $attrs = useAttrs(); const { isRequired, requiredFieldRule } = useRequired($attrs); const { t } = useI18n(); -const $attrs = useAttrs(); const model = defineModel({ type: String }); const props = defineProps({ timeOnly: { diff --git a/src/components/common/VnLocation.vue b/src/components/common/VnLocation.vue index 16f9fd580..6de402a26 100644 --- a/src/components/common/VnLocation.vue +++ b/src/components/common/VnLocation.vue @@ -7,8 +7,8 @@ import { useAttrs } from 'vue'; import { useRequired } from 'src/composables/useRequired'; const { t } = useI18n(); const emit = defineEmits(['update:model-value', 'update:options']); -const { isRequired, requiredFieldRule } = useRequired($attrs); const $attrs = useAttrs(); +const { isRequired, requiredFieldRule } = useRequired($attrs); const props = defineProps({ location: { type: Object,