feat(CollapseItem): add label slot (#8934)

* feat(CollapseItem): add label slot

* docs: upd
This commit is contained in:
neverland
2021-06-26 21:43:00 +08:00
committed by GitHub
parent 29f800b827
commit 12400a2527
5 changed files with 24 additions and 21 deletions
+3 -6
View File
@@ -15,6 +15,8 @@ import { Cell } from '../cell';
const [name, bem] = createNamespace('collapse-item');
const CELL_SLOTS = ['icon', 'title', 'value', 'label', 'right-icon'] as const;
export default defineComponent({
name,
@@ -112,12 +114,7 @@ export default defineComponent({
return (
<Cell
v-slots={{
icon: slots.icon,
title: slots.title,
default: slots.value,
'right-icon': slots['right-icon'],
}}
v-slots={pick(slots, CELL_SLOTS)}
role="button"
class={bem('title', {
disabled,