dfish-widget 0.1.488 → 0.1.489

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.
package/lib/index.esm.js CHANGED
@@ -4415,6 +4415,9 @@ var script$Z = {
4415
4415
  if (this.isMore) {
4416
4416
  this.drop();
4417
4417
  }
4418
+ if (this.pubParent && this.pubParent.clickTab) {
4419
+ this.pubParent.clickTab(this);
4420
+ }
4418
4421
  },
4419
4422
  clickClose(e) {
4420
4423
  e.stopPropagation();
@@ -5396,7 +5399,7 @@ script$K.__file = "src/widgets/Swiper.vue";
5396
5399
  var script$J = {
5397
5400
  name: 'w-buttonbar',
5398
5401
  mixins: [script$1b, script$S],
5399
- props: ['vertical'],
5402
+ props: ['vertical', 'clickTab'],
5400
5403
  methods: {
5401
5404
  x_default() {
5402
5405
  return {
@@ -5452,6 +5455,9 @@ var script$H = {
5452
5455
  gap: -1
5453
5456
  }
5454
5457
  },
5458
+ clickTab(tab) {
5459
+ this.x.current = tab.getKey();
5460
+ },
5455
5461
  html_slots() {
5456
5462
  let buttons = [];
5457
5463
  let pages = [];
@@ -5471,6 +5477,7 @@ var script$H = {
5471
5477
  vertical: pos == 'left' || pos == 'right',
5472
5478
  scrollX: this.x.scrollX,
5473
5479
  scrollY: this.x.scrollY,
5480
+ clickTab: this.clickTab
5474
5481
  }, {default: () => buttons}),
5475
5482
  h(script$K, {class: 'w-tabs-swiper f-flex-1 f-oh', current: this.x.current}, {default: () => pages}),
5476
5483
  ]