chore: rename usePublicApi to useExpose

This commit is contained in:
chenjiahan
2020-09-15 20:19:15 +08:00
parent 02e89a73c5
commit 971c16eb3c
11 changed files with 22 additions and 23 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ import { DROPDOWN_KEY } from '../dropdown-menu';
// Composition
import { useParent } from '../composition/use-relation';
import { usePublicApi } from '../composition/use-public-api';
import { useExpose } from '../composition/use-expose';
// Components
import Cell from '../cell';
@@ -169,7 +169,7 @@ export default createComponent({
);
};
usePublicApi({ toggle });
useExpose({ toggle });
return () => {
if (props.teleport) {