add unit test

This commit is contained in:
cookfront
2017-04-20 18:11:05 +08:00
parent 1b90609fc6
commit efd24b0680
8 changed files with 33 additions and 59 deletions

View File

@@ -17,13 +17,13 @@
</template>
<script>
import ZanIcon from 'packages/icon';
import VanIcon from 'packages/icon';
export default {
name: 'van-search',
components: {
ZanIcon
VanIcon
},
props: {

View File

@@ -80,7 +80,7 @@
*/
handleTabClick(index, el) {
if (el.disabled) {
el.$emit('disabled', index);
this.$emit('disabled', index);
return;
}