mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
fix(dialog): fix/dialog-header-slot (#997)
- Rename the slot name from 'header' to title
This commit is contained in:
parent
d16fbb66e5
commit
9e3352c1fc
@ -38,7 +38,7 @@ describe('Dialog.vue', () => {
|
||||
const HEADER = 'I am header'
|
||||
let wrapper = _mount({
|
||||
slots: {
|
||||
header: HEADER,
|
||||
title: HEADER,
|
||||
},
|
||||
props: {
|
||||
modelValue: true,
|
||||
|
@ -30,7 +30,7 @@
|
||||
@click="$event.stopPropagation()"
|
||||
>
|
||||
<div class="el-dialog__header">
|
||||
<slot name="header">
|
||||
<slot name="title">
|
||||
<span class="el-dialog__title">
|
||||
{{ title }}
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user