[Improvement] optimize isDef (#1109)

This commit is contained in:
neverland
2018-05-19 18:43:44 +08:00
committed by GitHub
parent 249e2400a3
commit d15efd756e
9 changed files with 5 additions and 28 deletions

View File

@@ -13,7 +13,6 @@
</template>
<script>
import { isDef } from '../utils';
import create from '../utils/create';
import RouterLink from '../mixins/router-link';
@@ -43,8 +42,6 @@ export default create({
},
methods: {
isDef,
onClick(event) {
this.$parent.onChange(this.$parent.items.indexOf(this));
this.$emit('click', event);