feat(ActionSheet): add closeable prop (#7099)

* feat(ActionSheet): add closeable prop

* feat(ActionSheet): add closeable prop

* Update index.tsx

Co-authored-by: neverland <chenjiahan@youzan.com>
This commit is contained in:
Mikasa33
2020-09-05 14:36:20 +08:00
committed by GitHub
co-authored by neverland
parent d0eb103cba
commit b62c0e32cf
4 changed files with 27 additions and 6 deletions
+12
View File
@@ -198,3 +198,15 @@ test('close-icon prop', () => {
expect(wrapper).toMatchSnapshot();
});
test('closeable prop', () => {
const wrapper = mount(ActionSheet, {
propsData: {
value: true,
title: 'Title',
closeable: false,
},
});
expect(wrapper).toMatchSnapshot();
});