feat(Area): add title slot (#5719)

This commit is contained in:
chenjiahan
2020-02-25 19:20:29 +08:00
parent a5acd379f7
commit 7344389535
6 changed files with 61 additions and 1 deletions
+11
View File
@@ -128,3 +128,14 @@ test('columns-num prop', async () => {
await later();
expect(wrapper).toMatchSnapshot();
});
test('title slot', async () => {
const wrapper = mount(Area, {
scopedSlots: {
title: () => 'Custom Title',
},
});
await later();
expect(wrapper).toMatchSnapshot();
});