chore: add useParent default value

This commit is contained in:
chenjiahan
2020-08-25 15:24:30 +08:00
parent d0a3726bbb
commit 25cbdecf25
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ export default createComponent({
setup(props, { slots }) {
const wrapper = ref(null);
const content = ref(null);
const { parent, index } = useParent(COLLAPSE_KEY, ref());
const { parent, index } = useParent(COLLAPSE_KEY);
const currentName = computed(() =>
isDef(props.name) ? props.name : index.value