mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +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:
@@ -5,7 +5,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import findParent from '../mixins/findParent';
|
||||
import findParent from '../mixins/find-parent';
|
||||
|
||||
export default {
|
||||
name: 'van-tab',
|
||||
@@ -21,7 +21,7 @@ export default {
|
||||
},
|
||||
|
||||
data() {
|
||||
this.findParentByComponentName('van-tabs');
|
||||
this.findParentByName('van-tabs');
|
||||
const nextIndex = this.parentGroup.tabs.length;
|
||||
this.updateParentData(nextIndex);
|
||||
return {
|
||||
|
Reference in New Issue
Block a user