[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

@@ -11,7 +11,6 @@
<script>
import create from '../utils/create';
import { isDef } from '../utils';
export default create({
name: 'badge',
@@ -33,8 +32,6 @@ export default create({
},
methods: {
isDef,
onClick() {
this.$emit('click', this.$parent.badges.indexOf(this));
}