feat(SubmitBar): enable safe-area-inset-bottom by default (#5956)
This commit is contained in:
@@ -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>`;
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user