feat(Calendar): add subtitle slot (#8980)

This commit is contained in:
neverland
2021-07-05 13:06:04 +08:00
committed by GitHub
parent 8bc924ea62
commit 779f3363c2
6 changed files with 25 additions and 20 deletions
+2 -1
View File
@@ -344,7 +344,7 @@ test('formatter prop', async () => {
expect(wrapper.html()).toMatchSnapshot();
});
test('title & footer slot', async () => {
test('should render titlefooter、subtitle slot correctly', async () => {
const wrapper = mount(Calendar, {
props: {
minDate,
@@ -356,6 +356,7 @@ test('title & footer slot', async () => {
slots: {
title: () => 'Custom Title',
footer: () => 'Custom Footer',
subtitle: () => 'Custom Subtitle',
},
});