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
+2 -2
View File
@@ -1,5 +1,5 @@
import { createNamespace, addUnit } from '../utils';
import { useParentField } from '../composition/use-parent-field';
import { useLinkField } from '../composition/use-link-field';
import Loading from '../loading';
const [createComponent, bem] = createNamespace('switch');
@@ -42,7 +42,7 @@ export default createComponent({
}
};
useParentField(() => props.modelValue);
useLinkField(() => props.modelValue);
return () => {
const { size, loading, disabled, activeColor, inactiveColor } = props;