1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

[bugfix] Icon: assets spelling ()

This commit is contained in:
neverland 2018-07-11 21:01:07 +08:00 committed by GitHub
parent 91f45ac61b
commit b53b6c2be0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 6 deletions
build
packages
field
icon/assets
image-preview/test

@ -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,13 +32,9 @@ 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);
Vue.nextTick(() => {
expect(wrapper.style.display).toEqual('none');
done(); done();
}); });
}); });
});
test('register component', () => { test('register component', () => {
Vue.use(ImagePreview); Vue.use(ImagePreview);