mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
[new feature] optimize find-parent (#325)
* fix: Tabbar icon line-height * [new feature] progress add showPivot prop * [new feature] TabItem support vue-router * [new feature] update document header style * [Doc] add toast english ducoment * [bugfix] Search box-sizing wrong * [Doc] update vant-demo respo * [Doc] translate theme & demo pages * [Doc] add Internationalization document * [bugfix] remove unnecessary props * [fix] optimize clickoutside * [new feature] optimize find-parent
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
<script>
|
||||
import Icon from '../icon';
|
||||
import findParent from '../mixins/findParent';
|
||||
import findParent from '../mixins/find-parent';
|
||||
|
||||
export default {
|
||||
name: 'van-checkbox',
|
||||
@@ -52,7 +52,7 @@ export default {
|
||||
computed: {
|
||||
// whether is in van-checkbox-group
|
||||
isGroup() {
|
||||
return !!this.findParentByComponentName('van-checkbox-group');
|
||||
return !!this.findParentByName('van-checkbox-group');
|
||||
},
|
||||
|
||||
currentValue: {
|
||||
|
Reference in New Issue
Block a user