12345678910111213141516171819202122232425262728293031323334353637 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- var component_1 = require("../common/component");
- 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 () {
- var parent = this.getRelationNodes('../tabs/index')[0];
- if (parent) {
- parent.updateTabs();
- }
- }
- }
- });
|