@soei/flyweight 0.3.13 → 0.4.0

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/vue2/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { runer as z, merge as M, isArray as it, each as k, picker as L, isEmpty as st, isSimplyType as D, isString as ct } from "@soei/util";
2
- import { runer as g, isNil as ut, each as G } from "@soei/tools";
1
+ import { runer as b, merge as H, isArray as it, each as R, picker as M, isEmpty as st, isSimplyType as D, isString as ut } from "@soei/util";
2
+ import { runer as _, isNil as ft, each as G } from "@soei/tools";
3
3
  import dt from "@soei/picker";
4
4
  let pt = /(\d+|[+\-\*/]|%)/g, q = {
5
5
  "+": (t, e) => t + e,
@@ -9,28 +9,28 @@ let pt = /(\d+|[+\-\*/]|%)/g, q = {
9
9
  "%": (t, e, i) => parseFloat(t) / 100 * i
10
10
  }, V = (t, e) => {
11
11
  let i;
12
- if (i = z("match", t, pt)) {
12
+ if (i = b("match", t, pt)) {
13
13
  let s = i.length, l, a = 0, n, h = [];
14
14
  for (; s--; )
15
15
  a = i.shift(), a in q ? (l && h.push(l), a === "%" && (h.length = 2), n = a) : +a && h.push(+a), h.length == 2 && (h.push(e), l = q[n].apply(null, h), h.length = 0);
16
16
  +l || (l = +h.pop()), t = l >> 0;
17
17
  }
18
18
  return t;
19
- }, Y = {}, w = (t, e) => (t + "").replace(
19
+ }, Y = {}, v = (t, e) => (t + "").replace(
20
20
  /\w+\((.*)\)/g,
21
21
  "$1"
22
22
  ).replace(
23
23
  Y[e] || (Y[e] = new RegExp("(?=\\s+|^)(\\d+)(?:\\.\\d{1,})?(?!(?:\\.)*\\d|%|\\w)", "g")),
24
24
  "$1px"
25
25
  );
26
- function W(t, e, i, s, l, a, n, h) {
26
+ function L(t, e, i, s, l, a, n, h) {
27
27
  var r = typeof t == "function" ? t.options : t;
28
28
  e && (r.render = e, r.staticRenderFns = i, r._compiled = !0), s && (r.functional = !0), a && (r._scopeId = "data-v-" + a);
29
29
  var o;
30
- if (n ? (o = function(f) {
31
- f = f || // cached call
30
+ if (n ? (o = function(c) {
31
+ c = c || // cached call
32
32
  this.$vnode && this.$vnode.ssrContext || // stateful
33
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !f && typeof __VUE_SSR_CONTEXT__ < "u" && (f = __VUE_SSR_CONTEXT__), l && l.call(this, f), f && f._registeredComponents && f._registeredComponents.add(n);
33
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !c && typeof __VUE_SSR_CONTEXT__ < "u" && (c = __VUE_SSR_CONTEXT__), l && l.call(this, c), c && c._registeredComponents && c._registeredComponents.add(n);
34
34
  }, r._ssrRegister = o) : l && (o = h ? function() {
35
35
  l.call(
36
36
  this,
@@ -39,9 +39,9 @@ function W(t, e, i, s, l, a, n, h) {
39
39
  } : l), o)
40
40
  if (r.functional) {
41
41
  r._injectStyles = o;
42
- var u = r.render;
43
- r.render = function(c, p) {
44
- return o.call(p), u(c, p);
42
+ var f = r.render;
43
+ r.render = function(u, p) {
44
+ return o.call(p), f(u, p);
45
45
  };
46
46
  } else {
47
47
  var d = r.beforeCreate;
@@ -52,10 +52,10 @@ function W(t, e, i, s, l, a, n, h) {
52
52
  options: r
53
53
  };
54
54
  }
55
- let J = (t) => t == null || t == null, gt = (...t) => {
55
+ let J = (t) => t == null || t == null, _t = (...t) => {
56
56
  console.info("::::FLYWEIGHT", ...t);
57
57
  };
58
- const _t = {
58
+ const gt = {
59
59
  name: "Flyweight",
60
60
  props: {
61
61
  flys: {
@@ -119,14 +119,14 @@ const _t = {
119
119
  },
120
120
  style() {
121
121
  var t = this.w, e = this.h, i = this.Size, s = {};
122
- return M(s, {
123
- "--width": w(this.realW),
124
- "--height": w(this.realH),
125
- "--flyweight-content": w(i)
122
+ return H(s, {
123
+ "--width": v(this.realW),
124
+ "--height": v(this.realH),
125
+ "--flyweight-content": v(i)
126
126
  }, e && {
127
- "--flyweight-h": w(e)
127
+ "--flyweight-h": v(e)
128
128
  }, t && s, {
129
- "--flyweight-w": w(t)
129
+ "--flyweight-w": v(t)
130
130
  }, "mix"), s;
131
131
  }
132
132
  },
@@ -178,16 +178,16 @@ const _t = {
178
178
  this.rebuild(), this.$emit("resize");
179
179
  }).observe(this.flyweight);
180
180
  } catch (t) {
181
- gt(t);
181
+ _t(t);
182
182
  }
183
- this.scrollx = z("hasAttribute", this.flyweight, "scroll-x"), this.BoxRule = /* this.scrollx ? 'clientHeight=>width,clientWidth=>height' : */
183
+ this.scrollx = b("hasAttribute", this.flyweight, "scroll-x"), this.BoxRule = /* this.scrollx ? 'clientHeight=>width,clientWidth=>height' : */
184
184
  "clientHeight=>height,clientWidth=>width", this.direction = this.scrollx ? "scrollLeft" : "scrollTop";
185
185
  },
186
186
  methods: {
187
- exec: w,
187
+ exec: v,
188
188
  trigger(t, e) {
189
189
  it(t) || (t = t && e ? [[t, e]] : []), t.length && this.lazyrun(() => {
190
- k(t, (i, s) => {
190
+ R(t, (i, s) => {
191
191
  this.$emit(s[0], J(s[1]) ? !0 : s[1]);
192
192
  });
193
193
  });
@@ -197,9 +197,9 @@ const _t = {
197
197
  return t && this.task.push(t), !0;
198
198
  },
199
199
  setview(t) {
200
- z([this.cheackflys, (e) => {
200
+ b([this.cheackflys, (e) => {
201
201
  e = e || {};
202
- let i = e.index || k(this.flys, (s, l, a, n) => {
202
+ let i = e.index || R(this.flys, (s, l, a, n) => {
203
203
  if (l[a] == n)
204
204
  return s;
205
205
  }, e.picker, e.id);
@@ -207,7 +207,7 @@ const _t = {
207
207
  }], this, t);
208
208
  },
209
209
  setindex(t) {
210
- z([this.cheackflys, ({ index: e }) => {
210
+ b([this.cheackflys, ({ index: e }) => {
211
211
  this.selectIndex = e, this.$nextTick(() => {
212
212
  let i = e / this.column >> 0, s = this.expand;
213
213
  (this.flyweight[this.direction] / s >> 0) + this.row - i - 1 > 0 || (this.flyweight[this.direction] = i * s, this.scroll());
@@ -216,11 +216,11 @@ const _t = {
216
216
  },
217
217
  lazyrun(t, e) {
218
218
  clearTimeout(this.time), this.time = setTimeout(() => {
219
- z(t);
219
+ b(t);
220
220
  }, e || this.lazy);
221
221
  },
222
222
  run(t) {
223
- let e = [], i = z(this.direction, t.target), s = {
223
+ let e = [], i = b(this.direction, t.target), s = {
224
224
  // ...this
225
225
  offset: i,
226
226
  top: i,
@@ -229,20 +229,20 @@ const _t = {
229
229
  /* 显示区域第一行的索引 */
230
230
  index: i / this.expand >> 0
231
231
  };
232
- M(s, this.space), t.from || e.push(["onscroll", s]);
232
+ H(s, this.space), t.from || e.push(["onscroll", s]);
233
233
  let l = !1;
234
- k(
234
+ R(
235
235
  this.flyweights,
236
- (a, n, h, r, o, u, d, f, c) => {
237
- if (h = a / o >> 0, f = h + r * /* 偏移量, 如果超出顶部 + 1轮,排列到列队后, 否则保持在当前*/
238
- (+(h < u % r) + (u / r >> 0)), c = f * o + a % o, c >= this.count) {
236
+ (a, n, h, r, o, f, d, c, u) => {
237
+ if (h = a / o >> 0, c = h + r * /* 偏移量, 如果超出顶部 + 1轮,排列到列队后, 否则保持在当前*/
238
+ (+(h < f % r) + (f / r >> 0)), u = c * o + a % o, u >= this.count) {
239
239
  l || (e.push(["onend"]), l = !0);
240
240
  return;
241
241
  }
242
- n.index = f, n.i = c, n.data = this.flys[c];
242
+ n.index = c, n.i = u, n.data = this.flys[u];
243
243
  let p = [
244
244
  /* top */
245
- f * this.expand + n.x,
245
+ c * this.expand + n.x,
246
246
  /* left */
247
247
  n.space
248
248
  ];
@@ -264,35 +264,35 @@ const _t = {
264
264
  if (!t)
265
265
  return e.length = t;
266
266
  this.count = t;
267
- let i = this.scrollx, s = this.flyweight, l = L(s, this.BoxRule);
267
+ let i = this.scrollx, s = this.flyweight, l = M(s, this.BoxRule);
268
268
  this.$nextTick(() => {
269
- let a = /true/.test(this.auto), [n, h] = this.offset, r = l.width, o = l.height, u = (V(this.width, r) || r) + n, d = V(this.height, o) + h, f = [r / u >> 0 || 1, o / d >> 0 || 1];
270
- i && f.reverse();
271
- let [c, p] = f, b = this.padding, T, x = 0, _, y;
272
- i ? (_ = u, u -= n, y = (S) => (
269
+ let a = /true/.test(this.auto), [n, h] = this.offset, r = l.width, o = l.height, f = (V(this.width, r) || r) + n, d = V(this.height, o) + h, c = [r / f >> 0 || 1, o / d >> 0 || 1];
270
+ i && c.reverse();
271
+ let [u, p] = c, x = this.padding, z, S = 0, g, y;
272
+ i ? (g = f, f -= n, y = ($) => (
273
273
  /* 计算top偏移量 */
274
- S * (d - h) + (S + 1) * h
275
- )) : (a ? (u = (r - n * (c + 2 * b - 1)) / c, T = !b * n, x = b * n) : (T = 0, x = (r % u + n * c) / (c + 1) >> 0, u -= n), y = (S) => S * (u + T) + (S + 1) * x, _ = d), this.row = p + 2, this.column = c, this.realH = d - h, this.realW = u, this.expand = _, this.Size = Math.ceil(t / c) * _;
276
- let v = Math.min(t, c * this.row), m = v - 1, $;
277
- for (; v-- > 0; )
278
- $ = m - v, this.$set(e, $, {
274
+ $ * (d - h) + ($ + 1) * h
275
+ )) : (a ? (f = (r - n * (u + 2 * x - 1)) / u, z = !x * n, S = x * n) : (z = 0, S = (r % f + n * u) / (u + 1) >> 0, f -= n), y = ($) => $ * (f + z) + ($ + 1) * S, g = d), this.row = p + 2, this.column = u, this.realH = d - h, this.realW = f, this.expand = g, this.Size = Math.ceil(t / u) * g;
276
+ let w = Math.min(t, u * this.row), m = w - 1, N;
277
+ for (; w-- > 0; )
278
+ N = m - w, this.$set(e, N, {
279
279
  x: n,
280
280
  y: h,
281
- width: u,
281
+ width: f,
282
282
  height: d - h,
283
- space: y($ % c),
283
+ space: y(N % u),
284
284
  data: {}
285
285
  });
286
286
  e.length = m + 1;
287
- let N = [];
288
- o / _ > m / c && N.push(["onend"]), this.flyweight && (this.flyweight[this.direction] = 0), this.$nextTick(() => {
287
+ let T = [];
288
+ o / g > m / u && T.push(["onend"]), this.flyweight && (this.flyweight[this.direction] = 0), this.$nextTick(() => {
289
289
  this.setindex(this.selectIndex || 0), this.scroll();
290
- }), N.push(["update:space", {
291
- row: (m / c >> 0) + 1,
292
- column: c,
290
+ }), T.push(["update:space", {
291
+ row: (m / u >> 0) + 1,
292
+ column: u,
293
293
  showrow: this.row,
294
294
  showcolumn: this.column
295
- }]), this.trigger(N);
295
+ }]), this.trigger(T);
296
296
  });
297
297
  }
298
298
  }
@@ -307,8 +307,8 @@ var mt = function() {
307
307
  left: s.left + "px"
308
308
  } }, [e._t("default", null, null, s)], 2);
309
309
  }), 0), e.flyweights.length ? e._t("end") : e._e()], 2);
310
- }, yt = [], vt = /* @__PURE__ */ W(
311
- _t,
310
+ }, yt = [], wt = /* @__PURE__ */ L(
311
+ gt,
312
312
  mt,
313
313
  yt,
314
314
  !1,
@@ -317,7 +317,7 @@ var mt = function() {
317
317
  null,
318
318
  null
319
319
  );
320
- const wt = vt.exports;
320
+ const vt = wt.exports;
321
321
  function F(t, e) {
322
322
  return e && (t = t.replace(/[a-z]/g, "")), t.toLowerCase();
323
323
  }
@@ -344,7 +344,7 @@ let rt = {
344
344
  "Bottom",
345
345
  "Left"
346
346
  ], nt = {};
347
- k(
347
+ R(
348
348
  bt,
349
349
  (t, e, i) => {
350
350
  t = F(e), nt["--" + F(e, !0)] = t, i[t] = function() {
@@ -410,35 +410,43 @@ const xt = {
410
410
  computed: {
411
411
  style() {
412
412
  return this.tr();
413
+ },
414
+ sub() {
415
+ return this.show || this.title;
416
+ },
417
+ tips() {
418
+ return b("tips", this.close || {}) || "关闭[" + this.sub + "]";
413
419
  }
414
420
  },
415
421
  watch: rt,
416
422
  methods: {
417
- exec: w,
423
+ exec: v,
418
424
  isEmpty: st,
425
+ picker: M,
426
+ runer: b,
419
427
  isSimplyType: D,
420
428
  tr() {
421
429
  let t = {};
422
- return this.margin(this.offset), k(nt, (e, i) => {
430
+ return this.margin(this.offset), R(nt, (e, i) => {
423
431
  this.css(t, e, i);
424
432
  }), t;
425
433
  },
426
434
  tolower: F,
427
435
  css(t, e, i) {
428
436
  let s = this[i] || this.default[i];
429
- !s || this.default[i] == s || (t[e] = w(s));
437
+ !s || this.default[i] == s || (t[e] = v(s));
430
438
  },
431
439
  change(t) {
432
- D(t) || (this.closecss = L(
440
+ D(t) || (this.closecss = M(
433
441
  t,
434
442
  "color=>--s-card-close-color,size=>--s-close-width,bold=>--s-close-height,*"
435
443
  ));
436
444
  },
437
445
  margin(t) {
438
- M(
446
+ H(
439
447
  this,
440
- L(
441
- ct(t) ? t.split(/\s*(?:,|\s+)\s*/) : t,
448
+ M(
449
+ ut(t) ? t.split(/\s*(?:,|\s+)\s*/) : t,
442
450
  "0=>top,1|0=>right,2|0=>bottom,3|1|0=>left",
443
451
  !0
444
452
  ),
@@ -454,25 +462,26 @@ var St = function() {
454
462
  var e = this, i = e._self._c;
455
463
  return i("div", { key: e.trigger, staticClass: "card", style: e.isEmpty(e.style) ? e.tr() : e.style }, [e._t("default", function() {
456
464
  return [e._t("title", function() {
457
- var s;
458
- return [i("div", { staticClass: "card-title" }, [e._v(" " + e._s(e.show || e.title) + " "), i("div", { staticClass: "card-close", class: { hide: e.isSimplyType(e.close) ? !e.close : !1 }, style: e.closecss, attrs: { title: (s = e.close) == null ? void 0 : s.tips }, on: { click: function(l) {
459
- return e.$emit("close");
460
- } } })])];
465
+ return [i("div", { staticClass: "card-title", attrs: { space: "" } }, [e._v(" " + e._s(e.sub) + " "), e._t("icons", function() {
466
+ return [i("div", { staticClass: "card-ico-items", attrs: { flex: "", vcenter: "" } }, [e._t("icon", null, null, { el: e.$el, picker: e.picker, runer: e.runer }), i("div", { staticClass: "card-close", class: { hide: e.isSimplyType(e.close) ? !e.close : !1 }, style: e.closecss, attrs: { title: e.tips }, on: { click: function(s) {
467
+ return e.$emit("close");
468
+ } } })], 2)];
469
+ })], 2)];
461
470
  }), e._t("content", function() {
462
471
  return [i("div", { staticClass: "card-content" }, [e._t("inner")], 2)];
463
472
  })];
464
473
  })], 2);
465
- }, $t = [], Nt = /* @__PURE__ */ W(
474
+ }, $t = [], Nt = /* @__PURE__ */ L(
466
475
  xt,
467
476
  St,
468
477
  $t,
469
478
  !1,
470
479
  null,
471
- "17093fb8",
480
+ "b1e09a6c",
472
481
  null,
473
482
  null
474
483
  );
475
- const zt = Nt.exports, Tt = {
484
+ const Tt = Nt.exports, zt = {
476
485
  name: "Stream",
477
486
  computed: {
478
487
  component() {
@@ -503,7 +512,7 @@ const zt = Nt.exports, Tt = {
503
512
  }
504
513
  },
505
514
  mounted() {
506
- this.$.vnode.ref && M(this, { ...this.component });
515
+ this.$.vnode.ref && H(this, { ...this.component });
507
516
  },
508
517
  methods: {
509
518
  __trigger(t) {
@@ -517,17 +526,17 @@ var Ct = function() {
517
526
  return i(e.type, e._b({ ref: "component", tag: "component" }, "component", e.$attrs, !1), [e._l(e.column, function(s) {
518
527
  return e._t(e.__trigger(s), null, null, s);
519
528
  })], 2);
520
- }, Rt = [], kt = /* @__PURE__ */ W(
521
- Tt,
529
+ }, kt = [], Rt = /* @__PURE__ */ L(
530
+ zt,
522
531
  Ct,
523
- Rt,
532
+ kt,
524
533
  !1,
525
534
  null,
526
535
  null,
527
536
  null,
528
537
  null
529
538
  );
530
- const Mt = kt.exports, K = /(?:\,|\|{2})/, Q = "px", Z = "";
539
+ const Mt = Rt.exports, K = /(?:\,|\|{2})/, Q = "px", Z = "";
531
540
  let lt = document.documentElement, tt, et = ["s-left", "s-top", "s-right", "s-bottom"], Ht = { left: 0, top: 1, right: 2, bottom: 3 };
532
541
  const P = [];
533
542
  var Et = dt(
@@ -544,79 +553,83 @@ Et(B, "delay", {
544
553
  return this._delay;
545
554
  },
546
555
  set(t) {
547
- ot = Lt(() => {
548
- g(P);
556
+ ot = Wt(() => {
557
+ _(P);
549
558
  }, t), this._delay = t;
550
559
  }
551
560
  });
552
561
  B.delay = 60;
553
- function Lt(t, e) {
562
+ function Wt(t, e) {
554
563
  let i = 0;
555
564
  return function() {
556
565
  const s = Date.now();
557
- s - i >= e && (i = s, g(t, this, arguments));
566
+ s - i >= e && (i = s, _(t, this, arguments));
558
567
  };
559
568
  }
560
- const E = () => {
569
+ const W = () => {
561
570
  ot();
562
571
  };
563
- function Wt(t) {
572
+ function Lt(t) {
564
573
  P.push(t);
565
574
  }
566
- const R = new ResizeObserver(E);
567
- R.observe(lt);
575
+ const k = new ResizeObserver(W);
576
+ k.observe(lt);
568
577
  function ht(t) {
569
578
  t.onresize || (P.push([ht, null, t]), t.onresize = !0);
570
- var e = lt, i = e.clientHeight, s = ut(t.offset) ? 15 : t.offset, l = t.target, a = t.room, n = t.index, h = t.position, r = l.getBoundingClientRect(), o = a.offsetHeight + s, u = a.offsetWidth + s, d = "3,0,2,1".split(K), f, c = (r.height == tt ? r.bottom - r.top : r.height) >> 0, p = (r.width == tt ? r.right - r.left : r.width) >> 0, b = e.clientWidth - u, T = i - o, x = [
579
+ var e = lt, i = e.clientHeight, s = ft(t.offset) ? 15 : t.offset, l = t.target, a = t.room, n = t.index, h = t.position, r = l.getBoundingClientRect(), o = a.offsetHeight + s, f = a.offsetWidth + s, d = "3,0,2,1".split(K), c, u = (r.height == tt ? r.bottom - r.top : r.height) >> 0, p = (r.width == tt ? r.right - r.left : r.width) >> 0, x = e.clientWidth - f, z = i - o, S = [
571
580
  /* left: 0 */
572
- r.left - u,
581
+ r.left - f,
573
582
  /* top: 1 */
574
583
  r.top - o,
575
584
  /* right: 2 */
576
- b - r.right,
585
+ x - r.right,
577
586
  /* bottom: 3 */
578
- T - r.bottom
587
+ z - r.bottom
579
588
  ];
580
589
  h && (G(
581
590
  h.split(K),
582
- function(at, H, O, ft) {
583
- ft.push(O[H]);
591
+ function(at, E, O, ct) {
592
+ ct.push(O[E]);
584
593
  },
585
594
  Ht,
586
- f = []
587
- ), d.unshift.apply(d, f)), n = G(
595
+ c = []
596
+ ), d.unshift.apply(d, c)), n = G(
588
597
  d,
589
- function(at, H, O) {
590
- if (O[H] > 0)
591
- return H;
598
+ function(at, E, O) {
599
+ if (O[E] > 0)
600
+ return E;
592
601
  },
593
- x
602
+ S
594
603
  );
595
- var _ = 0, y = 0, v = 0;
604
+ var g = 0, y = 0, w = 0;
596
605
  if (n != null) {
597
- var m = n == 0 || n == 2, $ = n == 3 || n == 1;
598
- _ = $ ? Math.min(r.left, b) : n == 2 ? r.right + s : x[0], o -= s * +m;
599
- var N = Math.max(r.top, 0), S = Math.min(
606
+ var m = n == 0 || n == 2, N = n == 3 || n == 1;
607
+ g = N ? Math.min(r.left, x) : n == 2 ? r.right + s : S[0], o -= s * +m;
608
+ var T = Math.max(r.top, 0), $ = Math.min(
600
609
  r.bottom,
601
610
  i
602
- ), I = (S - o + Math.min(i - o, N)) / 2;
611
+ ), I = ($ - o + Math.min(i - o, T)) / 2;
603
612
  y = Math.max(
604
- m ? I : n == 3 ? r.top + c + s : Math.min(I, x[1]),
613
+ m ? I : n == 3 ? r.top + u + s : Math.min(I, S[1]),
605
614
  0
606
- ), $ && r.left > b && (v = r.left - _ - s + p / 2);
615
+ ), N && r.left > x && (w = r.left - g - s + p / 2);
607
616
  }
608
617
  let j = a.classList, C = t.css;
609
- j.remove(...et), j.add(et[n]), t.index = n, C.left = _ + Q, C.top = y + Q;
618
+ j.remove(...et), j.add(et[n]), t.index = n, C.left = g + Q, C.top = y + Q;
610
619
  let U = C["--tips-arrow-top"] = m ? Math.min(
611
620
  /* 底边距 */
612
- Math.max(y, N) - y,
621
+ Math.max(y, T) - y,
613
622
  o - s
614
- ) : Z, X = u - 3 * s;
615
- C["--tips-arrow"] = v > X - 10 || m && (U + (o > 50 ? 15 : 0) > o || !U) ? "hidden" : "visible", C["--tips-arrow-left"] = v ? Math.min(v, X) : Z;
623
+ ) : Z, X = f - 3 * s;
624
+ C["--tips-arrow"] = w > X - 10 || m && (U + (o > 50 ? 15 : 0) > o || !U) ? "hidden" : "visible", C["--tips-arrow-left"] = w ? Math.min(w, X) : Z;
616
625
  }
617
626
  const A = "data-tips-scroll", Ot = {
618
627
  name: "Tips",
619
628
  props: {
629
+ /* 目标对象 */
630
+ target: {
631
+ type: [HTMLElement]
632
+ },
620
633
  /* 是否显示 */
621
634
  visible: {
622
635
  type: [Boolean, String, Number],
@@ -690,13 +703,13 @@ const A = "data-tips-scroll", Ot = {
690
703
  };
691
704
  },
692
705
  methods: {
693
- parent(t) {
706
+ __parent(t) {
694
707
  let e = this.$el, i;
695
- for (; e && (e = e.parentNode, e && e.nodeType == 1 || (e = window, i = !0), g(t, null, e, i), !i); )
708
+ for (; e && (e = e.parentNode, e && e.nodeType == 1 || (e = window, i = !0), _(t, null, e, i), !i); )
696
709
  ;
697
710
  },
698
- attr(t, e, i) {
699
- return g(
711
+ __attr(t, e, i) {
712
+ return _(
700
713
  t[i === void 0 ? "getAttribute" : "setAttribute"],
701
714
  t,
702
715
  e,
@@ -705,12 +718,13 @@ const A = "data-tips-scroll", Ot = {
705
718
  },
706
719
  /* 初始化 */
707
720
  init() {
708
- this.$el.nodeName != "#comment" && ht({
721
+ let t = this.$el;
722
+ t.nodeName != "#comment" && ht({
709
723
  onresize: !1,
710
724
  /* 监控的目标 */
711
- target: this.$el.parentNode,
725
+ target: t.parentNode,
712
726
  /* 显示的元素 */
713
- room: this.$el,
727
+ room: t,
714
728
  /* 显示位置 */
715
729
  position: this.position,
716
730
  /* CSS样式集合 */
@@ -719,49 +733,55 @@ const A = "data-tips-scroll", Ot = {
719
733
  offset: +this.offset >> 0
720
734
  });
721
735
  },
722
- scrollListener() {
723
- this.static || this.parent((t, e, i) => {
724
- e ? g(t.addEventListener, t, "scroll", E) : (g(R.observe, R, t), (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && (i = this.attr(t, A), i || (g(t.addEventListener, t, "scroll", E), this.attr(t, A, "true"))));
736
+ __2listener() {
737
+ this.static || this.__parent((t, e, i) => {
738
+ e ? _(t.addEventListener, t, "scroll", W) : (_(k.observe, k, t), (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && (i = this.__attr(t, A), i || (_(t.addEventListener, t, "scroll", W), this.__attr(t, A, "true"))));
725
739
  });
740
+ },
741
+ __css() {
742
+ let t = {}, e;
743
+ return this.target ? e = {
744
+ [this.position]: this.offset + "px"
745
+ } : (e = M(
746
+ this.$props,
747
+ "color=>--tips-color,background=>--tips-background-color,border=>--tips-border-width,fontSize=>--tips-font-size,borderRadius=>--tips-border-radius"
748
+ ), t["--arrow-size"] = Math.sqrt(2 * Math.pow((this.border || 3) * 2 + 2, 2)) / 2 >> 0), H(t, e), t;
749
+ },
750
+ __2next() {
751
+ this.target || (this.init(), B.delay = +this.delay, Lt((t) => {
752
+ this.__2listener();
753
+ }), this.__2listener());
726
754
  }
727
755
  },
728
756
  mounted() {
729
- M(
730
- this.css,
731
- L(
732
- this.$props,
733
- "color=>--tips-color,background=>--tips-background-color,border=>--tips-border-width,fontSize=>--tips-font-size,borderRadius=>--tips-border-radius"
734
- )
735
- ), this.css["--arrow-size"] = Math.sqrt(2 * Math.pow((this.border || 3) * 2 + 2, 2)) / 2 >> 0, this.init(), B.delay = +this.delay, Wt((t) => {
736
- this.scrollListener();
737
- }), this.scrollListener();
757
+ this.css = this.__css(), this.__2next();
738
758
  },
739
759
  unmounted() {
740
- this.parent(function(t, e) {
741
- g(t.removeEventListener, t, "scroll", E), g(t.removeAttribute, t, A, void 0), e || g(R.unobserve, R, t);
760
+ this.__parent(function(t, e) {
761
+ _(t.removeEventListener, t, "scroll", W), _(t.removeAttribute, t, A, void 0), e || _(k.unobserve, k, t);
742
762
  });
743
763
  }
744
764
  };
745
765
  var At = function() {
746
766
  var e = this, i = e._self._c;
747
- return e.visible ? i("div", e._b({ staticClass: "tips", style: e.static ? null : e.css, attrs: { static: e.static ? "" : null } }, "div", e.$attrs, !1), [e._t("default", function() {
767
+ return e.visible ? i("div", e._b({ staticClass: "tips", class: e.target ? "tips-" + e.position : "", style: e.static ? null : e.css, attrs: { static: e.static ? "" : null } }, "div", e.$attrs, !1), [e._t("default", function() {
748
768
  return [e._t("title", function() {
749
769
  return [i("div", { staticClass: "tips-title" }, [e._v(e._s(e.title))])];
750
770
  }), e._t("content", function() {
751
771
  return [e._v(e._s(e.content))];
752
772
  })];
753
773
  })], 2) : e._e();
754
- }, Ft = [], Pt = /* @__PURE__ */ W(
774
+ }, Ft = [], Pt = /* @__PURE__ */ L(
755
775
  Ot,
756
776
  At,
757
777
  Ft,
758
778
  !1,
759
779
  null,
760
- "d4e2f8f1",
780
+ "f2043d4b",
761
781
  null,
762
782
  null
763
783
  );
764
- const Bt = Pt.exports, It = [wt, zt, Mt, Bt], Dt = {
784
+ const Bt = Pt.exports, It = [vt, Tt, Mt, Bt], Dt = {
765
785
  install(t) {
766
786
  It.forEach((e) => {
767
787
  t.component("S" + e.name, e), t.component(e.name + "S", e);
@@ -769,8 +789,8 @@ const Bt = Pt.exports, It = [wt, zt, Mt, Bt], Dt = {
769
789
  }
770
790
  };
771
791
  export {
772
- zt as Card,
773
- wt as Flyweight,
792
+ Tt as Card,
793
+ vt as Flyweight,
774
794
  Mt as Stream,
775
795
  Bt as Tips,
776
796
  Dt as default
package/vue2/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.flyweight[data-v-d5f1cd63]{height:var(--flyweight-h, 100%);width:var(--flyweight-w, 100%);overflow:auto;position:relative}.flyweight[hover-scroll][data-v-d5f1cd63]::-webkit-scrollbar-track,.flyweight[auto-scroll][data-v-d5f1cd63]::-webkit-scrollbar-track{border-radius:10px}.flyweight[hover-scroll][data-v-d5f1cd63]::-webkit-scrollbar-thumb,.flyweight[auto-scroll][data-v-d5f1cd63]::-webkit-scrollbar-thumb{border-radius:10px;background-color:transparent}.flyweight[hover-scroll][data-v-d5f1cd63]::-webkit-scrollbar,.flyweight[auto-scroll][data-v-d5f1cd63]::-webkit-scrollbar{border-radius:10px;width:var(--scrollbar-width, 8px);height:var(--scrollbar-width, 8px)}.flyweight[hover-scroll][data-v-d5f1cd63]:hover::-webkit-scrollbar-thumb,.flyweight[auto-scroll][data-v-d5f1cd63]::-webkit-scrollbar-thumb{border-style:dashed;border-color:transparent;border-width:2px;background-clip:padding-box;cursor:pointer}.flyweight[hover-scroll][data-v-d5f1cd63]:hover::-webkit-scrollbar-thumb:hover,.flyweight[auto-scroll][data-v-d5f1cd63]::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-color, #101010)}.flyweight[hover-scroll][data-v-d5f1cd63]:hover::-webkit-scrollbar-thumb,.flyweight[auto-scroll][data-v-d5f1cd63]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-color, #101010)}.flyweight[scroll-x] .flyweight-all[data-v-d5f1cd63]{width:var(--flyweight-content);height:auto;min-height:100%}.flyweight[scroll-x] .flyweight-all+*[data-v-d5f1cd63]{left:var(--flyweight-content);position:absolute;top:0;height:100%}.flyweight .flyweight-all[data-v-d5f1cd63]{height:var(--flyweight-content)}.flyweight .flyweight-all>*[data-v-d5f1cd63]{width:calc(var(--width));height:var(--height);position:absolute}@media screen and (-apple-system: Macintosh){.flyweight .flyweight-all[data-v-d5f1cd63]{background-color:red!important}}html [simply]{background-color:inherit;border:0!important}html [nothing]{margin:0!important;padding:0!important;border:0!important}html [flex],html [space],html [row],html [column]{display:flex}html [column]{flex-direction:column}html [row]{flex-direction:row}html [space]{justify-content:space-between}html [space=around]{justify-content:space-around}html [space=evenly]{justify-content:space-evenly}html [center]{justify-content:center}html [vcenter]{align-items:center}html [hand]{cursor:pointer}html [overflow]{overflow:auto!important}html [overflow=scroll]{overflow:scroll!important}.card[data-v-17093fb8]{--t: 0px;--r: 0px;--b: 0px;--l: 0px;--h: 100%;--w: 100%;--br: 1px;position:relative;background-color:var(--bg, var(--card-background-color, #fff));padding:var(--card-padding, 10px);border-radius:var(--card-border-radius, 10px);box-sizing:border-box;border-style:solid;border-color:var(--card-border-color, #555);border-width:var(--br);justify-content:flex-start;margin:var(--t) var(--r) var(--b) var(--l);height:calc(var(--h) - var(--t) - var(--b));width:calc(var(--w) - var(--l) - var(--r));overflow:auto}.card[hover-scroll][data-v-17093fb8]::-webkit-scrollbar-track,.card[auto-scroll][data-v-17093fb8]::-webkit-scrollbar-track{border-radius:10px}.card[hover-scroll][data-v-17093fb8]::-webkit-scrollbar-thumb,.card[auto-scroll][data-v-17093fb8]::-webkit-scrollbar-thumb{border-radius:10px;background-color:transparent}.card[hover-scroll][data-v-17093fb8]::-webkit-scrollbar,.card[auto-scroll][data-v-17093fb8]::-webkit-scrollbar{border-radius:10px;width:var(--scrollbar-width, 8px);height:var(--scrollbar-width, 8px)}.card[hover-scroll][data-v-17093fb8]:hover::-webkit-scrollbar-thumb,.card[auto-scroll][data-v-17093fb8]::-webkit-scrollbar-thumb{border-style:dashed;border-color:transparent;border-width:2px;background-clip:padding-box;cursor:pointer}.card[hover-scroll][data-v-17093fb8]:hover::-webkit-scrollbar-thumb:hover,.card[auto-scroll][data-v-17093fb8]::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-color, #101010)}.card[hover-scroll][data-v-17093fb8]:hover::-webkit-scrollbar-thumb,.card[auto-scroll][data-v-17093fb8]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-color, #101010)}.card .card[simply][data-v-17093fb8]{background-color:inherit;border:0!important}.card .card[nothing][data-v-17093fb8]{margin:0!important;padding:0!important;border:0!important}.card .card[flex][data-v-17093fb8],.card .card[space][data-v-17093fb8],.card .card[row][data-v-17093fb8],.card .card[column][data-v-17093fb8]{display:flex}.card .card[column][data-v-17093fb8]{flex-direction:column}.card .card[row][data-v-17093fb8]{flex-direction:row}.card .card[space][data-v-17093fb8]{justify-content:space-between}.card .card[space=around][data-v-17093fb8]{justify-content:space-around}.card .card[space=evenly][data-v-17093fb8]{justify-content:space-evenly}.card .card[center][data-v-17093fb8]{justify-content:center}.card .card[vcenter][data-v-17093fb8]{align-items:center}.card .card[hand][data-v-17093fb8]{cursor:pointer}.card .card[overflow][data-v-17093fb8]{overflow:auto!important}.card .card[overflow=scroll][data-v-17093fb8]{overflow:scroll!important}.card .card-title[data-v-17093fb8]{max-height:40px}.card .card-close[data-v-17093fb8]{position:absolute;width:20px;height:20px;right:10px;top:10px;border-radius:10px;z-index:1;--s-transform: 45deg;--s-hover-transform: 35deg;--s-close-width: 11px;--s-close-height: 2px;cursor:pointer;background-color:var(--s-card-close-background-color, transparent);transition:all .3s ease}.card .card-close.hide[data-v-17093fb8]{display:none}.card .card-close[data-v-17093fb8]:before,.card .card-close[data-v-17093fb8]:after{content:"";width:var(--s-close-width, 11px);height:var(--s-close-height, 2px);background-color:var(--s-card-close-color, #555);transform-origin:center;position:inherit;border-radius:10px;top:calc(50% - var(--s-close-height, 2px) / 2);left:calc(50% - var(--s-close-width, 11px) / 2)}.card .card-close[data-v-17093fb8]:before{transform:rotate(var(--s-transform, 45deg))}.card .card-close[data-v-17093fb8]:after{transform:rotate(calc(0deg - var(--s-transform, 45deg)))}.card .card-close[data-v-17093fb8]:hover:before{transform:rotate(var(--s-hover-transform, 45deg))}.card .card-close[data-v-17093fb8]:hover:after{transform:rotate(calc(0deg - var(--s-hover-transform, 45deg)))}.card .card-content[data-v-17093fb8]{overflow:auto;height:100%}.card .card-content[data-v-17093fb8]:before{background:linear-gradient(90deg,transparent,var(--card-line-color, transparent),var(--card-line-color, transparent),transparent);content:"";display:block;position:sticky;top:0;width:100%;height:1px;z-index:10;transition:opacity .5s ease-in-out}:root{--tips-background-color: #4caf50;--tips-color: #ffffff;--tips-font-size: 8px;--tips-border-radius: 10;--tips-border-width: 3;--tips-offset: 4}.tips[data-v-d4e2f8f1]{display:flex;align-items:center;position:fixed;z-index:10;background-color:var(--tips-background-color);color:var(--tips-color);border-radius:calc(var(--tips-border-radius) * 1px);padding:2px 6px;border:calc(var(--tips-border-width) * 1px) solid var(--tips-color);font-weight:700;box-shadow:#0000001f -2px 2px 6px;font-size:var(--tips-font-size)}.tips.warning[data-v-d4e2f8f1],.tips.warn[data-v-d4e2f8f1]{--tips-background-color: #f44336}.tips.notice[data-v-d4e2f8f1]{--tips-background-color: #ff9800}.tips.simply[data-v-d4e2f8f1]{--tips-background-color: #00BCD4}.tips.animate[data-v-d4e2f8f1]{transition:all .3s}.tips-title[data-v-d4e2f8f1]{font-size:calc(var(--tips-font-size) + var(--tips-offset) * 1px);padding-right:3px}.tips-title[data-v-d4e2f8f1]:empty{display:none}.tips[static][data-v-d4e2f8f1]{position:static!important}.tips.arrow[data-v-d4e2f8f1]{--deg: 45deg}.tips.arrow[data-v-d4e2f8f1]:before{transition:all .3s;content:"";visibility:var(--tips-arrow);position:absolute;border:calc(var(--tips-border-width) * 1px) solid var(--tips-color);background-color:var(--tips-background-color);height:calc(var(--tips-border-width) * 2px + 2px);width:calc(var(--tips-border-width) * 2px + 2px);transform:rotate(var(--deg));transform-origin:50% 50%;border-left:0;border-top:0;z-index:-1;border-radius:3px}.tips.s-left[data-v-d4e2f8f1]:before{--deg: -45deg;right:calc(var(--arrow-size) * -1px - 1px)}.tips.s-right[data-v-d4e2f8f1]:before{--deg: 135deg;left:calc(var(--arrow-size) * -1px - 1px)}.tips.s-left[data-v-d4e2f8f1]:before,.tips.s-right[data-v-d4e2f8f1]:before{top:calc(var(--tips-arrow-top) * 1px)}.tips.s-top[data-v-d4e2f8f1]:before{bottom:calc(var(--arrow-size) * -1px - 1px)}.tips.s-bottom[data-v-d4e2f8f1]:before{--deg: -135deg;top:calc(var(--arrow-size) * -1px - 1px)}.tips.s-top[data-v-d4e2f8f1]:before,.tips.s-bottom[data-v-d4e2f8f1]:before{left:calc(var(--tips-arrow-left) * 1px)}
1
+ @charset "UTF-8";.flyweight[data-v-d5f1cd63]{height:var(--flyweight-h, 100%);width:var(--flyweight-w, 100%);overflow:auto;position:relative}.flyweight[hover-scroll][data-v-d5f1cd63]::-webkit-scrollbar-track,.flyweight[auto-scroll][data-v-d5f1cd63]::-webkit-scrollbar-track{border-radius:10px}.flyweight[hover-scroll][data-v-d5f1cd63]::-webkit-scrollbar-thumb,.flyweight[auto-scroll][data-v-d5f1cd63]::-webkit-scrollbar-thumb{border-radius:10px;background-color:transparent}.flyweight[hover-scroll][data-v-d5f1cd63]::-webkit-scrollbar,.flyweight[auto-scroll][data-v-d5f1cd63]::-webkit-scrollbar{border-radius:10px;width:var(--scrollbar-width, 8px);height:var(--scrollbar-width, 8px)}.flyweight[hover-scroll][data-v-d5f1cd63]:hover::-webkit-scrollbar-thumb,.flyweight[auto-scroll][data-v-d5f1cd63]::-webkit-scrollbar-thumb{border-style:dashed;border-color:transparent;border-width:2px;background-clip:padding-box;cursor:pointer}.flyweight[hover-scroll][data-v-d5f1cd63]:hover::-webkit-scrollbar-thumb:hover,.flyweight[auto-scroll][data-v-d5f1cd63]::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-color, #101010)}.flyweight[hover-scroll][data-v-d5f1cd63]:hover::-webkit-scrollbar-thumb,.flyweight[auto-scroll][data-v-d5f1cd63]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-color, #101010)}.flyweight[scroll-x] .flyweight-all[data-v-d5f1cd63]{width:var(--flyweight-content);height:auto;min-height:100%}.flyweight[scroll-x] .flyweight-all+*[data-v-d5f1cd63]{left:var(--flyweight-content);position:absolute;top:0;height:100%}.flyweight .flyweight-all[data-v-d5f1cd63]{height:var(--flyweight-content)}.flyweight .flyweight-all>*[data-v-d5f1cd63]{width:calc(var(--width));height:var(--height);position:absolute}@media screen and (-apple-system: Macintosh){.flyweight .flyweight-all[data-v-d5f1cd63]{background-color:red!important}}html [simply]{background-color:inherit;border:0!important}html [nothing]{margin:0!important;padding:0!important;border:0!important}html [flex],html [space],html [row],html [column]{display:flex}html [column]{flex-direction:column}html [row]{flex-direction:row}html [space]{justify-content:space-between}html [space=around]{justify-content:space-around}html [space=evenly]{justify-content:space-evenly}html [center]{justify-content:center}html [vcenter]{align-items:center}html [hand]{cursor:pointer}html [overflow]{overflow:auto!important}html [overflow=scroll]{overflow:scroll!important}.card[data-v-b1e09a6c]{--t: 0px;--r: 0px;--b: 0px;--l: 0px;--h: 100%;--w: 100%;--br: 1px;position:relative;background-color:var(--bg, var(--card-background-color, #fff));padding:var(--card-padding, 10px);border-radius:var(--card-border-radius, 10px);box-sizing:border-box;border-style:solid;border-color:var(--card-border-color, #555);border-width:var(--br);justify-content:flex-start;margin:var(--t) var(--r) var(--b) var(--l);height:calc(var(--h) - var(--t) - var(--b));width:calc(var(--w) - var(--l) - var(--r));overflow:auto}.card[hover-scroll][data-v-b1e09a6c]::-webkit-scrollbar-track,.card[auto-scroll][data-v-b1e09a6c]::-webkit-scrollbar-track{border-radius:10px}.card[hover-scroll][data-v-b1e09a6c]::-webkit-scrollbar-thumb,.card[auto-scroll][data-v-b1e09a6c]::-webkit-scrollbar-thumb{border-radius:10px;background-color:transparent}.card[hover-scroll][data-v-b1e09a6c]::-webkit-scrollbar,.card[auto-scroll][data-v-b1e09a6c]::-webkit-scrollbar{border-radius:10px;width:var(--scrollbar-width, 8px);height:var(--scrollbar-width, 8px)}.card[hover-scroll][data-v-b1e09a6c]:hover::-webkit-scrollbar-thumb,.card[auto-scroll][data-v-b1e09a6c]::-webkit-scrollbar-thumb{border-style:dashed;border-color:transparent;border-width:2px;background-clip:padding-box;cursor:pointer}.card[hover-scroll][data-v-b1e09a6c]:hover::-webkit-scrollbar-thumb:hover,.card[auto-scroll][data-v-b1e09a6c]::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-color, #101010)}.card[hover-scroll][data-v-b1e09a6c]:hover::-webkit-scrollbar-thumb,.card[auto-scroll][data-v-b1e09a6c]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-color, #101010)}.card .card[simply][data-v-b1e09a6c]{background-color:inherit;border:0!important}.card .card[nothing][data-v-b1e09a6c]{margin:0!important;padding:0!important;border:0!important}.card .card[flex][data-v-b1e09a6c],.card .card[space][data-v-b1e09a6c],.card .card[row][data-v-b1e09a6c],.card .card[column][data-v-b1e09a6c]{display:flex}.card .card[column][data-v-b1e09a6c]{flex-direction:column}.card .card[row][data-v-b1e09a6c]{flex-direction:row}.card .card[space][data-v-b1e09a6c]{justify-content:space-between}.card .card[space=around][data-v-b1e09a6c]{justify-content:space-around}.card .card[space=evenly][data-v-b1e09a6c]{justify-content:space-evenly}.card .card[center][data-v-b1e09a6c]{justify-content:center}.card .card[vcenter][data-v-b1e09a6c]{align-items:center}.card .card[hand][data-v-b1e09a6c]{cursor:pointer}.card .card[overflow][data-v-b1e09a6c]{overflow:auto!important}.card .card[overflow=scroll][data-v-b1e09a6c]{overflow:scroll!important}.card .card-title[data-v-b1e09a6c]{max-height:40px}.card .card-close[data-v-b1e09a6c]{position:relative;width:20px;height:20px;border-radius:10px;z-index:1;--s-transform: 45deg;--s-hover-transform: 35deg;--s-close-width: 11px;--s-close-height: 2px;cursor:pointer;background-color:var(--s-card-close-background-color, transparent);transition:all .3s ease}.card .card-close.hide[data-v-b1e09a6c]{display:none}.card .card-close[data-v-b1e09a6c]:before,.card .card-close[data-v-b1e09a6c]:after{content:"";display:block;width:var(--s-close-width, 11px);height:var(--s-close-height, 2px);background-color:var(--s-card-close-color, #555);transform-origin:center;position:absolute;border-radius:10px;top:calc(50% - var(--s-close-height, 2px) / 2);left:calc(50% - var(--s-close-width, 11px) / 2)}.card .card-close[data-v-b1e09a6c]:before{transform:rotate(var(--s-transform, 45deg))}.card .card-close[data-v-b1e09a6c]:after{transform:rotate(calc(0deg - var(--s-transform, 45deg)))}.card .card-close[data-v-b1e09a6c]:hover:before{transform:rotate(var(--s-hover-transform, 45deg))}.card .card-close[data-v-b1e09a6c]:hover:after{transform:rotate(calc(0deg - var(--s-hover-transform, 45deg)))}.card .card-content[data-v-b1e09a6c]{overflow:auto;height:100%}.card .card-content[data-v-b1e09a6c]:before{background:linear-gradient(90deg,transparent,var(--card-line-color, transparent),var(--card-line-color, transparent),transparent);content:"";display:block;position:sticky;top:0;width:100%;height:1px;z-index:10;transition:opacity .5s ease-in-out}:root{--tips-background-color: #4caf50;--tips-color: #ffffff;--tips-font-size: 8px;--tips-border-radius: 10;--tips-border-width: 3;--tips-offset: 4}.tips[data-v-f2043d4b]{display:flex;align-items:center;position:fixed;z-index:10;background-color:var(--tips-background-color);color:var(--tips-color);border-radius:calc(var(--tips-border-radius) * 1px);padding:2px 6px;border:calc(var(--tips-border-width) * 1px) solid var(--tips-color);font-weight:700;box-shadow:#0000001f -2px 2px 6px;font-size:var(--tips-font-size)}.tips.warning[data-v-f2043d4b],.tips.warn[data-v-f2043d4b]{--tips-background-color: #f44336}.tips.notice[data-v-f2043d4b]{--tips-background-color: #ff9800}.tips.simply[data-v-f2043d4b]{--tips-background-color: #00bcd4}.tips.animate[data-v-f2043d4b]{transition:all .3s}.tips-title[data-v-f2043d4b]{font-size:calc(var(--tips-font-size) + var(--tips-offset) * 1px);padding-right:3px}.tips-title[data-v-f2043d4b]:empty{display:none}.tips[static][data-v-f2043d4b]{position:static!important}.tips.arrow[data-v-f2043d4b]{--deg: 45deg}.tips.arrow[data-v-f2043d4b]:before{transition:all .3s;content:"";visibility:var(--tips-arrow);position:absolute;border:calc(var(--tips-border-width) * 1px) solid var(--tips-color);background-color:var(--tips-background-color);height:calc(var(--tips-border-width) * 2px + 2px);width:calc(var(--tips-border-width) * 2px + 2px);transform:rotate(var(--deg));transform-origin:50% 50%;border-left:0;border-top:0;z-index:-1;border-radius:3px}.tips.s-left[data-v-f2043d4b]:before{--deg: -45deg;right:calc(var(--arrow-size) * -1px - 1px)}.tips.s-right[data-v-f2043d4b]:before{--deg: 135deg;left:calc(var(--arrow-size) * -1px - 1px)}.tips.s-left[data-v-f2043d4b]:before,.tips.s-right[data-v-f2043d4b]:before{top:calc(var(--tips-arrow-top) * 1px)}.tips.s-top[data-v-f2043d4b]:before{bottom:calc(var(--arrow-size) * -1px - 1px)}.tips.s-bottom[data-v-f2043d4b]:before{--deg: -135deg;top:calc(var(--arrow-size) * -1px - 1px)}.tips.s-top[data-v-f2043d4b]:before,.tips.s-bottom[data-v-f2043d4b]:before{left:calc(var(--tips-arrow-left) * 1px)}.tips-top[data-v-f2043d4b],.tips-left[data-v-f2043d4b],.tips-right[data-v-f2043d4b],.tips-bottom[data-v-f2043d4b]{z-index:20160!important}