feat(Cell): allow to disable clickable when using is-link (#7923)

This commit is contained in:
neverland
2021-01-16 19:24:00 +08:00
committed by GitHub
parent ac1bb94343
commit aeb3af4abd
4 changed files with 17 additions and 4 deletions
+10
View File
@@ -83,3 +83,13 @@ test('should change icon class prefix when using icon-prefix prop', () => {
expect(wrapper.html()).toMatchSnapshot();
});
test('should allow to disable clicakble when using is-link prop', () => {
const wrapper = mount(Cell, {
props: {
isLink: true,
clickable: false,
},
});
expect(wrapper.classes()).not.toContain('van-cell--clickable');
});