We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adbda89 commit 62f7a4eCopy full SHA for 62f7a4e
src/components/core/schema-form/src/schema-form.vue
@@ -33,7 +33,7 @@
33
</template>
34
35
<script lang="ts" setup>
36
- import { useAttrs, watchEffect } from 'vue';
+ import { useAttrs, watch } from 'vue';
37
import { pick } from 'lodash-es';
38
import { Form, Row } from 'ant-design-vue';
39
import SchemaFormItem from './schema-form-item.vue';
@@ -79,7 +79,10 @@
79
const formEvents = useFormEvents({ ...formState, emit, handleFormValues });
80
81
// 同步外部对props的修改
82
- watchEffect(() => setSchemaFormProps(props));
+ watch(props, () => setSchemaFormProps(props), {
83
+ deep: true,
84
+ immediate: true,
85
+ });
86
87
// 当前组件所有的状态和方法
88
const instance = {
0 commit comments