feat(ActionSheet): add close-icon prop (#5016)

This commit is contained in:
neverland
2019-11-14 19:52:30 +08:00
committed by GitHub
parent f871c84b18
commit 5d157c409b
3 changed files with 33 additions and 2 deletions
+13
View File
@@ -96,6 +96,7 @@ test('disable lazy-render', () => {
test('render title and default slot', () => {
const wrapper = mount(ActionSheet, {
propsData: {
value: true,
title: 'Title'
},
scopedSlots: {
@@ -174,3 +175,15 @@ test('description prop', () => {
expect(wrapper).toMatchSnapshot();
});
test('close-icon prop', () => {
const wrapper = mount(ActionSheet, {
propsData: {
value: true,
title: 'Title',
closeIcon: 'cross'
}
});
expect(wrapper).toMatchSnapshot();
});