mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
[new feature] Tab support sticky (#382)
This commit is contained in:
@@ -113,4 +113,20 @@ describe('Tabs', () => {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('sticky', (done) => {
|
||||
wrapper = mount(TabsTestComponent, {
|
||||
attachToDocument: true,
|
||||
propsData: {
|
||||
sticky: true
|
||||
}
|
||||
});
|
||||
|
||||
wrapper.vm.sticky = false;
|
||||
|
||||
setTimeout(() => {
|
||||
expect(wrapper.vm.$children[0].fixed).to.be.false;
|
||||
done();
|
||||
}, 30);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user