refactor: remove useChildren

This commit is contained in:
chenjiahan
2020-08-24 19:02:13 +08:00
parent b463fa5f69
commit e893efd60d
2 changed files with 4 additions and 9 deletions
+3 -2
View File
@@ -1,5 +1,5 @@
import { ref, provide } from 'vue';
import { createNamespace } from '../utils';
import { useChildren } from '../api/use-relation';
const [createComponent, bem] = createNamespace('action-bar');
@@ -14,7 +14,8 @@ export default createComponent({
},
setup(props, { slots }) {
useChildren(ACTION_BAR_KEY);
const children = ref([]);
provide(ACTION_BAR_KEY, children);
return () => (
<div class={bem({ unfit: !props.safeAreaInsetBottom })}>