docs(PullRefresh): add custom tip demo

This commit is contained in:
陈嘉涵
2020-01-10 11:18:00 +08:00
committed by neverland
parent 028747c354
commit 789112a350
7 changed files with 155 additions and 11 deletions
+10
View File
@@ -156,3 +156,13 @@ test('render success slot', async () => {
wrapper.setProps({ value: false });
expect(wrapper).toMatchSnapshot();
});
test('should set height when using head-height', async () => {
const wrapper = mount(PullRefresh, {
propsData: {
headHeight: 100
}
});
expect(wrapper).toMatchSnapshot();
});