支持SSR、升级Vue版本和增加新的icon (#40)

* search component add new style

* update vue version and support ssr

* unit test

* add new icon

* new icon
This commit is contained in:
张敏
2017-06-15 19:46:56 +08:00
committed by Yao
parent 857da3a5ee
commit 0f5972e75e
59 changed files with 370 additions and 204 deletions
+3 -3
View File
@@ -60,7 +60,7 @@ describe('Field', () => {
const eventStub = sinon.stub(wrapper.vm, '$emit');
const input = wrapper.find('.van-field__control')[0];
input.simulate('focus');
input.trigger('focus');
wrapper.update();
wrapper.vm.$nextTick(() => {
@@ -79,7 +79,7 @@ describe('Field', () => {
const input = wrapper.find('.van-field__control')[0];
input.element.value = 'test';
input.simulate('input');
input.trigger('input');
wrapper.update();
wrapper.vm.$nextTick(() => {
@@ -117,7 +117,7 @@ describe('Field', () => {
parseInt(textareaElement.style.paddingTop, 10)) || 0;
textareaElement.value = 'test';
textarea.simulate('input');
textarea.trigger('input');
wrapper.update();
wrapper.vm.$nextTick(() => {