mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(PickerGroup): Invalid slot (#11564)
* fix(PickerGroup): Invalid slot * Update PickerGroup.tsx --------- Co-authored-by: neverland <jait.chen@foxmail.com>
This commit is contained in:
parent
0e01ea3b35
commit
a2ab97f328
@ -6,7 +6,7 @@ import {
|
||||
} from 'vue';
|
||||
|
||||
// Utils
|
||||
import { extend, makeArrayProp, createNamespace } from '../utils';
|
||||
import { extend, pick, makeArrayProp, createNamespace } from '../utils';
|
||||
|
||||
// Composables
|
||||
import { useChildren } from '@vant/use';
|
||||
@ -14,7 +14,10 @@ import { useChildren } from '@vant/use';
|
||||
// Components
|
||||
import { Tab } from '../tab';
|
||||
import { Tabs } from '../tabs';
|
||||
import Toolbar, { pickerToolbarProps } from '../picker/PickerToolbar';
|
||||
import Toolbar, {
|
||||
pickerToolbarProps,
|
||||
pickerToolbarSlots,
|
||||
} from '../picker/PickerToolbar';
|
||||
|
||||
const [name, bem] = createNamespace('picker-group');
|
||||
|
||||
@ -70,6 +73,7 @@ export default defineComponent({
|
||||
return (
|
||||
<div class={bem()}>
|
||||
<Toolbar
|
||||
v-slots={pick(slots, pickerToolbarSlots)}
|
||||
title={props.title}
|
||||
cancelButtonText={props.cancelButtonText}
|
||||
confirmButtonText={confirmButtonText}
|
||||
|
Loading…
x
Reference in New Issue
Block a user