fix(dialog): fix/dialog-header-slot (#997)

- Rename the slot name from 'header' to title
This commit is contained in:
jeremywu 2020-12-15 11:58:24 +08:00 committed by GitHub
parent d16fbb66e5
commit 9e3352c1fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ describe('Dialog.vue', () => {
const HEADER = 'I am header'
let wrapper = _mount({
slots: {
header: HEADER,
title: HEADER,
},
props: {
modelValue: true,

View File

@ -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>