dpot-ui 0.1.4 → 0.1.6

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/dist/font.css ADDED
@@ -0,0 +1,141 @@
1
+ /* Euclid */
2
+ @font-face {
3
+ font-family: "Euclid";
4
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/euclid.ttf") format("truetype");
5
+ }
6
+
7
+ @font-face {
8
+ font-family: "Euclid";
9
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/euclidi.ttf") format("truetype");
10
+ font-style: italic;
11
+
12
+ }
13
+
14
+ @font-face {
15
+ font-family: "Euclid";
16
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/euclidb.ttf") format("truetype");
17
+ font-weight: bold;
18
+ }
19
+
20
+ @font-face {
21
+ font-family: "Euclid";
22
+ font-style: italic;
23
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/euclidbi.ttf") format("truetype");
24
+ font-weight: bold;
25
+ }
26
+
27
+ /* Euclid Symbol */
28
+ @font-face {
29
+ font-family: "Euclid Symbol";
30
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/eucsym.ttf") format("truetype");
31
+ }
32
+
33
+ @font-face {
34
+ font-family: "Euclid Symbol";
35
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/eucsymi.ttf") format("truetype");
36
+ font-style: italic;
37
+
38
+ }
39
+
40
+ @font-face {
41
+ font-family: "Euclid Symbol";
42
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/eucsymb.ttf") format("truetype");
43
+ font-weight: bold;
44
+ }
45
+
46
+ @font-face {
47
+ font-family: "Euclid Symbol";
48
+ font-style: italic;
49
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/eucsymbi.ttf") format("truetype");
50
+ font-weight: bold;
51
+ }
52
+
53
+ /* Euclid Extra */
54
+ @font-face {
55
+ font-family: "Euclid Extra";
56
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/euextra.ttf") format("truetype");
57
+ }
58
+
59
+ @font-face {
60
+ font-family: "Euclid Extra";
61
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/euextrab.ttf") format("truetype");
62
+ font-weight: bold;
63
+ }
64
+
65
+ /* Euclid Fraktur */
66
+ @font-face {
67
+ font-family: "Euclid Fraktur";
68
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/eufrak.ttf") format("truetype");
69
+ }
70
+
71
+ @font-face {
72
+ font-family: "Euclid Fraktur";
73
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/eufrakb.ttf") format("truetype");
74
+ font-weight: bold;
75
+ }
76
+
77
+ /* Euclid Math One */
78
+ @font-face {
79
+ font-family: "Euclid Math One";
80
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/eumat1.ttf") format("truetype");
81
+ }
82
+
83
+ @font-face {
84
+ font-family: "Euclid Math One";
85
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/eumat1b.ttf") format("truetype");
86
+ font-weight: bold;
87
+ }
88
+
89
+ /* Euclid Math Two */
90
+ @font-face {
91
+ font-family: "Euclid Math Two";
92
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/eumat2.ttf") format("truetype");
93
+ }
94
+
95
+ @font-face {
96
+ font-family: "Euclid Math Two";
97
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/eumat2b.ttf") format("truetype");
98
+ font-weight: bold;
99
+ }
100
+
101
+ /* Fences */
102
+ @font-face {
103
+ font-family: "Fences";
104
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/fences.ttf") format("truetype");
105
+ }
106
+
107
+ /* MT Extra Tiger */
108
+ @font-face {
109
+ font-family: "MT Extra Tiger";
110
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/Mt%20Extra%20Tiger.ttf") format("truetype");
111
+ }
112
+
113
+ /* MT Extra */
114
+ @font-face {
115
+ font-family: "MT Extra";
116
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/mtextra.ttf") format("truetype");
117
+ }
118
+
119
+ /* Symbol Tiger Expert */
120
+ @font-face {
121
+ font-family: "Symbol Tiger Expert";
122
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/Symbol%20Tiger%20Expert.ttf") format("truetype");
123
+ }
124
+
125
+ /* Symbol Tiger */
126
+ @font-face {
127
+ font-family: "Symbol Tiger";
128
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/Symbol%20Tiger.ttf") format("truetype");
129
+ }
130
+
131
+ /* Tiger Expert */
132
+ @font-face {
133
+ font-family: "Tiger Expert";
134
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/Tiger%20Expert.ttf") format("truetype");
135
+ }
136
+
137
+ /* Tiger */
138
+ @font-face {
139
+ font-family: "Tiger";
140
+ src: url("https://rainbow-pro-open.oss-cn-beijing.aliyuncs.com/static/fonts/mt/Tiger.ttf") format("truetype");
141
+ }
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- var x = function() {
1
+ var S = function() {
2
2
  var e = this, o = e.$createElement, r = e._self._c || o;
3
3
  return r("div", {
4
4
  class: ["dp-check_view_", e.value.includes(e.data.code) && "dp-check_view_checked_"],
@@ -15,37 +15,37 @@ var x = function() {
15
15
  }), r("span", {
16
16
  staticClass: "dp-check_name_"
17
17
  }, [e._v(e._s(e.data.name))])]);
18
- }, S = [];
19
- function h(e, o, r, t, n, l, a, i) {
20
- var s = typeof e == "function" ? e.options : e;
21
- o && (s.render = o, s.staticRenderFns = r, s._compiled = !0), t && (s.functional = !0), l && (s._scopeId = "data-v-" + l);
18
+ }, w = [];
19
+ function _(e, o, r, t, n, i, a, s) {
20
+ var l = typeof e == "function" ? e.options : e;
21
+ o && (l.render = o, l.staticRenderFns = r, l._compiled = !0), t && (l.functional = !0), i && (l._scopeId = "data-v-" + i);
22
22
  var c;
23
23
  if (a ? (c = function(d) {
24
24
  d = d || // cached call
25
25
  this.$vnode && this.$vnode.ssrContext || // stateful
26
26
  this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !d && typeof __VUE_SSR_CONTEXT__ < "u" && (d = __VUE_SSR_CONTEXT__), n && n.call(this, d), d && d._registeredComponents && d._registeredComponents.add(a);
27
- }, s._ssrRegister = c) : n && (c = i ? function() {
27
+ }, l._ssrRegister = c) : n && (c = s ? function() {
28
28
  n.call(
29
29
  this,
30
- (s.functional ? this.parent : this).$root.$options.shadowRoot
30
+ (l.functional ? this.parent : this).$root.$options.shadowRoot
31
31
  );
32
32
  } : n), c)
33
- if (s.functional) {
34
- s._injectStyles = c;
35
- var I = s.render;
36
- s.render = function($, p) {
37
- return c.call(p), I($, p);
33
+ if (l.functional) {
34
+ l._injectStyles = c;
35
+ var $ = l.render;
36
+ l.render = function(x, p) {
37
+ return c.call(p), $(x, p);
38
38
  };
39
39
  } else {
40
- var f = s.beforeCreate;
41
- s.beforeCreate = f ? [].concat(f, c) : [c];
40
+ var f = l.beforeCreate;
41
+ l.beforeCreate = f ? [].concat(f, c) : [c];
42
42
  }
43
43
  return {
44
44
  exports: e,
45
- options: s
45
+ options: l
46
46
  };
47
47
  }
48
- const w = {
48
+ const k = {
49
49
  name: "dp-check",
50
50
  props: {
51
51
  data: {
@@ -66,25 +66,25 @@ const w = {
66
66
  this.$emit("change", e, this.data.key);
67
67
  }
68
68
  }
69
- }, b = {};
70
- var k = /* @__PURE__ */ h(
71
- w,
72
- x,
69
+ }, g = {};
70
+ var D = /* @__PURE__ */ _(
71
+ k,
73
72
  S,
73
+ w,
74
74
  !1,
75
- D,
75
+ F,
76
76
  "1b8ae42a",
77
77
  null,
78
78
  null
79
79
  );
80
- function D(e) {
81
- for (let o in b)
82
- this[o] = b[o];
80
+ function F(e) {
81
+ for (let o in g)
82
+ this[o] = g[o];
83
83
  }
84
- const F = /* @__PURE__ */ function() {
85
- return k.exports;
84
+ const H = /* @__PURE__ */ function() {
85
+ return D.exports;
86
86
  }();
87
- var j = function() {
87
+ var O = function() {
88
88
  var e = this, o = e.$createElement, r = e._self._c || o;
89
89
  return r("div", {
90
90
  class: ["dp-radio_view_", e.value === e.data.code && "dp-radio_view_checked_"],
@@ -101,8 +101,8 @@ var j = function() {
101
101
  }), r("span", {
102
102
  staticClass: "dp-radio_name_"
103
103
  }, [e._v(e._s(e.data.name))])]);
104
- }, H = [];
105
- const O = {
104
+ }, j = [];
105
+ const E = {
106
106
  name: "dp-radio",
107
107
  props: {
108
108
  data: {
@@ -122,25 +122,25 @@ const O = {
122
122
  this.$emit("change", this.data.code, this.data.key);
123
123
  }
124
124
  }
125
- }, g = {};
126
- var E = /* @__PURE__ */ h(
125
+ }, b = {};
126
+ var M = /* @__PURE__ */ _(
127
+ E,
127
128
  O,
128
129
  j,
129
- H,
130
130
  !1,
131
- M,
131
+ R,
132
132
  "e7bf9628",
133
133
  null,
134
134
  null
135
135
  );
136
- function M(e) {
137
- for (let o in g)
138
- this[o] = g[o];
136
+ function R(e) {
137
+ for (let o in b)
138
+ this[o] = b[o];
139
139
  }
140
- const R = /* @__PURE__ */ function() {
141
- return E.exports;
140
+ const T = /* @__PURE__ */ function() {
141
+ return M.exports;
142
142
  }();
143
- var T = function() {
143
+ var L = function() {
144
144
  var e = this, o = e.$createElement, r = e._self._c || o;
145
145
  return r("div", {
146
146
  staticClass: "dp-checkfilter_view_"
@@ -183,8 +183,8 @@ var T = function() {
183
183
  const z = {
184
184
  name: "dp-checkfilter",
185
185
  components: {
186
- DpCheck: F,
187
- DpRadio: R
186
+ DpCheck: H,
187
+ DpRadio: T
188
188
  },
189
189
  props: {
190
190
  title: {
@@ -213,25 +213,25 @@ const z = {
213
213
  this.$emit("change", { key: o, value: [e].flat() });
214
214
  }
215
215
  }
216
- }, y = {};
217
- var K = /* @__PURE__ */ h(
216
+ }, v = {};
217
+ var K = /* @__PURE__ */ _(
218
218
  z,
219
- T,
219
+ L,
220
220
  W,
221
221
  !1,
222
- L,
222
+ B,
223
223
  "20c78138",
224
224
  null,
225
225
  null
226
226
  );
227
- function L(e) {
228
- for (let o in y)
229
- this[o] = y[o];
227
+ function B(e) {
228
+ for (let o in v)
229
+ this[o] = v[o];
230
230
  }
231
- const B = /* @__PURE__ */ function() {
231
+ const P = /* @__PURE__ */ function() {
232
232
  return K.exports;
233
233
  }();
234
- var P = function() {
234
+ var A = function() {
235
235
  var e = this, o = e.$createElement, r = e._self._c || o;
236
236
  return r("li", {
237
237
  class: ["dp-table_header_item_ dp-table_header_item_height_", e.item.children ? "dp-table_header_item_group_" : "dp-table_header_item_border_", e.item.sortKey && "dp-table_header_item_cursor_"],
@@ -272,11 +272,11 @@ var P = function() {
272
272
  changeSort: e.handleItemClick,
273
273
  changeFilter: e.handleChangeFilter
274
274
  },
275
- scopedSlots: e._u([e._l(e.$slots, function(n, l) {
275
+ scopedSlots: e._u([e._l(e.$slots, function(n, i) {
276
276
  return {
277
- key: l,
277
+ key: i,
278
278
  fn: function() {
279
- return [e._t(l)];
279
+ return [e._t(i)];
280
280
  },
281
281
  proxy: !0
282
282
  };
@@ -301,11 +301,11 @@ var P = function() {
301
301
  class: ["dp-table_header_item_sort_", e.sortInfo.target.join("_") === e.fullCode.join("_") && e.sortInfo.value === "up" && "dp-table_header_item_sort_up_", e.sortInfo.target.join("_") === e.fullCode.join("_") && e.sortInfo.value === "down" && "dp-table_header_item_sort_down_"]
302
302
  }) : e._e()]];
303
303
  })], 2);
304
- }, A = [];
305
- const N = {
304
+ }, N = [];
305
+ const q = {
306
306
  name: "dp-table-header-item",
307
307
  components: {
308
- DpCheckfilter: B
308
+ DpCheckfilter: P
309
309
  },
310
310
  props: {
311
311
  item: {
@@ -353,34 +353,34 @@ const N = {
353
353
  beforeUnMounted() {
354
354
  this.resizer && this.resizer.unobserve(this.$el);
355
355
  }
356
- }, v = {};
357
- var U = /* @__PURE__ */ h(
358
- N,
359
- P,
356
+ }, y = {};
357
+ var U = /* @__PURE__ */ _(
358
+ q,
360
359
  A,
360
+ N,
361
361
  !1,
362
- q,
362
+ V,
363
363
  "5cf7a766",
364
364
  null,
365
365
  null
366
366
  );
367
- function q(e) {
368
- for (let o in v)
369
- this[o] = v[o];
367
+ function V(e) {
368
+ for (let o in y)
369
+ this[o] = y[o];
370
370
  }
371
- const V = /* @__PURE__ */ function() {
371
+ const X = /* @__PURE__ */ function() {
372
372
  return U.exports;
373
373
  }(), u = (e, o, r) => {
374
374
  const t = e[r];
375
375
  if (!t.isFixed || !o[t.code])
376
376
  return {};
377
- const n = (a) => typeof a == "number" ? [a] : Object.values(a).map((i) => n(i)).flat();
378
- return { position: "sticky", left: `${e.filter((a, i) => i < r && a.isFixed).map((a) => n(o[a.code])).reduce((a, i) => parseFloat(a) + parseFloat(i), 0)}px` };
379
- }, _ = (e, o, r) => {
377
+ const n = (a) => typeof a == "number" ? [a] : Object.values(a).map((s) => n(s)).flat();
378
+ return { position: "sticky", left: `${e.filter((a, s) => s < r && a.isFixed).map((a) => n(o[a.code])).reduce((a, s) => parseFloat(a) + parseFloat(s), 0)}px` };
379
+ }, h = (e, o, r) => {
380
380
  const t = e[o[0]];
381
- return o.length > 1 ? _(t, o.slice(1)) : e[r] || t;
381
+ return o.length > 1 ? h(t, o.slice(1)) : e[r] || t;
382
382
  };
383
- var X = function() {
383
+ var G = function() {
384
384
  var e = this, o = e.$createElement, r = e._self._c || o;
385
385
  return r("ul", {
386
386
  staticClass: "dp-table_header_view_",
@@ -406,7 +406,7 @@ var X = function() {
406
406
  changeSort: e.handleChangeSort,
407
407
  changeFilter: e.handleChangeFilter
408
408
  },
409
- scopedSlots: e._u([e._l(e.$slots, function(l, a) {
409
+ scopedSlots: e._u([e._l(e.$slots, function(i, a) {
410
410
  return {
411
411
  key: a,
412
412
  fn: function() {
@@ -417,11 +417,11 @@ var X = function() {
417
417
  })], null, !0)
418
418
  });
419
419
  }), 1);
420
- }, G = [];
421
- const J = {
420
+ }, J = [];
421
+ const Q = {
422
422
  name: "dp-table-header",
423
423
  components: {
424
- DpItem: V
424
+ DpItem: X
425
425
  },
426
426
  props: {
427
427
  // 表头数据
@@ -479,24 +479,24 @@ const J = {
479
479
  }
480
480
  }
481
481
  }, m = {};
482
- var Q = /* @__PURE__ */ h(
483
- J,
484
- X,
482
+ var Y = /* @__PURE__ */ _(
483
+ Q,
485
484
  G,
485
+ J,
486
486
  !1,
487
- Y,
487
+ Z,
488
488
  "2293b374",
489
489
  null,
490
490
  null
491
491
  );
492
- function Y(e) {
492
+ function Z(e) {
493
493
  for (let o in m)
494
494
  this[o] = m[o];
495
495
  }
496
- const Z = /* @__PURE__ */ function() {
497
- return Q.exports;
496
+ const ee = /* @__PURE__ */ function() {
497
+ return Y.exports;
498
498
  }();
499
- var ee = function() {
499
+ var te = function() {
500
500
  var e = this, o = e.$createElement, r = e._self._c || o;
501
501
  return r("div", {
502
502
  staticClass: "dp-table_view_border_",
@@ -555,12 +555,12 @@ var ee = function() {
555
555
  return e.handleChangeFlag(!1);
556
556
  }
557
557
  }
558
- }, [e._l(e.deepHeadData, function(n, l) {
558
+ }, [e._l(e.deepHeadData, function(n, i) {
559
559
  return [t[n.code] instanceof Object ? [t[n.code].slot ? r("div", {
560
560
  class: ["dp-table_body_item_group_col_", n.isFixed && "dp-table_fixed_bg_", !!e.scrollLeft && "dp-table_fixed_shadow_"],
561
561
  style: Object.assign({
562
562
  borderColor: e.borderColor
563
- }, n.style, n.colStyle, e.computEvenColor(t.__sub), e.fixedStyle[l], e.computWidth(t[n.code]))
563
+ }, n.style, n.colStyle, e.computEvenColor(t.__sub), e.fixedStyle[i], e.computWidth(t[n.code]))
564
564
  }, e._l([t[n.code].slot].flat(), function(a) {
565
565
  return r("div", {
566
566
  key: a,
@@ -579,10 +579,10 @@ var ee = function() {
579
579
  class: ["dp-table_body_item_group_col_", n.isFixed && "dp-table_fixed_bg_", !!e.scrollLeft && "dp-table_fixed_shadow_"],
580
580
  style: Object.assign({
581
581
  borderColor: e.borderColor
582
- }, n.style, n.colStyle, e.computEvenColor(t.__sub), e.fixedStyle[l], e.computWidth(t[n.code]))
583
- }, e._l([t[n.code].raw].flat(), function(a, i) {
582
+ }, n.style, n.colStyle, e.computEvenColor(t.__sub), e.fixedStyle[i], e.computWidth(t[n.code]))
583
+ }, e._l([t[n.code].raw].flat(), function(a, s) {
584
584
  return r("div", {
585
- key: i,
585
+ key: s,
586
586
  staticClass: "dp-table_body_item_child_",
587
587
  style: Object.assign({
588
588
  borderColor: e.borderColor,
@@ -599,10 +599,10 @@ var ee = function() {
599
599
  class: ["dp-table_body_item_group_col_", n.isFixed && "dp-table_fixed_bg_", !!e.scrollLeft && "dp-table_fixed_shadow_"],
600
600
  style: Object.assign({
601
601
  borderColor: e.borderColor
602
- }, n.style, n.colStyle, e.computEvenColor(t.__sub), e.fixedStyle[l], e.computWidth(t[n.code]))
603
- }, e._l([t[n.code].value].flat(), function(a, i) {
602
+ }, n.style, n.colStyle, e.computEvenColor(t.__sub), e.fixedStyle[i], e.computWidth(t[n.code]))
603
+ }, e._l([t[n.code].value].flat(), function(a, s) {
604
604
  return r("div", {
605
- key: i,
605
+ key: s,
606
606
  staticClass: "dp-table_body_item_child_",
607
607
  style: Object.assign({
608
608
  borderColor: e.borderColor,
@@ -618,7 +618,7 @@ var ee = function() {
618
618
  borderColor: e.borderColor,
619
619
  padding: e.itemPadding,
620
620
  justifyContent: e.dir
621
- }, n.style, n.colStyle, e.computEvenColor(t.__sub), e.fixedStyle[l])
621
+ }, n.style, n.colStyle, e.computEvenColor(t.__sub), e.fixedStyle[i])
622
622
  }, [e._v(e._s(t[n.code]))])];
623
623
  }), t.__isTotalData ? r("span", {
624
624
  staticClass: "dp-table_total_border_",
@@ -627,11 +627,11 @@ var ee = function() {
627
627
  }
628
628
  }) : e._e()], 2);
629
629
  }), 0)], 1)]);
630
- }, te = [];
631
- const oe = {
630
+ }, oe = [];
631
+ const re = {
632
632
  name: "dp-table",
633
633
  components: {
634
- DpHeader: Z
634
+ DpHeader: ee
635
635
  },
636
636
  props: {
637
637
  // 边框颜色
@@ -724,7 +724,7 @@ const oe = {
724
724
  return e.length ? [...this.bodyData].filter((o) => {
725
725
  let r = !0;
726
726
  return e.some((t) => {
727
- if (!t.value.includes(_(o, t.target, t.filterKey)))
727
+ if (!t.value.includes(h(o, t.target, t.filterKey)))
728
728
  return r = !1, !0;
729
729
  }), r;
730
730
  }) : this.bodyData;
@@ -736,17 +736,17 @@ const oe = {
736
736
  // 表体渲染数据
737
737
  resultData() {
738
738
  return Object.keys(this.widthInfo).length < this.headData.length || !this.headData.length ? [] : (this.sortInfo.value ? [...this.filterBodyData].sort((o, r) => {
739
- const t = _(o, this.sortInfo.target, this.sortInfo.sortKey), n = _(r, this.sortInfo.target, this.sortInfo.sortKey);
739
+ const t = h(o, this.sortInfo.target, this.sortInfo.sortKey), n = h(r, this.sortInfo.target, this.sortInfo.sortKey);
740
740
  return this.sortInfo.value === "up" ? t - n : n - t;
741
741
  }) : this.filterBodyData).slice(this.beforeIndex, this.currentIndex).concat(this.totalData ? [{ ...this.totalData, __sub: "", __isTotalData: !0 }] : []).map((o, r) => {
742
742
  const t = this.handleComputItem(o);
743
743
  return Object.keys(t).forEach((n) => {
744
744
  if (t[n] instanceof Object && (t[n].merge || 0) > 1) {
745
- const l = this.deepHeadData.findIndex((i) => i.code === n), a = this.deepHeadData.slice(l, l + t[n].merge);
746
- a.forEach((i) => {
747
- const s = t[i.code];
748
- s instanceof Object || (t[i.code] = { value: s }), t[i.code] = { ...t[i.code], isMergeIgnored: !0 };
749
- }), t[n].isMerge = !0, t[n].width = a.map((i) => this.widthInfo[i.code]).reduce((i, s) => i + s, 0);
745
+ const i = this.deepHeadData.findIndex((s) => s.code === n), a = this.deepHeadData.slice(i, i + t[n].merge);
746
+ a.forEach((s) => {
747
+ const l = t[s.code];
748
+ l instanceof Object || (t[s.code] = { value: l }), t[s.code] = { ...t[s.code], isMergeIgnored: !0 };
749
+ }), t[n].isMerge = !0, t[n].width = a.map((s) => this.widthInfo[s.code]).reduce((s, l) => s + l, 0);
750
750
  }
751
751
  }), {
752
752
  __sub: r + parseInt(this.basicSub) + this.beforeIndex,
@@ -771,7 +771,7 @@ const oe = {
771
771
  },
772
772
  watch: {
773
773
  bodyData() {
774
- this.$refs.table.scrollTop = 0, this.$refs.table.scrollLeft = 0, this.scrollLeft = 0, this.beforeIndex = 0, this.currentIndex = 30;
774
+ this.$refs.table.scrollTop = 0, this.$refs.table.scrollLeft = 0, this.scrollLeft = 0, this.beforeIndex = 0, this.currentIndex = 50;
775
775
  },
776
776
  filterBodyData() {
777
777
  this.handleComputItemHeight();
@@ -781,7 +781,7 @@ const oe = {
781
781
  return {
782
782
  widthInfo: {},
783
783
  scrollLeft: 0,
784
- currentIndex: 30,
784
+ currentIndex: 50,
785
785
  beforeIndex: 0,
786
786
  timer: null,
787
787
  hoverFlag: !1,
@@ -809,8 +809,8 @@ const oe = {
809
809
  if (this.rowHeight)
810
810
  r = this.rowHeight;
811
811
  else if (this.rowItemHeight) {
812
- const t = {}, n = (a, i) => {
813
- i.children ? i.children.forEach((s) => n((a || {})[s.code], { ...s, code: `${i.code}_${s.code}` })) : t[i.code] = a;
812
+ const t = {}, n = (a, s) => {
813
+ s.children ? s.children.forEach((l) => n((a || {})[l.code], { ...l, code: `${s.code}_${l.code}` })) : t[s.code] = a;
814
814
  };
815
815
  this.headData.forEach((a) => n(e[a.code], a)), r = Math.max(...this.deepHeadData.map((a) => t[a.code] instanceof Object ? t[a.code].slot ? [t[a.code].slot].flat().length : t[a.code].raw ? [t[a.code].raw].flat().length : t[a.code].value ? [t[a.code].value].flat().length : 1 : 1)) * this.rowItemHeight;
816
816
  }
@@ -825,7 +825,7 @@ const oe = {
825
825
  handleComputItem(e) {
826
826
  let o = {};
827
827
  const r = (t, n) => {
828
- n.children ? n.children.forEach((l) => r((t || {})[l.code], { ...l, code: `${n.code}_${l.code}` })) : o[n.code] = t;
828
+ n.children ? n.children.forEach((i) => r((t || {})[i.code], { ...i, code: `${n.code}_${i.code}` })) : o[n.code] = t;
829
829
  };
830
830
  return this.headData.filter((t) => t.children).forEach((t) => r(e[t.code], t)), o;
831
831
  },
@@ -834,13 +834,13 @@ const oe = {
834
834
  this.scrollLeft = e.target.scrollLeft, clearTimeout(this.timer), this.timer = setTimeout(() => {
835
835
  const o = e.target.scrollTop - this.$el.offsetHeight / 2;
836
836
  if (this.rowHeight)
837
- this.beforeIndex = Math.max(Math.floor(o / this.rowHeight), 0), this.currentIndex = Math.max(this.beforeIndex + Math.ceil(this.$el.offsetHeight / this.rowHeight) * 2, 30);
837
+ this.beforeIndex = Math.max(Math.floor(o / this.rowHeight), 0), this.currentIndex = Math.max(this.beforeIndex + Math.ceil(this.$el.offsetHeight / this.rowHeight) * 3, 50);
838
838
  else {
839
839
  let r = 0;
840
840
  this.beforeIndex = this.fullHeightInfo.findIndex((t) => {
841
841
  const n = r + t >= o;
842
842
  return n || (r += t), n;
843
- }), this.currentIndex = Math.min(this.beforeIndex + 30, this.filterBodyData.length);
843
+ }), this.currentIndex = Math.min(this.beforeIndex + 50, this.filterBodyData.length);
844
844
  }
845
845
  }, 10);
846
846
  },
@@ -859,34 +859,87 @@ const oe = {
859
859
  },
860
860
  // 操作筛选
861
861
  handleChangeFilter(e) {
862
- this.filterInfo = { ...this.filterInfo, ...e }, this.beforeIndex = 0, this.currentIndex = 30, this.$refs.table.scrollTop = 0, this.$emit("changeFilter", Object.values(this.filterInfo).map((o) => ({ key: o.key, value: o.value })));
862
+ this.filterInfo = { ...this.filterInfo, ...e }, this.beforeIndex = 0, this.currentIndex = 50, this.$refs.table.scrollTop = 0, this.$emit("changeFilter", Object.values(this.filterInfo).map((o) => ({ key: o.key, value: o.value })));
863
863
  }
864
864
  }
865
865
  }, C = {};
866
- var re = /* @__PURE__ */ h(
867
- oe,
868
- ee,
866
+ var ne = /* @__PURE__ */ _(
867
+ re,
869
868
  te,
869
+ oe,
870
870
  !1,
871
- ne,
872
- "1473e8c5",
871
+ ae,
872
+ "47d779f0",
873
873
  null,
874
874
  null
875
875
  );
876
- function ne(e) {
876
+ function ae(e) {
877
877
  for (let o in C)
878
878
  this[o] = C[o];
879
879
  }
880
- const ae = /* @__PURE__ */ function() {
881
- return re.exports;
882
- }(), ie = [
883
- ae
884
- ], se = {
880
+ const se = /* @__PURE__ */ function() {
881
+ return ne.exports;
882
+ }();
883
+ var ie = function() {
884
+ var e = this, o = e.$createElement, r = e._self._c || o;
885
+ return r("div", {
886
+ staticClass: "problem-raw",
887
+ domProps: {
888
+ innerHTML: e._s(e.data)
889
+ }
890
+ });
891
+ }, le = [];
892
+ const de = {
893
+ name: "dp-raw",
894
+ props: {
895
+ data: String
896
+ },
897
+ mounted() {
898
+ this.computSvgDom();
899
+ },
900
+ methods: {
901
+ computSvgDom() {
902
+ const e = ["width", "height"];
903
+ [...this.$el.querySelectorAll("img")].filter((r) => /.svg$/i.test(r.src)).forEach(async (r) => {
904
+ const t = await fetch(r.src).then(async (n) => await n.text());
905
+ if (t) {
906
+ const n = document.createElement("span");
907
+ r.replaceWith(n);
908
+ const i = document.createElement("span");
909
+ i.innerHTML = t, [...r.attributes].filter((s) => s.value && s.name !== "src").forEach((s) => {
910
+ e.includes(s.name) ? i.style[s.name] = s.value : i[s.name] = s.value;
911
+ }), i.style.display = "inline-block", i.style.fontSize = "0", i.setAttribute("part", "__svg_view__"), n.attachShadow({ mode: "open" }).append(i);
912
+ }
913
+ });
914
+ }
915
+ }
916
+ }, I = {};
917
+ var ce = /* @__PURE__ */ _(
918
+ de,
919
+ ie,
920
+ le,
921
+ !1,
922
+ _e,
923
+ "65587794",
924
+ null,
925
+ null
926
+ );
927
+ function _e(e) {
928
+ for (let o in I)
929
+ this[o] = I[o];
930
+ }
931
+ const he = /* @__PURE__ */ function() {
932
+ return ce.exports;
933
+ }(), ue = [
934
+ se,
935
+ he
936
+ ], fe = {
885
937
  install: (e) => {
886
- ie.forEach((o) => e.component(o.name, o));
938
+ ue.forEach((o) => e.component(o.name, o));
887
939
  }
888
940
  };
889
941
  export {
890
- ae as Table,
891
- se as default
942
+ he as Raw,
943
+ se as Table,
944
+ fe as default
892
945
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .dp-check_view_[data-v-1b8ae42a]{font-size:14px;padding:5px 10px;min-width:60px;display:flex;cursor:pointer}.dp-check_view_[data-v-1b8ae42a]:hover{background-color:#e8e8e8}.dp-check_view_[disabled][data-v-1b8ae42a]{pointer-events:none}.dp-check_tag_[data-v-1b8ae42a]{width:14px;height:14px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #999;margin-right:10px;transform:translateY(1px)}.dp-check_name_[data-v-1b8ae42a]{white-space:break-spaces}.dp-check_view_checked_ .dp-check_tag_[data-v-1b8ae42a]{border-color:#fe8227;background-color:#fe8227}.dp-check_view_checked_ .dp-check_tag_[data-v-1b8ae42a]:before{content:"";width:9px;height:5px;border-bottom:1px solid #fff;border-left:1px solid #fff;transform:rotate(-45deg) translate(1px,-1px)}.dp-check_view_checked_ .dp-check_name_[data-v-1b8ae42a]{color:#fe8227}.dp-radio_view_[data-v-e7bf9628]{font-size:14px;padding:5px 10px;min-width:60px;display:flex;cursor:pointer}.dp-radio_view_[data-v-e7bf9628]:hover{background-color:#e8e8e8}.dp-radio_view_[disabled][data-v-e7bf9628]{pointer-events:none}.dp-radio_tag_[data-v-e7bf9628]{width:14px;height:14px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #999;margin-right:10px;transform:translateY(1px)}.dp-radio_name_[data-v-e7bf9628]{white-space:break-spaces}.dp-radio_view_checked_ .dp-radio_tag_[data-v-e7bf9628]{border-color:#fe8227}.dp-radio_view_checked_ .dp-radio_tag_[data-v-e7bf9628]:before{content:"";width:10px;height:10px;border-radius:50%;background-color:#fe8227}.dp-radio_view_checked_ .dp-radio_name_[data-v-e7bf9628]{color:#fe8227}.dp-checkfilter_view_[data-v-20c78138]{display:flex;align-items:center;justify-content:center;padding:10px 0;position:relative;cursor:pointer}.dp-checkfilter_arrow_[data-v-20c78138]{position:relative;width:6px;height:6px;margin:0 10px;border-bottom:2px solid #999;border-left:2px solid #999;transform:rotate(-45deg) translateY(-2px);transition:all .1s}.dp-checkfilter_option_view_[data-v-20c78138]{overflow:hidden;visibility:hidden;position:absolute;z-index:1000;left:0;top:100%;width:100%;border-radius:5px;box-shadow:3px 3px 10px #c3c3c3;transform:scaleY(0);transform-origin:top;transition:all .1s}.dp-checkfilter_title_checked_[data-v-20c78138]{color:#fe8227}.dp-checkfilter_view_:hover .dp-checkfilter_arrow_[data-v-20c78138]{transform:rotate(135deg) translate(3px,-3px)}.dp-checkfilter_view_:hover .dp-checkfilter_option_view_[data-v-20c78138]{transform:scale(1);overflow:visible;visibility:inherit}.dp-checkfilter_option_view_[data-v-20c78138]:before{content:"";position:absolute;left:calc(50% - 4px);top:-4px;width:8px;height:8px;background-color:#fff;box-shadow:3px 3px 10px #c3c3c3;transform:rotate(45deg)}.dp-checkfilter_option_list_[data-v-20c78138]{max-height:400px;overflow:auto;border-radius:5px;background-color:#fff;position:relative;z-index:2}.dp-table_header_item_height_[data-v-5cf7a766]{min-height:40px}.dp-table_header_item_[data-v-5cf7a766]{white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;box-sizing:border-box;text-align:center;flex-shrink:0}.dp-table_header_item_group_[data-v-5cf7a766]{flex-direction:column;align-items:stretch}.dp-table_header_item_group_title_[data-v-5cf7a766]{display:flex;align-items:center;justify-content:center}.dp-table_header_item_border_[data-v-5cf7a766]{border-right:1px solid;border-bottom:1px solid;padding:3px 10px}.dp-table_header_item_child_[data-v-5cf7a766]{display:flex}.dp-table_header_item_sort_[data-v-5cf7a766]{display:inline-flex;flex-direction:column;align-items:center;justify-content:space-between;width:16px;height:12px}.dp-table_header_item_sort_[data-v-5cf7a766]:before,.dp-table_header_item_sort_[data-v-5cf7a766]:after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent}.dp-table_header_item_sort_[data-v-5cf7a766]:before{border-bottom:5px solid #999}.dp-table_header_item_sort_[data-v-5cf7a766]:after{border-top:5px solid #999}.dp-table_header_item_sort_up_[data-v-5cf7a766]:before{border-bottom-color:#fe8227}.dp-table_header_item_sort_down_[data-v-5cf7a766]:after{border-top-color:#fe8227}.dp-table_header_item_cursor_[data-v-5cf7a766]{cursor:pointer}.dp-table_header_filter_view_[data-v-5cf7a766]{flex:1}.dp-table_header_view_[data-v-2293b374]{flex-shrink:0;display:inline-flex;border-top:1px solid;position:sticky;z-index:3;top:0;user-select:none}.dp-table_fixed_bg_[data-v-2293b374]{background-color:#fff}.dp-table_fixed_bg_.dp-table_fixed_shadow_[data-v-2293b374]{box-shadow:5px 0 8px -3px #e3e3e3}.dp-table_view_border_[data-v-1473e8c5]{border:1px solid;border-top:0;display:inline-block!important;max-width:100%;font-size:0}.dp-table_view_[data-v-1473e8c5]{display:inline-block;max-width:100%;overflow:auto;max-height:80vh;font-size:0;position:relative;box-sizing:border-box}.dp-table_body_view_[data-v-1473e8c5]{display:inline-flex;flex-direction:column;box-sizing:border-box;min-height:50px}.dp-table_body_view_[data-v-1473e8c5]:empty{display:flex;align-items:center;justify-content:center}.dp-table_body_view_[data-v-1473e8c5]:empty:before{content:"\6682\65e0\6570\636e";line-height:2;color:#999}.dp-table_view_>*[data-v-1473e8c5]{font-size:14px}.dp-table_body_item_[data-v-1473e8c5]{display:inline-flex}.dp-table_fixed_bg_[data-v-1473e8c5]{background-color:#fff}.dp-table_fixed_bg_.dp-table_fixed_shadow_[data-v-1473e8c5]{box-shadow:5px 0 8px -3px #e3e3e3}.dp-table_body_item_group_col_[data-v-1473e8c5]{display:flex;flex-direction:column}.dp-table_body_item_group_col_>*[data-v-1473e8c5]{flex:1}.dp-table_body_item_child_[data-v-1473e8c5]{flex-shrink:0;display:flex;align-items:center;justify-content:center;text-align:center;border-right:1px solid;border-bottom:1px solid;box-sizing:border-box;overflow:hidden}.dp-table_total_view_[data-v-1473e8c5]{position:sticky;bottom:0;display:inline-flex;background-color:#fff;overflow:visible}.dp-table_total_border_[data-v-1473e8c5]{position:absolute;left:0;top:-1px;color:inherit;z-index:4;width:100%;border-top:1px solid}
1
+ .dp-check_view_[data-v-1b8ae42a]{font-size:14px;padding:5px 10px;min-width:60px;display:flex;cursor:pointer}.dp-check_view_[data-v-1b8ae42a]:hover{background-color:#e8e8e8}.dp-check_view_[disabled][data-v-1b8ae42a]{pointer-events:none}.dp-check_tag_[data-v-1b8ae42a]{width:14px;height:14px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #999;margin-right:10px;transform:translateY(1px)}.dp-check_name_[data-v-1b8ae42a]{white-space:break-spaces}.dp-check_view_checked_ .dp-check_tag_[data-v-1b8ae42a]{border-color:#fe8227;background-color:#fe8227}.dp-check_view_checked_ .dp-check_tag_[data-v-1b8ae42a]:before{content:"";width:9px;height:5px;border-bottom:1px solid #fff;border-left:1px solid #fff;transform:rotate(-45deg) translate(1px,-1px)}.dp-check_view_checked_ .dp-check_name_[data-v-1b8ae42a]{color:#fe8227}.dp-radio_view_[data-v-e7bf9628]{font-size:14px;padding:5px 10px;min-width:60px;display:flex;cursor:pointer}.dp-radio_view_[data-v-e7bf9628]:hover{background-color:#e8e8e8}.dp-radio_view_[disabled][data-v-e7bf9628]{pointer-events:none}.dp-radio_tag_[data-v-e7bf9628]{width:14px;height:14px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #999;margin-right:10px;transform:translateY(1px)}.dp-radio_name_[data-v-e7bf9628]{white-space:break-spaces}.dp-radio_view_checked_ .dp-radio_tag_[data-v-e7bf9628]{border-color:#fe8227}.dp-radio_view_checked_ .dp-radio_tag_[data-v-e7bf9628]:before{content:"";width:10px;height:10px;border-radius:50%;background-color:#fe8227}.dp-radio_view_checked_ .dp-radio_name_[data-v-e7bf9628]{color:#fe8227}.dp-checkfilter_view_[data-v-20c78138]{display:flex;align-items:center;justify-content:center;padding:10px 0;position:relative;cursor:pointer}.dp-checkfilter_arrow_[data-v-20c78138]{position:relative;width:6px;height:6px;margin:0 10px;border-bottom:2px solid #999;border-left:2px solid #999;transform:rotate(-45deg) translateY(-2px);transition:all .1s}.dp-checkfilter_option_view_[data-v-20c78138]{overflow:hidden;visibility:hidden;position:absolute;z-index:1000;left:0;top:100%;width:100%;border-radius:5px;box-shadow:3px 3px 10px #c3c3c3;transform:scaleY(0);transform-origin:top;transition:all .1s}.dp-checkfilter_title_checked_[data-v-20c78138]{color:#fe8227}.dp-checkfilter_view_:hover .dp-checkfilter_arrow_[data-v-20c78138]{transform:rotate(135deg) translate(3px,-3px)}.dp-checkfilter_view_:hover .dp-checkfilter_option_view_[data-v-20c78138]{transform:scale(1);overflow:visible;visibility:inherit}.dp-checkfilter_option_view_[data-v-20c78138]:before{content:"";position:absolute;left:calc(50% - 4px);top:-4px;width:8px;height:8px;background-color:#fff;box-shadow:3px 3px 10px #c3c3c3;transform:rotate(45deg)}.dp-checkfilter_option_list_[data-v-20c78138]{max-height:400px;overflow:auto;border-radius:5px;background-color:#fff;position:relative;z-index:2}.dp-table_header_item_height_[data-v-5cf7a766]{min-height:40px}.dp-table_header_item_[data-v-5cf7a766]{white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;box-sizing:border-box;text-align:center;flex-shrink:0}.dp-table_header_item_group_[data-v-5cf7a766]{flex-direction:column;align-items:stretch}.dp-table_header_item_group_title_[data-v-5cf7a766]{display:flex;align-items:center;justify-content:center}.dp-table_header_item_border_[data-v-5cf7a766]{border-right:1px solid;border-bottom:1px solid;padding:3px 10px}.dp-table_header_item_child_[data-v-5cf7a766]{display:flex}.dp-table_header_item_sort_[data-v-5cf7a766]{display:inline-flex;flex-direction:column;align-items:center;justify-content:space-between;width:16px;height:12px}.dp-table_header_item_sort_[data-v-5cf7a766]:before,.dp-table_header_item_sort_[data-v-5cf7a766]:after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent}.dp-table_header_item_sort_[data-v-5cf7a766]:before{border-bottom:5px solid #999}.dp-table_header_item_sort_[data-v-5cf7a766]:after{border-top:5px solid #999}.dp-table_header_item_sort_up_[data-v-5cf7a766]:before{border-bottom-color:#fe8227}.dp-table_header_item_sort_down_[data-v-5cf7a766]:after{border-top-color:#fe8227}.dp-table_header_item_cursor_[data-v-5cf7a766]{cursor:pointer}.dp-table_header_filter_view_[data-v-5cf7a766]{flex:1}.dp-table_header_view_[data-v-2293b374]{flex-shrink:0;display:inline-flex;border-top:1px solid;position:sticky;z-index:3;top:0;user-select:none}.dp-table_fixed_bg_[data-v-2293b374]{background-color:#fff}.dp-table_fixed_bg_.dp-table_fixed_shadow_[data-v-2293b374]{box-shadow:5px 0 8px -3px #e3e3e3}.dp-table_view_border_[data-v-47d779f0]{border:1px solid;border-top:0;display:inline-block!important;max-width:100%;font-size:0}.dp-table_view_[data-v-47d779f0]{display:inline-block;max-width:100%;overflow:auto;max-height:80vh;font-size:0;position:relative;box-sizing:border-box}.dp-table_body_view_[data-v-47d779f0]{display:inline-flex;flex-direction:column;box-sizing:border-box;min-height:50px}.dp-table_body_view_[data-v-47d779f0]:empty{display:flex;align-items:center;justify-content:center}.dp-table_body_view_[data-v-47d779f0]:empty:before{content:"\6682\65e0\6570\636e";line-height:2;color:#999}.dp-table_view_>*[data-v-47d779f0]{font-size:14px}.dp-table_body_item_[data-v-47d779f0]{display:inline-flex}.dp-table_fixed_bg_[data-v-47d779f0]{background-color:#fff}.dp-table_fixed_bg_.dp-table_fixed_shadow_[data-v-47d779f0]{box-shadow:5px 0 8px -3px #e3e3e3}.dp-table_body_item_group_col_[data-v-47d779f0]{display:flex;flex-direction:column}.dp-table_body_item_group_col_>*[data-v-47d779f0]{flex:1}.dp-table_body_item_child_[data-v-47d779f0]{flex-shrink:0;display:flex;align-items:center;justify-content:center;text-align:center;border-right:1px solid;border-bottom:1px solid;box-sizing:border-box;overflow:hidden}.dp-table_total_view_[data-v-47d779f0]{position:sticky;bottom:0;display:inline-flex;background-color:#fff;overflow:visible}.dp-table_total_border_[data-v-47d779f0]{position:absolute;left:0;top:-1px;color:inherit;z-index:4;width:100%;border-top:1px solid}.problem-raw[data-v-65587794]:after{content:"";display:block;clear:both}
package/docs/raw.pdf ADDED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dpot-ui",
3
3
  "private": false,
4
- "version": "0.1.4",
4
+ "version": "0.1.6",
5
5
  "author": "Jeesn",
6
6
  "main": "./dist/index.es.js",
7
7
  "module": "./dist/index.es.js",
@@ -18,6 +18,7 @@
18
18
  "docs"
19
19
  ],
20
20
  "peerDependencies": {
21
- "vue": ">=2.6.14"
21
+ "vue": ">=2.6.14",
22
+ "vue-template-compiler": ">=2.6.14"
22
23
  }
23
24
  }