mirror of
https://github.com/youzan/vant.git
synced 2025-12-24 02:02:09 +08:00
[Improvement] optimize isDef (#1109)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user