mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-28 12:26:35 +08:00
fix(ActionBar): incorrect provide value
This commit is contained in:
parent
e893efd60d
commit
6efaee7108
@ -14,8 +14,9 @@ export default createComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
setup(props, { slots }) {
|
setup(props, { slots }) {
|
||||||
const children = ref([]);
|
provide(ACTION_BAR_KEY, {
|
||||||
provide(ACTION_BAR_KEY, children);
|
children: ref([]),
|
||||||
|
});
|
||||||
|
|
||||||
return () => (
|
return () => (
|
||||||
<div class={bem({ unfit: !props.safeAreaInsetBottom })}>
|
<div class={bem({ unfit: !props.safeAreaInsetBottom })}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user