feat(Tab): add dot prop (#5272)

This commit is contained in:
neverland
2019-12-14 22:37:25 +08:00
committed by GitHub
parent a7535cc948
commit ebd69714a1
9 changed files with 125 additions and 88 deletions
+12
View File
@@ -239,3 +239,15 @@ test('title-style prop', () => {
expect(wrapper.find('.van-tab').element.style.color).toEqual('red');
});
test('dot prop', () => {
const wrapper = mount({
template: `
<van-tabs>
<van-tab dot>Text</van-tab>
</van-tabs>
`
});
expect(wrapper).toMatchSnapshot();
});