From f58ef6777c4dd8ac905919637410ea5373eb770b Mon Sep 17 00:00:00 2001 From: bowen <54492610+jiaowoxiaobala@users.noreply.github.com> Date: Wed, 22 Nov 2023 10:02:26 +0800 Subject: [PATCH] fix(BasicForm): script setup defineExpose (#3316) --- src/components/Form/src/BasicForm.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/Form/src/BasicForm.vue b/src/components/Form/src/BasicForm.vue index 023bd334a..612b28715 100644 --- a/src/components/Form/src/BasicForm.vue +++ b/src/components/Form/src/BasicForm.vue @@ -293,6 +293,10 @@ () => ({ ...getProps.value, ...advanceState }) as InstanceType['$props'], ); + defineExpose({ + setProps, + }); + onMounted(() => { initDefault(); emit('register', formActionType);