mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Icon: assets spelling (#1465)
This commit is contained in:
parent
91f45ac61b
commit
b53b6c2be0
@ -15,7 +15,7 @@ const local = require('../packages/icon/config/template-local');
|
|||||||
const iconDir = path.join(__dirname, '../packages/icon');
|
const iconDir = path.join(__dirname, '../packages/icon');
|
||||||
const cssDir = path.join(__dirname, '../packages/vant-css/src');
|
const cssDir = path.join(__dirname, '../packages/vant-css/src');
|
||||||
const svgDir = path.join(iconDir, 'svg');
|
const svgDir = path.join(iconDir, 'svg');
|
||||||
const sketch = path.join(iconDir, 'assert/icons.sketch');
|
const sketch = path.join(iconDir, 'assets/icons.sketch');
|
||||||
const template = path.join(iconDir, 'config/template.css');
|
const template = path.join(iconDir, 'config/template.css');
|
||||||
|
|
||||||
// get md5 from sketch
|
// get md5 from sketch
|
||||||
|
@ -162,9 +162,11 @@ export default create({
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.type === 'search' && event.keyCode === 13) {
|
if (this.type === 'search' && event.keyCode === 13) {
|
||||||
this.blur();
|
this.blur();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$emit('keypress', event);
|
this.$emit('keypress', event);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -32,11 +32,7 @@ test('function call', done => {
|
|||||||
triggerDrag(swipe, 0, 0);
|
triggerDrag(swipe, 0, 0);
|
||||||
|
|
||||||
expect(wrapper.querySelectorAll('img').length).toEqual(1);
|
expect(wrapper.querySelectorAll('img').length).toEqual(1);
|
||||||
|
done();
|
||||||
Vue.nextTick(() => {
|
|
||||||
expect(wrapper.style.display).toEqual('none');
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user