dfish-widget 1.0.118 → 1.0.120

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
@@ -3567,7 +3567,8 @@ const O = {},
3567
3567
  animateState: null,
3568
3568
  isDeactivated: false,
3569
3569
  _pos: null,
3570
- snapStyle: null
3570
+ snapStyle: null,
3571
+ unique: false,
3571
3572
  }
3572
3573
  },
3573
3574
  activated() {
@@ -4358,7 +4359,8 @@ script$16.__file = "src/template/TemplateTip.vue";
4358
4359
 
4359
4360
  let inst$1 = null;
4360
4361
  let tipCache = {
4361
- time: new Date().getTime()
4362
+ time: new Date().getTime(),
4363
+ list: []
4362
4364
  };
4363
4365
 
4364
4366
  var script$15 = {
@@ -4381,7 +4383,17 @@ let inst$1 = null;
4381
4383
  },
4382
4384
  html_slots_default() {
4383
4385
  return h(script$16, {text: this.x.text, escape: this.x.escape}, this.$slots)
4384
- }
4386
+ },
4387
+ // implement
4388
+ setVisibleSub(a) {
4389
+ if (a) {
4390
+ for (let uid of tipCache.list) {
4391
+ if (uid != this.uid) {
4392
+ $$1.close(uid);
4393
+ }
4394
+ }
4395
+ }
4396
+ },
4385
4397
  },
4386
4398
  computed: {
4387
4399
  slotTarget() {
@@ -4399,9 +4411,14 @@ let inst$1 = null;
4399
4411
  tipCache.time = new Date().getTime();
4400
4412
  inst$1 && $$1.close(inst$1);
4401
4413
  inst$1 = this.uid;
4414
+ tipCache.list.push(this.uid);
4402
4415
  },
4403
4416
  unmounted() {
4404
4417
  inst$1 = null;
4418
+ let i = tipCache.list.indexOf(this.uid);
4419
+ if (i > -1) {
4420
+ tipCache.list.splice(i, 1);
4421
+ }
4405
4422
  }
4406
4423
  };
4407
4424
 
@@ -9408,13 +9425,11 @@ var script$r = {
9408
9425
  let bg = [];
9409
9426
  let linePos = 0;
9410
9427
  let lineColor = '#ddd';
9411
- console.log(len);
9412
9428
  for (let i = 0; i < len; i++) {
9413
9429
  let el = $$1.q(`>.w-timeline-half>.w-timeline-item[w-index="${i}"]`, this.$refs.wrap);
9414
9430
  let b = $$1.bcr(el.find('>.w-timeline-item-icon>.w-timeline-item-icon-img')[0]);
9415
9431
  let c = {x: b.left + (b.width / 2), y: b.top + (b.height / 2), color: el.attr('w-line-color')};
9416
9432
  center.push(c);
9417
- console.log(c);
9418
9433
  }
9419
9434
  center.sort((n, m) => this.x.vertical ? (n.y < m.y ? -1 : 0) : (n.x < m.x ? -1 : 0));
9420
9435
  for (let i = 0; i < len; i++) {