[bugfix] Icon: assets spelling (#1465)

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

View File

@ -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

View File

@ -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);
}, },

View File

@ -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();
});
}); });
}); });