mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
[Improvement] optimize isDef (#1109)
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
<script>
|
||||
import findParent from '../mixins/find-parent';
|
||||
import create from '../utils/create';
|
||||
import { isDef } from '../utils';
|
||||
|
||||
export default create({
|
||||
name: 'collapse-item',
|
||||
@@ -39,7 +38,7 @@ export default create({
|
||||
},
|
||||
|
||||
currentName() {
|
||||
return isDef(this.name) ? this.name : this.index;
|
||||
return this.isDef(this.name) ? this.name : this.index;
|
||||
},
|
||||
|
||||
expanded() {
|
||||
|
Reference in New Issue
Block a user