Skip to content

Commit

Permalink
fix: 暴露 formItem 的 validate 事件
Browse files Browse the repository at this point in the history
  • Loading branch information
tinatian committed Mar 21, 2022
1 parent a57bb51 commit 67982d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/form/formItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ provide(FORM_ITEM_INJECTION_KEY, {
return validateStatus.value === VALIDATE_STATUS.ERROR;
}),
});
defineExpose({
validate,
});
</script>

<script lang="ts">
Expand Down

0 comments on commit 67982d2

Please sign in to comment.