feat(SubmitBar): enable safe-area-inset-bottom by default (#5956)

This commit is contained in:
neverland
2020-03-31 07:23:23 +08:00
committed by GitHub
parent b87fd71959
commit 75e832f05a
12 changed files with 58 additions and 24 deletions
@@ -31,3 +31,5 @@ exports[`Icon render icon slot with info 1`] = `
</div>Text
</div>
`;
exports[`disable safe-area-inset-bottom prop 1`] = `<div class="van-goods-action van-goods-action--unfit"></div>`;
+11
View File
@@ -1,3 +1,4 @@
import GoodsAction from '..';
import Button from '../../goods-action-button';
import Icon from '../../goods-action-icon';
import { mount } from '../../../test';
@@ -84,3 +85,13 @@ test('Icon render icon slot with dot', () => {
expect(wrapper).toMatchSnapshot();
});
test('disable safe-area-inset-bottom prop', () => {
const wrapper = mount(GoodsAction, {
propsData: {
safeAreaInsetBottom: false,
},
});
expect(wrapper).toMatchSnapshot();
});