[new feature] Tabbar: add border prop

This commit is contained in:
陈嘉涵
2019-05-20 15:45:32 +08:00
parent a6b60c2a55
commit ead802d9f1
6 changed files with 20 additions and 1 deletions
@@ -1,5 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`disable border 1`] = `<div class="van-tabbar van-tabbar--fixed" style="z-index: 1;"></div>`;
exports[`route mode 1`] = `
<div class="van-hairline--top-bottom van-tabbar van-tabbar--fixed" style="z-index: 1;">
<div class="van-tabbar-item van-tabbar-item--active">
+10
View File
@@ -112,3 +112,13 @@ test('name prop', () => {
expect(onChange).toHaveBeenCalledWith('b');
});
test('disable border', () => {
const wrapper = mount(Tabbar, {
propsData: {
border: false
}
});
expect(wrapper).toMatchSnapshot();
});