[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

@@ -36,7 +36,6 @@
<script>
import Icon from '../icon';
import { isDef } from '../utils';
import RouterLink from '../mixins/router-link';
import create from '../utils/create-basic';
@@ -65,8 +64,6 @@ export default create({
},
methods: {
isDef,
onClick() {
this.$emit('click');
this.routerLink();