Selaa lähdekoodia

fix: fix the issue of `VbenForm` `compact` reactive failure (#6654)

ming4762 1 kuukausi sitten
vanhempi
commit
8ac2db5b7c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      packages/@core/ui-kit/form-ui/src/form-render/form-field.vue

+ 1 - 1
packages/@core/ui-kit/form-ui/src/form-render/form-field.vue

@@ -59,7 +59,7 @@ const values = useFormValues();
 const errors = useFieldError(fieldName);
 const fieldComponentRef = useTemplateRef<HTMLInputElement>('fieldComponentRef');
 const formApi = formRenderProps.form;
-const compact = formRenderProps.compact;
+const compact = computed(() => formRenderProps.compact);
 const isInValid = computed(() => errors.value?.length > 0);
 
 const FieldComponent = computed(() => {