import { createNamespace } from '../utils'; import { useChildren } from '@vant/use'; const [createComponent, bem] = createNamespace('action-bar'); export const ACTION_BAR_KEY = 'vanActionBar'; export default createComponent({ props: { safeAreaInsetBottom: { type: Boolean, default: true, }, }, setup(props, { slots }) { const { linkChildren } = useChildren(ACTION_BAR_KEY); linkChildren(); return () => (
{slots.default?.()}
); }, });