Improve required attrs for VnInput* #886
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#886
Loading…
Reference in New Issue
No description provided.
Delete Branch "improve_isRequired_input"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Improve required attrsto Improve required attrs for VnInput*@ -33,3 +35,2 @@
const { t } = useI18n();
const requiredFieldRule = (val) => validations().required($attrs.required, val);
const isRequired = computed(() => Object.keys($attrs).includes('required'));
@alexm deberíamos crear un composable para que estas 2 lineas fuesen comunes no?
He pensado en usar getCurrentInstance para extraer los $attrs y que devuelva {isRequired y requiredFieldRule.
Te solicito cambios
Improve required attrs for VnInput*to WIP: Improve required attrs for VnInput*New commits pushed, approval review dismissed automatically according to repository settings
WIP: Improve required attrs for VnInput*to Improve required attrs for VnInput*New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings