<template>
<uni-shadow-root class="vant-tab-index"><view v-if="animated || inited" :class="'custom-class '+(utils.bem('tab__pane', { active, inactive: !active }))" :style="(animated || active ? '' : 'display: none;')+' '+(width ? 'width:' + width + 'px;' : '')">
  <slot></slot>
</view></uni-shadow-root>
</template>
<wxs src="../wxs/utils.wxs" module="utils"></wxs>
<script>

global['__wxRoute'] = 'vant/tab/index'
"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var component_1 = require('./../common/component.js');
component_1.VantComponent({
    relation: {
        name: 'tabs',
        type: 'ancestor'
    },
    props: {
        dot: Boolean,
        info: null,
        title: String,
        disabled: Boolean,
        titleStyle: String
    },
    data: {
        width: null,
        inited: false,
        active: false,
        animated: false
    },
    watch: {
        title: 'update',
        disabled: 'update',
        dot: 'update',
        info: 'update',
        titleStyle: 'update'
    },
    methods: {
        update: function update() {
            var parent = this.getRelationNodes('../tabs/index')[0];
            if (parent) {
                parent.updateTabs();
            }
        }
    }
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbIk9iamVjdCIsInZhbHVlIiwiY29tcG9uZW50XzEiLCJyZXF1aXJlIiwicmVsYXRpb24iLCJuYW1lIiwidHlwZSIsInByb3BzIiwiZG90IiwiaW5mbyIsInRpdGxlIiwiZGlzYWJsZWQiLCJ0aXRsZVN0eWxlIiwiU3RyaW5nIiwiZGF0YSIsIndpZHRoIiwiaW5pdGVkIiwiYWN0aXZlIiwiYW5pbWF0ZWQiLCJ3YXRjaCIsIm1ldGhvZHMiLCJ1cGRhdGUiLCJwYXJlbnQiXSwibWFwcGluZ3MiOiI7O0FBQ0FBLE9BQUFBLGNBQUFBLENBQUFBLE9BQUFBLEVBQUFBLFlBQUFBLEVBQTZDLEVBQUVDLE9BQS9DRCxJQUE2QyxFQUE3Q0E7QUFDQSxJQUFJRSxjQUFjQyxRQUFsQiwwQkFBa0JBLENBQWxCO0FBQ0F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cHM6IHtcbiAgICAgICAgZG90OiBCb29sZWFuLFxuICAgICAgICBpbmZvOiBudWxsLFxuICAgICAgICB0aXRsZTogU3RyaW5nLFxuICAgICAgICBkaXNhYmxlZDogQm9vbGVhbixcbiAgICAgICAgdGl0bGVTdHlsZTogU3RyaW5nXG4gICAgfSxcbiAgICBkYXRhOiB7XG4gICAgICAgIHdpZHRoOiBudWxsLFxuICAgICAgICBpbml0ZWQ6IGZhbHNlLFxuICAgICAgICBhY3RpdmU6IGZhbHNlLFxuICAgICAgICBhbmltYXRlZDogZmFsc2VcbiAgICB9LFxuICAgIHdhdGNoOiB7XG4gICAgICAgIHRpdGxlOiAndXBkYXRlJyxcbiAgICAgICAgZGlzYWJsZWQ6ICd1cGRhdGUnLFxuICAgICAgICBkb3Q6ICd1cGRhdGUnLFxuICAgICAgICBpbmZvOiAndXBkYXRlJyxcbiAgICAgICAgdGl0bGVTdHlsZTogJ3VwZGF0ZSdcbiAgICB9LFxuICAgIG1ldGhvZHM6IHtcbiAgICAgICAgdXBkYXRlOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICB2YXIgcGFyZW50ID0gdGhpcy5nZXRSZWxhdGlvbk5vZGVzKCcuLi90YWJzL2luZGV4JylbMF07XG4gICAgICAgICAgICBpZiAocGFyZW50KSB7XG4gICAgICAgICAgICAgICAgcGFyZW50LnVwZGF0ZVRhYnMoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn0pO1xuIl0sImZpbGUiOiJpbmRleC5qcyJ9
export default global['__wxComponents']['vant/tab/index']
</script>
<style platform="mp-weixin">
@import '../common/index.css';.van-tab__pane{box-sizing:border-box;overflow-y:auto}.van-tab__pane--active{height:auto}.van-tab__pane--inactive{height:0;overflow:visible}
</style>