feat(ActionSheet): add description slot (#7068)

This commit is contained in:
neverland
2020-08-30 20:17:37 +08:00
committed by GitHub
parent ad5d8f854c
commit dae6e2dbd4
5 changed files with 47 additions and 6 deletions
+14
View File
@@ -173,6 +173,20 @@ test('description prop', () => {
expect(wrapper).toMatchSnapshot();
});
test('description slot', () => {
const wrapper = mount(ActionSheet, {
propsData: {
value: true,
actions: [{ name: 'Option' }],
},
scopedSlots: {
description: () => 'Custom Description',
},
});
expect(wrapper).toMatchSnapshot();
});
test('close-icon prop', () => {
const wrapper = mount(ActionSheet, {
propsData: {