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';
|
} from 'vue';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import { extend, makeArrayProp, createNamespace } from '../utils';
|
import { extend, pick, makeArrayProp, createNamespace } from '../utils';
|
||||||
|
|
||||||
// Composables
|
// Composables
|
||||||
import { useChildren } from '@vant/use';
|
import { useChildren } from '@vant/use';
|
||||||
@ -14,7 +14,10 @@ import { useChildren } from '@vant/use';
|
|||||||
// Components
|
// Components
|
||||||
import { Tab } from '../tab';
|
import { Tab } from '../tab';
|
||||||
import { Tabs } from '../tabs';
|
import { Tabs } from '../tabs';
|
||||||
import Toolbar, { pickerToolbarProps } from '../picker/PickerToolbar';
|
import Toolbar, {
|
||||||
|
pickerToolbarProps,
|
||||||
|
pickerToolbarSlots,
|
||||||
|
} from '../picker/PickerToolbar';
|
||||||
|
|
||||||
const [name, bem] = createNamespace('picker-group');
|
const [name, bem] = createNamespace('picker-group');
|
||||||
|
|
||||||
@ -70,6 +73,7 @@ export default defineComponent({
|
|||||||
return (
|
return (
|
||||||
<div class={bem()}>
|
<div class={bem()}>
|
||||||
<Toolbar
|
<Toolbar
|
||||||
|
v-slots={pick(slots, pickerToolbarSlots)}
|
||||||
title={props.title}
|
title={props.title}
|
||||||
cancelButtonText={props.cancelButtonText}
|
cancelButtonText={props.cancelButtonText}
|
||||||
confirmButtonText={confirmButtonText}
|
confirmButtonText={confirmButtonText}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user