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
@@ -1,5 +1,5 @@
import { createApp, reactive, Component, nextTick } from 'vue';
import { usePublicApi } from '../composition/use-public-api';
import { useExpose } from '../composition/use-expose';
export function usePopupState() {
const state = reactive({
@@ -22,7 +22,7 @@ export function usePopupState() {
toggle(false);
};
usePublicApi({ open, close, toggle });
useExpose({ open, close, toggle });
return {
open,