Explorar el Código

fix(BasicForm): script setup defineExpose (#3316)

bowen hace 1 año
padre
commit
f58ef6777c
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/components/Form/src/BasicForm.vue

+ 4 - 0
src/components/Form/src/BasicForm.vue

@@ -293,6 +293,10 @@
     () => ({ ...getProps.value, ...advanceState }) as InstanceType<typeof FormAction>['$props'],
   );
 
+  defineExpose({
+    setProps,
+  });
+
   onMounted(() => {
     initDefault();
     emit('register', formActionType);