chore: rename useParentField to useLinkField

This commit is contained in:
chenjiahan
2020-09-26 11:24:42 +08:00
parent 7bf95d4bcf
commit 9010a0edf1
9 changed files with 17 additions and 17 deletions
@@ -1,7 +1,7 @@
import { watch, inject } from 'vue';
import { FIELD_KEY } from '../field';
export function useParentField(getValue: () => unknown) {
export function useLinkField(getValue: () => unknown) {
const field = inject(FIELD_KEY, null) as any;
if (field && !field.childFieldValue.value) {