@phoenix-cg/v-tabs 0.1.13 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5754,15 +5754,15 @@ if (typeof window !== 'undefined') {
5754
5754
  // Indicate to webpack that this file can be concatenated
5755
5755
  /* harmony default export */ var setPublicPath = (null);
5756
5756
 
5757
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"37512680-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VTabs.vue?vue&type=template&id=8f0a7082&
5757
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b39c45c6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VTabs.vue?vue&type=template&id=2fa8fd08&
5758
5758
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"v-tabs",class:[("__" + _vm.direction)]},[_c('div',{staticClass:"v-tabs_inner"},_vm._l((_vm.list),function(tab){return _c('div',{key:tab[_vm.trackBy],ref:"tabs",refInFor:true,staticClass:"v-tabs_tab",class:{
5759
5759
  __active: _vm.value && _vm.value[_vm.trackBy] === tab[_vm.trackBy],
5760
5760
  _disabled: tab && tab._disabled
5761
- },on:{"click":function($event){return _vm.handleTabSelect(tab, $event)}}},[_vm._t("single-tab",function(){return [(_vm.wrapTitle)?[_c('div',{staticClass:"v-tabs_tab_title"},[_vm._v(" "+_vm._s(tab[_vm.label] || "")+" ")])]:[_vm._v(" "+_vm._s(tab[_vm.label] || "")+" ")]]},{"tab":tab})],2)}),0),(_vm.withSlider)?_c('div',{staticClass:"v-tabs_slider",style:(_vm.sliderStyle)}):_vm._e()])}
5761
+ },attrs:{"data-id":tab[_vm.trackBy]},on:{"click":function($event){return _vm.handleTabSelect(tab, $event)}}},[_vm._t("single-tab",function(){return [(_vm.wrapTitle)?[_c('div',{staticClass:"v-tabs_tab_title"},[_vm._v(" "+_vm._s(tab[_vm.label] || "")+" ")])]:[_vm._v(" "+_vm._s(tab[_vm.label] || "")+" ")]]},{"tab":tab})],2)}),0),(_vm.withSlider)?_c('div',{staticClass:"v-tabs_slider",style:(_vm.sliderStyle)}):_vm._e()])}
5762
5762
  var staticRenderFns = []
5763
5763
 
5764
5764
 
5765
- // CONCATENATED MODULE: ./src/components/VTabs.vue?vue&type=template&id=8f0a7082&
5765
+ // CONCATENATED MODULE: ./src/components/VTabs.vue?vue&type=template&id=2fa8fd08&
5766
5766
 
5767
5767
  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
5768
5768
  function _arrayWithHoles(arr) {
@@ -5972,6 +5972,7 @@ var es_array_find = __webpack_require__("7db0");
5972
5972
  //
5973
5973
  //
5974
5974
  //
5975
+ //
5975
5976
  /* harmony default export */ var VTabsvue_type_script_lang_js_ = ({
5976
5977
  props: {
5977
5978
  direction: {
@@ -6029,6 +6030,11 @@ var es_array_find = __webpack_require__("7db0");
6029
6030
  tab && this.handleTabSelect(tab);
6030
6031
  }
6031
6032
  },
6033
+ watch: {
6034
+ value: function value() {
6035
+ this.withSlider && this.calcSlider();
6036
+ }
6037
+ },
6032
6038
  methods: {
6033
6039
  handleTabSelect: function handleTabSelect(tab) {
6034
6040
  this.$emit('input', tab);