warmfix: computed attrs #1412

Merged
jsegarra merged 1 commits from warmfix_requiredSage into test 2025-02-17 17:39:54 +00:00
1 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,12 @@ const emit = defineEmits(['update:modelValue', 'update:options', 'remove']);
const $attrs = useAttrs();
const { t } = useI18n();
const { isRequired, requiredFieldRule } = useRequired($attrs);
const isRequired = computed(() => {
return useRequired($attrs).isRequired;
});
const requiredFieldRule = computed(() => {
return useRequired($attrs).requiredFieldRule;
});
const $props = defineProps({
modelValue: {