@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.
@@ -5745,15 +5745,15 @@ if (typeof window !== 'undefined') {
5745
5745
  // Indicate to webpack that this file can be concatenated
5746
5746
  /* harmony default export */ var setPublicPath = (null);
5747
5747
 
5748
- // 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&
5748
+ // 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&
5749
5749
  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:{
5750
5750
  __active: _vm.value && _vm.value[_vm.trackBy] === tab[_vm.trackBy],
5751
5751
  _disabled: tab && tab._disabled
5752
- },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()])}
5752
+ },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()])}
5753
5753
  var staticRenderFns = []
5754
5754
 
5755
5755
 
5756
- // CONCATENATED MODULE: ./src/components/VTabs.vue?vue&type=template&id=8f0a7082&
5756
+ // CONCATENATED MODULE: ./src/components/VTabs.vue?vue&type=template&id=2fa8fd08&
5757
5757
 
5758
5758
  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
5759
5759
  function _arrayWithHoles(arr) {
@@ -5963,6 +5963,7 @@ var es_array_find = __webpack_require__("7db0");
5963
5963
  //
5964
5964
  //
5965
5965
  //
5966
+ //
5966
5967
  /* harmony default export */ var VTabsvue_type_script_lang_js_ = ({
5967
5968
  props: {
5968
5969
  direction: {
@@ -6020,6 +6021,11 @@ var es_array_find = __webpack_require__("7db0");
6020
6021
  tab && this.handleTabSelect(tab);
6021
6022
  }
6022
6023
  },
6024
+ watch: {
6025
+ value: function value() {
6026
+ this.withSlider && this.calcSlider();
6027
+ }
6028
+ },
6023
6029
  methods: {
6024
6030
  handleTabSelect: function handleTabSelect(tab) {
6025
6031
  this.$emit('input', tab);