[improvement] Rate: update icon (#2093)

This commit is contained in:
neverland
2018-11-15 19:34:24 +08:00
committed by GitHub
parent c02ed75e18
commit b8a74a1eef
4 changed files with 57 additions and 64 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ test('touchmove', () => {
const wrapper = mount(Rate);
triggerDrag(wrapper, 100, 0);
const icons = wrapper.findAll('svg');
const icons = wrapper.findAll('.van-icon');
document.elementFromPoint = function(x, y) {
const index = Math.round(x / 20);
if (index < icons.length) {