dpot-ui 0.1.10 → 0.2.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/dist/index.es.js CHANGED
@@ -64,10 +64,10 @@ const U = function() {
64
64
  this._options.placement
65
65
  ), this.modifiers[p] || p;
66
66
  }.bind(this)
67
- ), this.state.position = this._getPosition(this._popper, this._reference), $(this._popper, { position: this.state.position, top: 0 }), this.update(), this._setupEventListeners(), this;
67
+ ), this.state.position = this._getPosition(this._popper, this._reference), x(this._popper, { position: this.state.position, top: 0 }), this.update(), this._setupEventListeners(), this;
68
68
  }
69
69
  o.prototype.destroy = function() {
70
- return this._popper.removeAttribute("x-placement"), this._popper.style.left = "", this._popper.style.position = "", this._popper.style.top = "", this._popper.style[T("transform")] = "", this._removeEventListeners(), this._options.removeOnDestroy && this._popper.remove(), this;
70
+ return this._popper.removeAttribute("x-placement"), this._popper.style.left = "", this._popper.style.position = "", this._popper.style.top = "", this._popper.style[F("transform")] = "", this._removeEventListeners(), this._options.removeOnDestroy && this._popper.remove(), this;
71
71
  }, o.prototype.update = function() {
72
72
  var t = { instance: this, styles: {} };
73
73
  t.placement = this._options.placement, t._originalPlacement = this._options.placement, t.offsets = this._getOffsets(
@@ -183,16 +183,16 @@ const U = function() {
183
183
  document.documentElement.scrollTop,
184
184
  document.body.scrollTop
185
185
  ) : E.scrollTop;
186
- }, x = function(E) {
186
+ }, $ = function(E) {
187
187
  return E == document.body ? Math.max(
188
188
  document.documentElement.scrollLeft,
189
189
  document.body.scrollLeft
190
190
  ) : E.scrollLeft;
191
- }, j = t.offsets.popper.position === "fixed" ? 0 : S(m), I = t.offsets.popper.position === "fixed" ? 0 : x(m);
191
+ }, T = t.offsets.popper.position === "fixed" ? 0 : S(m), I = t.offsets.popper.position === "fixed" ? 0 : $(m);
192
192
  n = {
193
- top: 0 - (w.top - j),
193
+ top: 0 - (w.top - T),
194
194
  right: e.document.documentElement.clientWidth - (w.left - I),
195
- bottom: e.document.documentElement.clientHeight - (w.top - j),
195
+ bottom: e.document.documentElement.clientHeight - (w.top - T),
196
196
  left: 0 - (w.left - I)
197
197
  };
198
198
  } else
@@ -207,14 +207,14 @@ const U = function() {
207
207
  var n = i.slice();
208
208
  return a !== void 0 && (n = this._options.modifiers.slice(
209
209
  0,
210
- h(this._options.modifiers, a)
210
+ c(this._options.modifiers, a)
211
211
  )), n.forEach(
212
212
  function(d) {
213
213
  y(d) && (t = d.call(this, t));
214
214
  }.bind(this)
215
215
  ), t;
216
216
  }, o.prototype.isModifierRequired = function(t, i) {
217
- var a = h(this._options.modifiers, t);
217
+ var a = c(this._options.modifiers, t);
218
218
  return !!this._options.modifiers.slice(0, a).filter(function(n) {
219
219
  return n === i;
220
220
  }).length;
@@ -222,10 +222,10 @@ const U = function() {
222
222
  var i = {
223
223
  position: t.offsets.popper.position
224
224
  }, a = Math.round(t.offsets.popper.left), n = Math.round(t.offsets.popper.top), d;
225
- return this._options.gpuAcceleration && (d = T("transform")) ? (i[d] = "translate3d(" + a + "px, " + n + "px, 0)", i.top = 0, i.left = 0) : (i.left = a, i.top = n), Object.assign(i, t.styles), $(this._popper, i), this._popper.setAttribute("x-placement", t.placement), this.isModifierRequired(
225
+ return this._options.gpuAcceleration && (d = F("transform")) ? (i[d] = "translate3d(" + a + "px, " + n + "px, 0)", i.top = 0, i.left = 0) : (i.left = a, i.top = n), Object.assign(i, t.styles), x(this._popper, i), this._popper.setAttribute("x-placement", t.placement), this.isModifierRequired(
226
226
  this.modifiers.applyStyle,
227
227
  this.modifiers.arrow
228
- ) && t.offsets.arrow && $(t.arrowElement, t.offsets.arrow), t;
228
+ ) && t.offsets.arrow && x(t.arrowElement, t.offsets.arrow), t;
229
229
  }, o.prototype.modifiers.shift = function(t) {
230
230
  var i = t.placement, a = i.split("-")[0], n = i.split("-")[1];
231
231
  if (n) {
@@ -326,11 +326,11 @@ const U = function() {
326
326
  return console.warn(
327
327
  "WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"
328
328
  ), t;
329
- var n = {}, d = t.placement.split("-")[0], p = f(t.offsets.popper), u = t.offsets.reference, v = ["left", "right"].indexOf(d) !== -1, g = v ? "height" : "width", m = v ? "top" : "left", w = v ? "left" : "top", S = v ? "bottom" : "right", x = s(i)[g];
330
- u[S] - x < p[m] && (t.offsets.popper[m] -= p[m] - (u[S] - x)), u[m] + x > p[S] && (t.offsets.popper[m] += u[m] + x - p[S]);
331
- var j = u[m] + (a || u[g] / 2 - x / 2), I = j - p[m];
329
+ var n = {}, d = t.placement.split("-")[0], p = f(t.offsets.popper), u = t.offsets.reference, v = ["left", "right"].indexOf(d) !== -1, g = v ? "height" : "width", m = v ? "top" : "left", w = v ? "left" : "top", S = v ? "bottom" : "right", $ = s(i)[g];
330
+ u[S] - $ < p[m] && (t.offsets.popper[m] -= p[m] - (u[S] - $)), u[m] + $ > p[S] && (t.offsets.popper[m] += u[m] + $ - p[S]);
331
+ var T = u[m] + (a || u[g] / 2 - $ / 2), I = T - p[m];
332
332
  return I = Math.max(
333
- Math.min(p[g] - x - 10, I),
333
+ Math.min(p[g] - $ - 10, I),
334
334
  8
335
335
  ), n[m] = I, n[w] = "", t.offsets.arrow = n, t.arrowElement = i, t;
336
336
  };
@@ -358,7 +358,7 @@ const U = function() {
358
358
  var i = Object.assign({}, t);
359
359
  return i.right = i.left + i.width, i.bottom = i.top + i.height, i;
360
360
  }
361
- function h(t, i) {
361
+ function c(t, i) {
362
362
  var a = 0, n;
363
363
  for (n in t) {
364
364
  if (t[n] === i)
@@ -367,7 +367,7 @@ const U = function() {
367
367
  }
368
368
  return null;
369
369
  }
370
- function c(t, i) {
370
+ function h(t, i) {
371
371
  var a = e.getComputedStyle(t, null);
372
372
  return a[i];
373
373
  }
@@ -378,17 +378,17 @@ const U = function() {
378
378
  function b(t) {
379
379
  var i = t.parentNode;
380
380
  return i ? i === e.document ? e.document.body.scrollTop || e.document.body.scrollLeft ? e.document.body : e.document.documentElement : ["scroll", "auto"].indexOf(
381
- c(i, "overflow")
381
+ h(i, "overflow")
382
382
  ) !== -1 || ["scroll", "auto"].indexOf(
383
- c(i, "overflow-x")
383
+ h(i, "overflow-x")
384
384
  ) !== -1 || ["scroll", "auto"].indexOf(
385
- c(i, "overflow-y")
385
+ h(i, "overflow-y")
386
386
  ) !== -1 ? i : b(t.parentNode) : t;
387
387
  }
388
388
  function k(t) {
389
- return t === e.document.body ? !1 : c(t, "position") === "fixed" ? !0 : t.parentNode ? k(t.parentNode) : t;
389
+ return t === e.document.body ? !1 : h(t, "position") === "fixed" ? !0 : t.parentNode ? k(t.parentNode) : t;
390
390
  }
391
- function $(t, i) {
391
+ function x(t, i) {
392
392
  function a(n) {
393
393
  return n !== "" && !isNaN(parseFloat(n)) && isFinite(n);
394
394
  }
@@ -439,7 +439,7 @@ const U = function() {
439
439
  };
440
440
  return u;
441
441
  }
442
- function T(t) {
442
+ function F(t) {
443
443
  for (var i = ["", "ms", "webkit", "moz", "o"], a = 0; a < i.length; a++) {
444
444
  var n = i[a] ? i[a] + t.charAt(0).toUpperCase() + t.slice(1) : t;
445
445
  if (typeof e.document.body.style[n] < "u")
@@ -586,15 +586,15 @@ var Z = function() {
586
586
  }
587
587
  }, [e._t("reference")], 2)]);
588
588
  }, X = [];
589
- function C(e, r, o, s, l, f, h, c) {
589
+ function C(e, r, o, s, l, f, c, h) {
590
590
  var _ = typeof e == "function" ? e.options : e;
591
591
  r && (_.render = r, _.staticRenderFns = o, _._compiled = !0), s && (_.functional = !0), f && (_._scopeId = "data-v-" + f);
592
592
  var b;
593
- if (h ? (b = function(y) {
593
+ if (c ? (b = function(y) {
594
594
  y = y || // cached call
595
595
  this.$vnode && this.$vnode.ssrContext || // stateful
596
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !y && typeof __VUE_SSR_CONTEXT__ < "u" && (y = __VUE_SSR_CONTEXT__), l && l.call(this, y), y && y._registeredComponents && y._registeredComponents.add(h);
597
- }, _._ssrRegister = b) : l && (b = c ? function() {
596
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !y && typeof __VUE_SSR_CONTEXT__ < "u" && (y = __VUE_SSR_CONTEXT__), l && l.call(this, y), y && y._registeredComponents && y._registeredComponents.add(c);
597
+ }, _._ssrRegister = b) : l && (b = h ? function() {
598
598
  l.call(
599
599
  this,
600
600
  (_.functional ? this.parent : this).$root.$options.shadowRoot
@@ -607,8 +607,8 @@ function C(e, r, o, s, l, f, h, c) {
607
607
  return b.call(O), k(M, O);
608
608
  };
609
609
  } else {
610
- var $ = _.beforeCreate;
611
- _.beforeCreate = $ ? [].concat($, b) : [b];
610
+ var x = _.beforeCreate;
611
+ _.beforeCreate = x ? [].concat(x, b) : [b];
612
612
  }
613
613
  return {
614
614
  exports: e,
@@ -644,6 +644,11 @@ const Q = {
644
644
  }
645
645
  }
646
646
  },
647
+ data() {
648
+ return {
649
+ timer: null
650
+ };
651
+ },
647
652
  mounted() {
648
653
  let e = this.$refs.reference || this.$refs.trigger.children[0];
649
654
  if (!e)
@@ -661,10 +666,12 @@ const Q = {
661
666
  });
662
667
  },
663
668
  handleMouseEnter() {
664
- this.isShowPopover = !0;
669
+ clearTimeout(this.timer), this.isShowPopover = !0;
665
670
  },
666
671
  handleMouseLeave() {
667
- this.isShowPopover = !1;
672
+ this.timer = setTimeout(() => {
673
+ this.isShowPopover = !1;
674
+ }, 400);
668
675
  }
669
676
  },
670
677
  beforeDestroy() {
@@ -679,7 +686,7 @@ var ee = /* @__PURE__ */ C(
679
686
  X,
680
687
  !1,
681
688
  te,
682
- "eea938f0",
689
+ "6f7c137a",
683
690
  null,
684
691
  null
685
692
  );
@@ -786,36 +793,41 @@ const pe = {
786
793
  }
787
794
  }
788
795
  }, R = {};
789
- var ce = /* @__PURE__ */ C(
796
+ var he = /* @__PURE__ */ C(
790
797
  pe,
791
798
  le,
792
799
  de,
793
800
  !1,
794
- he,
801
+ ce,
795
802
  "1d357f3a",
796
803
  null,
797
804
  null
798
805
  );
799
- function he(e) {
806
+ function ce(e) {
800
807
  for (let r in R)
801
808
  this[r] = R[r];
802
809
  }
803
810
  const fe = /* @__PURE__ */ function() {
804
- return ce.exports;
811
+ return he.exports;
805
812
  }();
806
813
  var ue = function() {
807
814
  var e = this, r = e.$createElement, o = e._self._c || r;
808
- return o("div", {
809
- staticClass: "dp-checkfilter_view_"
815
+ return o("dp-popover", {
816
+ ref: "popover",
817
+ attrs: {
818
+ trigger: "hover"
819
+ }
820
+ }, [o("span", {
821
+ staticClass: "dp-checkfilter_view_",
822
+ attrs: {
823
+ slot: "reference"
824
+ },
825
+ slot: "reference"
810
826
  }, [o("span", {
811
827
  class: [e.value.length && "dp-checkfilter_title_checked_"]
812
828
  }, [e._v(e._s(e.title))]), o("span", {
813
829
  staticClass: "dp-checkfilter_arrow_"
814
- }), o("div", {
815
- staticClass: "dp-checkfilter_option_view_"
816
- }, [o("div", {
817
- staticClass: "dp-checkfilter_option_list_"
818
- }, [e.type === "check" ? e._l(e.option, function(s) {
830
+ })]), o("div", [e.type === "check" ? e._l(e.option, function(s) {
819
831
  return o("dp-check", {
820
832
  key: s.code,
821
833
  attrs: {
@@ -841,7 +853,7 @@ var ue = function() {
841
853
  change: e.handleChange
842
854
  }
843
855
  });
844
- }) : e._e()], 2)])]);
856
+ }) : e._e()], 2)]);
845
857
  }, _e = [];
846
858
  const ve = {
847
859
  name: "dp-checkfilter",
@@ -874,7 +886,9 @@ const ve = {
874
886
  },
875
887
  methods: {
876
888
  handleChange(e, r) {
877
- this.$emit("change", { key: r, value: [e].flat() });
889
+ this.$emit("change", { key: r, value: [e].flat() }), this.$nextTick(() => {
890
+ this.$refs.popover.updatePopper();
891
+ });
878
892
  }
879
893
  }
880
894
  }, N = {};
@@ -884,7 +898,7 @@ var me = /* @__PURE__ */ C(
884
898
  _e,
885
899
  !1,
886
900
  ge,
887
- "bf22bd06",
901
+ "45a9d784",
888
902
  null,
889
903
  null
890
904
  );
@@ -913,7 +927,10 @@ var ye = function() {
913
927
  staticClass: "dp-table_header_item_border_ dp-table_header_item_group_title_ dp-table_header_item_height_",
914
928
  style: {
915
929
  borderColor: e.borderColor,
916
- justifyContent: e.align
930
+ textAlign: e.align
931
+ },
932
+ attrs: {
933
+ title: e.item.name
917
934
  }
918
935
  }, [e._v(e._s(e.item.name))]), e.item.children ? o("ul", {
919
936
  staticClass: "dp-table_header_item_child_",
@@ -961,7 +978,11 @@ var ye = function() {
961
978
  on: {
962
979
  change: e.handleChangeFilter
963
980
  }
964
- })] : [e._v(" " + e._s(e.item.name) + " "), e.item.sortKey ? o("span", {
981
+ })] : [o("span", {
982
+ attrs: {
983
+ title: e.item.name
984
+ }
985
+ }, [e._v(e._s(e.item.name))]), e.item.sortKey ? o("span", {
965
986
  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_"]
966
987
  }) : e._e()]];
967
988
  })], 2);
@@ -991,6 +1012,17 @@ const Ce = {
991
1012
  type: Array
992
1013
  }
993
1014
  },
1015
+ watch: {
1016
+ item: {
1017
+ handler() {
1018
+ this.item && this.item.children && this.$nextTick(() => {
1019
+ const e = this.$el.children[1].offsetWidth;
1020
+ this.$el.style.maxWidth = `${e}px`;
1021
+ });
1022
+ },
1023
+ immediate: !0
1024
+ }
1025
+ },
994
1026
  data() {
995
1027
  return {
996
1028
  resizer: null,
@@ -1017,32 +1049,32 @@ const Ce = {
1017
1049
  beforeUnMounted() {
1018
1050
  this.resizer && this.resizer.unobserve(this.$el);
1019
1051
  }
1020
- }, A = {};
1021
- var xe = /* @__PURE__ */ C(
1052
+ }, B = {};
1053
+ var $e = /* @__PURE__ */ C(
1022
1054
  Ce,
1023
1055
  ye,
1024
1056
  we,
1025
1057
  !1,
1026
- $e,
1027
- "5cf7a766",
1058
+ xe,
1059
+ "60018e50",
1028
1060
  null,
1029
1061
  null
1030
1062
  );
1031
- function $e(e) {
1032
- for (let r in A)
1033
- this[r] = A[r];
1063
+ function xe(e) {
1064
+ for (let r in B)
1065
+ this[r] = B[r];
1034
1066
  }
1035
1067
  const Se = /* @__PURE__ */ function() {
1036
- return xe.exports;
1037
- }(), F = (e, r, o) => {
1068
+ return $e.exports;
1069
+ }(), D = (e, r, o) => {
1038
1070
  const s = e[o];
1039
1071
  if (!s.isFixed || !r[s.code])
1040
1072
  return {};
1041
- const l = (h) => typeof h == "number" ? [h] : Object.values(h).map((c) => l(c)).flat();
1042
- return { position: "sticky", left: `${e.filter((h, c) => c < o && h.isFixed).map((h) => l(r[h.code])).reduce((h, c) => parseFloat(h) + parseFloat(c), 0)}px` };
1043
- }, D = (e, r, o) => {
1073
+ const l = (c) => typeof c == "number" ? [c] : Object.values(c).map((h) => l(h)).flat();
1074
+ return { position: "sticky", left: `${e.filter((c, h) => h < o && c.isFixed).map((c) => l(r[c.code])).reduce((c, h) => parseFloat(c) + parseFloat(h), 0)}px` };
1075
+ }, j = (e, r, o) => {
1044
1076
  const s = e[r[0]];
1045
- return r.length > 1 ? D(s, r.slice(1)) : e[o] || s;
1077
+ return r.length > 1 ? j(s, r.slice(1), o) : e[o] === void 0 ? s : e[o];
1046
1078
  };
1047
1079
  var Ie = function() {
1048
1080
  var e = this, r = e.$createElement, o = e._self._c || r;
@@ -1050,7 +1082,8 @@ var Ie = function() {
1050
1082
  staticClass: "dp-table_header_view_",
1051
1083
  style: {
1052
1084
  borderColor: e.borderColor,
1053
- backgroundColor: e.bgColor
1085
+ backgroundColor: e.bgColor,
1086
+ minWidth: e.isBlock ? "100%" : ""
1054
1087
  }
1055
1088
  }, e._l(e.data, function(s, l) {
1056
1089
  return o("dp-item", {
@@ -1070,11 +1103,11 @@ var Ie = function() {
1070
1103
  changeSort: e.handleChangeSort,
1071
1104
  changeFilter: e.handleChangeFilter
1072
1105
  },
1073
- scopedSlots: e._u([e._l(e.$slots, function(f, h) {
1106
+ scopedSlots: e._u([e._l(e.$slots, function(f, c) {
1074
1107
  return {
1075
- key: h,
1108
+ key: c,
1076
1109
  fn: function() {
1077
- return [e._t(h)];
1110
+ return [e._t(c)];
1078
1111
  },
1079
1112
  proxy: !0
1080
1113
  };
@@ -1119,24 +1152,30 @@ const Ee = {
1119
1152
  },
1120
1153
  computed: {
1121
1154
  fixedStyle() {
1122
- return this.data.map((e, r) => ({ ...F(this.data, this.widthInfo, r), backgroundColor: this.bgColor }));
1155
+ return this.data.map((e, r) => ({ ...D(this.data, this.widthInfo, r), backgroundColor: this.bgColor }));
1156
+ }
1157
+ },
1158
+ watch: {
1159
+ data() {
1160
+ this.widthInfo = {};
1123
1161
  }
1124
1162
  },
1125
1163
  data() {
1126
1164
  return {
1127
1165
  widthInfo: {},
1128
- timer: null
1166
+ timer: null,
1167
+ isBlock: !0
1129
1168
  };
1130
1169
  },
1131
1170
  methods: {
1132
- computFixedStyle: F,
1171
+ computFixedStyle: D,
1133
1172
  handleChangeWidthInfo(e) {
1134
1173
  this.widthInfo = { ...this.widthInfo, ...e }, clearTimeout(this.timer), this.timer = setTimeout(() => {
1135
- this.$emit("changeWidth", this.widthInfo);
1174
+ this.$emit("changeWidth", this.widthInfo), this.isBlock = Object.values(this.widthInfo).reduce((r, o) => r + o, 0) > this.$el.offsetWidth - 2, this.$emit("changeBlock", this.isBlock);
1136
1175
  }, 300);
1137
1176
  },
1138
1177
  handleChangeSort(e, r) {
1139
- console.log(e, r), this.$emit("changeSort", e, r);
1178
+ this.$emit("changeSort", e, r);
1140
1179
  },
1141
1180
  handleChangeFilter(e) {
1142
1181
  this.$emit("changeFilter", e);
@@ -1149,7 +1188,7 @@ var ke = /* @__PURE__ */ C(
1149
1188
  Oe,
1150
1189
  !1,
1151
1190
  Me,
1152
- "2293b374",
1191
+ "5d3820ae",
1153
1192
  null,
1154
1193
  null
1155
1194
  );
@@ -1157,10 +1196,10 @@ function Me(e) {
1157
1196
  for (let r in W)
1158
1197
  this[r] = W[r];
1159
1198
  }
1160
- const je = /* @__PURE__ */ function() {
1199
+ const Te = /* @__PURE__ */ function() {
1161
1200
  return ke.exports;
1162
1201
  }();
1163
- var De = function() {
1202
+ var je = function() {
1164
1203
  var e = this, r = e.$createElement, o = e._self._c || r;
1165
1204
  return o("div", {
1166
1205
  staticClass: "dp-table_view_box_"
@@ -1188,6 +1227,7 @@ var De = function() {
1188
1227
  },
1189
1228
  on: {
1190
1229
  changeWidth: e.handleSetWidthInfo,
1230
+ changeBlock: e.handleSetBlock,
1191
1231
  changeSort: e.handleChangeSort,
1192
1232
  changeFilter: e.handleChangeFilter
1193
1233
  },
@@ -1204,7 +1244,8 @@ var De = function() {
1204
1244
  staticClass: "dp-table_body_view_",
1205
1245
  style: {
1206
1246
  height: `${e.fullHeight}px`,
1207
- paddingTop: e.beforeHeight + "px"
1247
+ paddingTop: e.beforeHeight + "px",
1248
+ minWidth: e.isBlock ? "100%" : ""
1208
1249
  }
1209
1250
  }, e._l(e.resultData, function(s) {
1210
1251
  return o("li", {
@@ -1227,9 +1268,9 @@ var De = function() {
1227
1268
  style: Object.assign({
1228
1269
  borderColor: e.borderColor
1229
1270
  }, l.style, l.colStyle, e.computEvenColor(s.__sub), e.fixedStyle[f], e.computWidth(s[l.code]))
1230
- }, e._l([s[l.code].slot].flat(), function(h, c) {
1271
+ }, e._l([s[l.code].slot].flat(), function(c, h) {
1231
1272
  return o("div", {
1232
- key: h,
1273
+ key: c,
1233
1274
  staticClass: "dp-table_body_item_child_",
1234
1275
  style: Object.assign({
1235
1276
  borderColor: e.borderColor,
@@ -1238,18 +1279,18 @@ var De = function() {
1238
1279
  }, l.style, l.colStyle, s[l.code].style, {
1239
1280
  width: "100%"
1240
1281
  })
1241
- }, [e._t(h, null, {
1282
+ }, [e._t(c, null, {
1242
1283
  item: s,
1243
- index: c
1284
+ index: h
1244
1285
  })], 2);
1245
1286
  }), 0) : s[l.code].raw ? o("div", {
1246
1287
  class: ["dp-table_body_item_group_col_", l.isFixed && "dp-table_fixed_bg_", !!e.scrollLeft && "dp-table_fixed_shadow_"],
1247
1288
  style: Object.assign({
1248
1289
  borderColor: e.borderColor
1249
1290
  }, l.style, l.colStyle, e.computEvenColor(s.__sub), e.fixedStyle[f], e.computWidth(s[l.code]))
1250
- }, e._l([s[l.code].raw].flat(), function(h, c) {
1291
+ }, e._l([s[l.code].raw].flat(), function(c, h) {
1251
1292
  return o("div", {
1252
- key: c,
1293
+ key: h,
1253
1294
  staticClass: "dp-table_body_item_child_",
1254
1295
  style: Object.assign({
1255
1296
  borderColor: e.borderColor,
@@ -1259,7 +1300,7 @@ var De = function() {
1259
1300
  width: "100%"
1260
1301
  }),
1261
1302
  domProps: {
1262
- innerHTML: e._s(h)
1303
+ innerHTML: e._s(c)
1263
1304
  }
1264
1305
  });
1265
1306
  }), 0) : s[l.code].value ? o("div", {
@@ -1267,9 +1308,9 @@ var De = function() {
1267
1308
  style: Object.assign({
1268
1309
  borderColor: e.borderColor
1269
1310
  }, l.style, l.colStyle, e.computEvenColor(s.__sub), e.fixedStyle[f], e.computWidth(s[l.code]))
1270
- }, e._l([s[l.code].value].flat(), function(h, c) {
1311
+ }, e._l([s[l.code].value].flat(), function(c, h) {
1271
1312
  return o("div", {
1272
- key: c,
1313
+ key: h,
1273
1314
  staticClass: "dp-table_body_item_child_",
1274
1315
  style: Object.assign({
1275
1316
  borderColor: e.borderColor,
@@ -1277,15 +1318,21 @@ var De = function() {
1277
1318
  justifyContent: e.dir
1278
1319
  }, l.style, l.colStyle, s[l.code].style, {
1279
1320
  width: "100%"
1280
- })
1281
- }, [e._v(e._s(h))]);
1321
+ }),
1322
+ attrs: {
1323
+ title: l.isShowTitle ? c : ""
1324
+ }
1325
+ }, [e._v(e._s(c))]);
1282
1326
  }), 0) : e._e()] : o("div", {
1283
1327
  class: ["dp-table_body_item_child_", l.isFixed && "dp-table_fixed_bg_", !!e.scrollLeft && "dp-table_fixed_shadow_"],
1284
1328
  style: Object.assign({
1285
1329
  borderColor: e.borderColor,
1286
1330
  padding: e.itemPadding,
1287
1331
  justifyContent: e.dir
1288
- }, l.style, l.colStyle, e.computEvenColor(s.__sub), e.fixedStyle[f])
1332
+ }, l.style, l.colStyle, e.computEvenColor(s.__sub), e.fixedStyle[f]),
1333
+ attrs: {
1334
+ title: l.isShowTitle ? s[l.code] : ""
1335
+ }
1289
1336
  }, [e._v(e._s(s[l.code]))])];
1290
1337
  }), s.__isTotalData ? o("span", {
1291
1338
  staticClass: "dp-table_total_border_",
@@ -1304,11 +1351,11 @@ var De = function() {
1304
1351
  borderColor: e.borderColor
1305
1352
  }
1306
1353
  })])]);
1307
- }, Fe = [];
1308
- const Te = {
1354
+ }, De = [];
1355
+ const Fe = {
1309
1356
  name: "dp-table",
1310
1357
  components: {
1311
- DpHeader: je
1358
+ DpHeader: Te
1312
1359
  },
1313
1360
  props: {
1314
1361
  // 边框颜色
@@ -1401,7 +1448,7 @@ const Te = {
1401
1448
  return e.length ? [...this.bodyData].filter((r) => {
1402
1449
  let o = !0;
1403
1450
  return e.some((s) => {
1404
- if (!s.value.includes(D(r, s.target, s.filterKey)))
1451
+ if (!s.value.includes(j(r, s.target, s.filterKey)))
1405
1452
  return o = !1, !0;
1406
1453
  }), o;
1407
1454
  }) : this.bodyData;
@@ -1413,17 +1460,17 @@ const Te = {
1413
1460
  // 表体渲染数据
1414
1461
  resultData() {
1415
1462
  return Object.keys(this.widthInfo).length < this.headData.length || !this.headData.length ? [] : (this.sortInfo.value ? [...this.filterBodyData].sort((r, o) => {
1416
- const s = D(r, this.sortInfo.target, this.sortInfo.sortKey), l = D(o, this.sortInfo.target, this.sortInfo.sortKey);
1463
+ const s = j(r, this.sortInfo.target, this.sortInfo.sortKey), l = j(o, this.sortInfo.target, this.sortInfo.sortKey);
1417
1464
  return this.sortInfo.value === "up" ? s - l : l - s;
1418
1465
  }) : this.filterBodyData).slice(this.beforeIndex, this.currentIndex).concat(this.totalData ? [{ ...this.totalData, __sub: "", __isTotalData: !0 }] : []).map((r, o) => {
1419
1466
  const s = this.handleComputItem(r);
1420
1467
  return Object.keys(s).forEach((l) => {
1421
1468
  if (s[l] instanceof Object && (s[l].merge || 0) > 1) {
1422
- const f = this.deepHeadData.findIndex((c) => c.code === l), h = this.deepHeadData.slice(f, f + s[l].merge);
1423
- h.forEach((c) => {
1424
- const _ = s[c.code];
1425
- _ instanceof Object || (s[c.code] = { value: _ }), s[c.code] = { ...s[c.code], isMergeIgnored: !0 };
1426
- }), s[l].isMerge = !0, s[l].width = h.map((c) => this.widthInfo[c.code]).reduce((c, _) => c + _, 0);
1469
+ const f = this.deepHeadData.findIndex((h) => h.code === l), c = this.deepHeadData.slice(f, f + s[l].merge);
1470
+ c.forEach((h) => {
1471
+ const _ = s[h.code];
1472
+ _ instanceof Object || (s[h.code] = { value: _ }), s[h.code] = { ...s[h.code], isMergeIgnored: !0 };
1473
+ }), s[l].isMerge = !0, s[l].width = c.map((h) => this.widthInfo[h.code]).reduce((h, _) => h + _, 0);
1427
1474
  }
1428
1475
  }), {
1429
1476
  __sub: o + parseInt(this.basicSub) + this.beforeIndex,
@@ -1435,7 +1482,7 @@ const Te = {
1435
1482
  },
1436
1483
  // 冻结列样式
1437
1484
  fixedStyle() {
1438
- return this.headData.map((e, r) => F(this.resultHeadData, this.widthInfo, r));
1485
+ return this.headData.map((e, r) => D(this.resultHeadData, this.widthInfo, r));
1439
1486
  },
1440
1487
  // 行hover样式
1441
1488
  hoverStyle() {
@@ -1448,7 +1495,7 @@ const Te = {
1448
1495
  },
1449
1496
  watch: {
1450
1497
  bodyData() {
1451
- this.$refs.table.scrollTop = 0, this.$refs.table.scrollLeft = 0, this.scrollLeft = 0, this.beforeIndex = 0, this.currentIndex = 50;
1498
+ this.$refs.table.scrollTop = 0, this.beforeIndex = 0, this.currentIndex = 50;
1452
1499
  },
1453
1500
  filterBodyData() {
1454
1501
  this.handleComputItemHeight();
@@ -1467,7 +1514,8 @@ const Te = {
1467
1514
  target: [],
1468
1515
  value: null
1469
1516
  },
1470
- filterInfo: {}
1517
+ filterInfo: {},
1518
+ isBlock: !0
1471
1519
  };
1472
1520
  },
1473
1521
  mounted() {
@@ -1489,7 +1537,7 @@ const Te = {
1489
1537
  if (this.rowHeight)
1490
1538
  o = this.rowHeight;
1491
1539
  else if (this.rowItemHeight) {
1492
- const s = this.handleComputItem(e, !0), l = this.deepHeadData.map((h) => s[h.code] instanceof Object ? s[h.code].slot ? [s[h.code].slot].flat().length : s[h.code].raw ? [s[h.code].raw].flat().length : s[h.code].value ? [s[h.code].value].flat().length : 1 : 1);
1540
+ const s = this.handleComputItem(e, !0), l = this.deepHeadData.map((c) => s[c.code] instanceof Object ? s[c.code].slot ? [s[c.code].slot].flat().length : s[c.code].raw ? [s[c.code].raw].flat().length : s[c.code].value ? [s[c.code].value].flat().length : 1 : 1);
1493
1541
  o = Math.max(...l) * this.rowItemHeight;
1494
1542
  }
1495
1543
  return o;
@@ -1499,11 +1547,15 @@ const Te = {
1499
1547
  handleSetWidthInfo(e) {
1500
1548
  this.widthInfo = e;
1501
1549
  },
1550
+ // 设置表格块模式
1551
+ handleSetBlock(e) {
1552
+ this.isBlock = e;
1553
+ },
1502
1554
  // 递归铺开数据
1503
1555
  handleComputItem(e, r) {
1504
1556
  let o = {};
1505
1557
  const s = (l, f) => {
1506
- f.children ? f.children.forEach((h) => s((l || {})[h.code], { ...h, code: `${f.code}_${h.code}` })) : o[f.code] = l;
1558
+ f.children ? f.children.forEach((c) => s((l || {})[c.code], { ...c, code: `${f.code}_${c.code}` })) : o[f.code] = l;
1507
1559
  };
1508
1560
  return this.headData.filter((l) => r || l.children).forEach((l) => s(e[l.code], l)), o;
1509
1561
  },
@@ -1540,20 +1592,20 @@ const Te = {
1540
1592
  this.filterInfo = { ...this.filterInfo, ...e }, this.beforeIndex = 0, this.currentIndex = 50, this.$refs.table.scrollTop = 0, this.$emit("changeFilter", Object.values(this.filterInfo).map((r) => ({ key: r.key, value: r.value })));
1541
1593
  }
1542
1594
  }
1543
- }, B = {};
1595
+ }, A = {};
1544
1596
  var Le = /* @__PURE__ */ C(
1545
- Te,
1546
- De,
1547
1597
  Fe,
1598
+ je,
1599
+ De,
1548
1600
  !1,
1549
1601
  He,
1550
- "123ce300",
1602
+ "07f8d2be",
1551
1603
  null,
1552
1604
  null
1553
1605
  );
1554
1606
  function He(e) {
1555
- for (let r in B)
1556
- this[r] = B[r];
1607
+ for (let r in A)
1608
+ this[r] = A[r];
1557
1609
  }
1558
1610
  const Pe = /* @__PURE__ */ function() {
1559
1611
  return Le.exports;
@@ -1567,7 +1619,7 @@ var Re = function() {
1567
1619
  }
1568
1620
  });
1569
1621
  }, Ne = [];
1570
- const Ae = {
1622
+ const Be = {
1571
1623
  name: "dp-raw",
1572
1624
  props: {
1573
1625
  data: String
@@ -1584,8 +1636,8 @@ const Ae = {
1584
1636
  const l = document.createElement("span");
1585
1637
  o.replaceWith(l);
1586
1638
  const f = document.createElement("span");
1587
- f.innerHTML = s, [...o.attributes].filter((c) => c.value && c.name !== "src").forEach((c) => {
1588
- e.includes(c.name) ? f.style[c.name] = c.value : f[c.name] = c.value;
1639
+ f.innerHTML = s, [...o.attributes].filter((h) => h.value && h.name !== "src").forEach((h) => {
1640
+ e.includes(h.name) ? f.style[h.name] = h.value : f[h.name] = h.value;
1589
1641
  }), f.style.display = "inline-block", f.style.fontSize = "0", f.setAttribute("part", "__svg_view__"), l.attachShadow({ mode: "open" }).append(f);
1590
1642
  }
1591
1643
  });
@@ -1593,16 +1645,16 @@ const Ae = {
1593
1645
  }
1594
1646
  }, z = {};
1595
1647
  var We = /* @__PURE__ */ C(
1596
- Ae,
1648
+ Be,
1597
1649
  Re,
1598
1650
  Ne,
1599
1651
  !1,
1600
- Be,
1652
+ Ae,
1601
1653
  "65587794",
1602
1654
  null,
1603
1655
  null
1604
1656
  );
1605
- function Be(e) {
1657
+ function Ae(e) {
1606
1658
  for (let r in z)
1607
1659
  this[r] = z[r];
1608
1660
  }
@@ -1610,8 +1662,8 @@ const ze = /* @__PURE__ */ function() {
1610
1662
  return We.exports;
1611
1663
  }();
1612
1664
  var qe = { choice: 'span.__MC41aTVhZDc3NDdnMzM2__[data-t="MC4wNHY2eGVwODFmMXg"]', decide: 'span.__MC5jY2ZpMWU5NzYyamo__[data-t="MC5hMDFjMGM5NGNmZmFl"]', fill: 'span.__MC50aXB0OGc2Y2tqbw__[data-t="MC5mM2VtbTVkcDJm"]', scoreline: 'span.__MC5sOG52dGVycnI5Zw__[data-t="MC42NG83Z2Y1Y2w3bw"]' }, Je = (e) => {
1613
- let { el: r, isShow: o, type: s } = e, l = Object.keys(qe), f = o ? l.filter((c) => !(s || l).includes(c)) : s || l, h = l.filter((c) => !f.includes(c));
1614
- r.classList.add(...f.map((c) => `__toggleraw_${c}_hidden`)), r.classList.remove(...h.map((c) => `__toggleraw_${c}_hidden`));
1665
+ let { el: r, isShow: o, type: s } = e, l = Object.keys(qe), f = o ? l.filter((h) => !(s || l).includes(h)) : s || l, c = l.filter((h) => !f.includes(h));
1666
+ r.classList.add(...f.map((h) => `__toggleraw_${h}_hidden`)), r.classList.remove(...c.map((h) => `__toggleraw_${h}_hidden`));
1615
1667
  }, Ve = Je, Ge = { ToggleRaw: Ve }, Ke = function() {
1616
1668
  var e = this, r = e.$createElement, o = e._self._c || r;
1617
1669
  return o("svg", {
@@ -1825,20 +1877,20 @@ function pt(e) {
1825
1877
  for (let r in V)
1826
1878
  this[r] = V[r];
1827
1879
  }
1828
- const ct = /* @__PURE__ */ function() {
1880
+ const ht = /* @__PURE__ */ function() {
1829
1881
  return dt.exports;
1830
- }(), ht = [
1882
+ }(), ct = [
1831
1883
  Pe,
1832
1884
  ze,
1833
- ct
1885
+ ht
1834
1886
  ], ft = {
1835
1887
  install: (e) => {
1836
- ht.forEach((r) => e.component(r.name, r));
1888
+ ct.forEach((r) => e.component(r.name, r));
1837
1889
  }
1838
1890
  };
1839
1891
  export {
1840
1892
  ze as Raw,
1841
1893
  Pe as Table,
1842
- ct as ToggleRaw,
1894
+ ht as ToggleRaw,
1843
1895
  ft as default
1844
1896
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .dp-popover_view_[data-v-eea938f0]{position:absolute;background-color:#fff;min-width:100px;z-index:1000;border-radius:6px;border:1px solid #ccc;padding:6px 10px;box-shadow:0 0 8px #ccc}.dp-popover_view_[x-placement^=top][data-v-eea938f0]{margin-bottom:14px}.dp-popover_view_[x-placement^=top] .dp-popover_arrow_[data-v-eea938f0]{bottom:-8px;left:50%;margin-right:3px;border-top-color:#ccc;border-bottom-width:0}.dp-popover_view_[x-placement^=top] .dp-popover_arrow_[data-v-eea938f0]:after{bottom:1px;margin-left:-8px;border-top-color:#fff;border-bottom-width:0}.dp-popover_view_[x-placement^=bottom][data-v-eea938f0]{margin-top:14px}.dp-popover_view_[x-placement^=bottom] .dp-popover_arrow_[data-v-eea938f0]{top:-8px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#ccc}.dp-popover_view_[x-placement^=bottom] .dp-popover_arrow_[data-v-eea938f0]:after{top:1px;margin-left:-8px;border-top-width:0;border-bottom-color:#fff}.dp-popover_view_[x-placement^=right][data-v-eea938f0]{margin-left:14px}.dp-popover_view_[x-placement^=right] .dp-popover_arrow_[data-v-eea938f0]{top:50%;left:-8px;margin-bottom:3px;border-right-color:#ccc;border-left-width:0}.dp-popover_view_[x-placement^=right] .dp-popover_arrow_[data-v-eea938f0]:after{bottom:-8px;left:1px;border-right-color:#fff;border-left-width:0}.dp-popover_view_[x-placement^=left][data-v-eea938f0]{margin-right:14px}.dp-popover_view_[x-placement^=left] .dp-popover_arrow_[data-v-eea938f0]{top:50%;right:-8px;margin-bottom:3px;border-right-width:0;border-left-color:#ccc}.dp-popover_view_[x-placement^=left] .dp-popover_arrow_[data-v-eea938f0]:after{right:1px;bottom:-8px;margin-left:-8px;border-left-color:#fff;border-right-width:0}.dp-popover_arrow_[data-v-eea938f0],.dp-popover_arrow_[data-v-eea938f0]:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.dp-popover_arrow_[data-v-eea938f0]{border-width:8px;-webkit-filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));filter:drop-shadow(0 2px 12px rgba(0,0,0,.03))}.dp-popover_arrow_[data-v-eea938f0]:after{content:" ";border-width:8px}.dp-check_view_[data-v-1bea0315]{font-size:14px;padding:5px 10px;min-width:60px;display:flex;cursor:pointer}.dp-check_view_[data-v-1bea0315]:hover{background-color:#e8e8e8}.dp-check_view_[disabled][data-v-1bea0315]{pointer-events:none}.dp-check_tag_[data-v-1bea0315]{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-1bea0315]{white-space:break-spaces}.dp-check_view_checked_ .dp-check_tag_[data-v-1bea0315]{border-color:#4386f5;background-color:#4386f5}.dp-check_view_checked_ .dp-check_tag_[data-v-1bea0315]: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-1bea0315]{color:#4386f5}.dp-radio_view_[data-v-1d357f3a]{font-size:14px;padding:5px 10px;min-width:60px;display:flex;cursor:pointer}.dp-radio_view_[data-v-1d357f3a]:hover{background-color:#e8e8e8}.dp-radio_view_[disabled][data-v-1d357f3a]{pointer-events:none}.dp-radio_tag_[data-v-1d357f3a]{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-1d357f3a]{white-space:break-spaces}.dp-radio_view_checked_ .dp-radio_tag_[data-v-1d357f3a]{border-color:#4386f5}.dp-radio_view_checked_ .dp-radio_tag_[data-v-1d357f3a]:before{content:"";width:10px;height:10px;border-radius:50%;background-color:#4386f5}.dp-radio_view_checked_ .dp-radio_name_[data-v-1d357f3a]{color:#4386f5}.dp-checkfilter_view_[data-v-bf22bd06]{display:flex;align-items:center;justify-content:center;padding:10px 0;position:relative;cursor:pointer}.dp-checkfilter_arrow_[data-v-bf22bd06]{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-bf22bd06]{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-bf22bd06]{color:#fe8227}.dp-checkfilter_view_:hover .dp-checkfilter_arrow_[data-v-bf22bd06]{transform:rotate(135deg) translate(3px,-3px)}.dp-checkfilter_view_:hover .dp-checkfilter_option_view_[data-v-bf22bd06]{transform:scale(1);overflow:visible;visibility:inherit}.dp-checkfilter_option_view_[data-v-bf22bd06]: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-bf22bd06]{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_box_[data-v-123ce300]{font-size:0}.dp-table_view_border_[data-v-123ce300]{border-left:1px solid;display:inline-block!important;max-width:100%;position:relative}.dp-table_view_bottom_border_[data-v-123ce300]{position:absolute;z-index:4;left:0;bottom:0;width:100%;height:0;border-top:1px solid}.dp-table_view_right_border_[data-v-123ce300]{position:absolute;z-index:4;right:0;top:0;width:0;height:100%;border-left:1px solid}.dp-table_view_[data-v-123ce300]{display:inline-block;max-width:100%;overflow:auto;max-height:100vh;font-size:0;position:relative;box-sizing:border-box}.dp-table_body_view_[data-v-123ce300]{display:inline-flex;flex-direction:column;box-sizing:border-box;min-height:50px}.dp-table_body_view_[data-v-123ce300]:empty{display:flex;align-items:center;justify-content:center}.dp-table_body_view_[data-v-123ce300]:empty:before{content:"\6682\65e0\6570\636e";line-height:2;color:#999}.dp-table_view_>*[data-v-123ce300]{font-size:14px}.dp-table_body_item_[data-v-123ce300]{display:inline-flex}.dp-table_fixed_bg_[data-v-123ce300]{background-color:#fff}.dp-table_fixed_bg_.dp-table_fixed_shadow_[data-v-123ce300]{box-shadow:5px 0 8px -3px #e3e3e3}.dp-table_body_item_group_col_[data-v-123ce300]{display:flex;flex-direction:column}.dp-table_body_item_group_col_>*[data-v-123ce300]{flex:1}.dp-table_body_item_child_[data-v-123ce300]{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-123ce300]{position:sticky;bottom:0;display:inline-flex;background-color:#fff;overflow:visible}.dp-table_total_border_[data-v-123ce300]{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}.icon[data-v-3766159a]{vertical-align:-.15em;fill:currentColor;overflow:hidden;font-size:0}.dp-capsule_view_[data-v-8d631704]{display:inline-flex;position:relative;flex-shrink:0;margin:2px}.dp-capsule_view_[data-v-8d631704]:before{content:"";position:absolute;left:-2px;top:-2px;right:-2px;bottom:-2px;border:1px solid #4386f5;border-radius:200px}.pointer[data-v-8d631704]{cursor:pointer}.dp-capsule_view_active_[data-v-8d631704]{position:absolute;transition:left .1s;top:0;border-radius:200px;height:100%}.dp-capsule_view_item_[data-v-8d631704]{flex:1;position:relative;z-index:2;padding:0 10px;text-align:center;line-height:1.8;white-space:nowrap}.dp-toggleraw_icon_[data-v-41c0d3a5]{padding:5px}.dp-toggleraw_content_[data-v-41c0d3a5]{display:flex;align-items:center;justify-content:space-between}
1
+ .dp-popover_view_[data-v-6f7c137a]{position:absolute;background-color:#fff;min-width:100px;z-index:1000;border-radius:6px;border:1px solid #ccc;padding:6px 10px;box-shadow:0 0 8px #ccc}.dp-popover_view_[x-placement^=top][data-v-6f7c137a]{margin-bottom:14px}.dp-popover_view_[x-placement^=top] .dp-popover_arrow_[data-v-6f7c137a]{bottom:-8px;left:50%;margin-right:3px;border-top-color:#ccc;border-bottom-width:0}.dp-popover_view_[x-placement^=top] .dp-popover_arrow_[data-v-6f7c137a]:after{bottom:1px;margin-left:-8px;border-top-color:#fff;border-bottom-width:0}.dp-popover_view_[x-placement^=bottom][data-v-6f7c137a]{margin-top:14px}.dp-popover_view_[x-placement^=bottom] .dp-popover_arrow_[data-v-6f7c137a]{top:-8px;left:50%;margin-right:3px;border-top-width:0;border-bottom-color:#ccc}.dp-popover_view_[x-placement^=bottom] .dp-popover_arrow_[data-v-6f7c137a]:after{top:1px;margin-left:-8px;border-top-width:0;border-bottom-color:#fff}.dp-popover_view_[x-placement^=right][data-v-6f7c137a]{margin-left:14px}.dp-popover_view_[x-placement^=right] .dp-popover_arrow_[data-v-6f7c137a]{top:50%;left:-8px;margin-bottom:3px;border-right-color:#ccc;border-left-width:0}.dp-popover_view_[x-placement^=right] .dp-popover_arrow_[data-v-6f7c137a]:after{bottom:-8px;left:1px;border-right-color:#fff;border-left-width:0}.dp-popover_view_[x-placement^=left][data-v-6f7c137a]{margin-right:14px}.dp-popover_view_[x-placement^=left] .dp-popover_arrow_[data-v-6f7c137a]{top:50%;right:-8px;margin-bottom:3px;border-right-width:0;border-left-color:#ccc}.dp-popover_view_[x-placement^=left] .dp-popover_arrow_[data-v-6f7c137a]:after{right:1px;bottom:-8px;margin-left:-8px;border-left-color:#fff;border-right-width:0}.dp-popover_arrow_[data-v-6f7c137a],.dp-popover_arrow_[data-v-6f7c137a]:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.dp-popover_arrow_[data-v-6f7c137a]{border-width:8px;-webkit-filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));filter:drop-shadow(0 2px 12px rgba(0,0,0,.03))}.dp-popover_arrow_[data-v-6f7c137a]:after{content:" ";border-width:8px}.dp-check_view_[data-v-1bea0315]{font-size:14px;padding:5px 10px;min-width:60px;display:flex;cursor:pointer}.dp-check_view_[data-v-1bea0315]:hover{background-color:#e8e8e8}.dp-check_view_[disabled][data-v-1bea0315]{pointer-events:none}.dp-check_tag_[data-v-1bea0315]{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-1bea0315]{white-space:break-spaces}.dp-check_view_checked_ .dp-check_tag_[data-v-1bea0315]{border-color:#4386f5;background-color:#4386f5}.dp-check_view_checked_ .dp-check_tag_[data-v-1bea0315]: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-1bea0315]{color:#4386f5}.dp-radio_view_[data-v-1d357f3a]{font-size:14px;padding:5px 10px;min-width:60px;display:flex;cursor:pointer}.dp-radio_view_[data-v-1d357f3a]:hover{background-color:#e8e8e8}.dp-radio_view_[disabled][data-v-1d357f3a]{pointer-events:none}.dp-radio_tag_[data-v-1d357f3a]{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-1d357f3a]{white-space:break-spaces}.dp-radio_view_checked_ .dp-radio_tag_[data-v-1d357f3a]{border-color:#4386f5}.dp-radio_view_checked_ .dp-radio_tag_[data-v-1d357f3a]:before{content:"";width:10px;height:10px;border-radius:50%;background-color:#4386f5}.dp-radio_view_checked_ .dp-radio_name_[data-v-1d357f3a]{color:#4386f5}.dp-checkfilter_view_[data-v-45a9d784]{display:flex;align-items:center;justify-content:center;padding:10px 0;position:relative;cursor:pointer}.dp-checkfilter_arrow_[data-v-45a9d784]{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-45a9d784]{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-45a9d784]{color:#fe8227}.dp-checkfilter_view_:hover .dp-checkfilter_arrow_[data-v-45a9d784]{transform:rotate(135deg) translate(3px,-3px)}.dp-checkfilter_view_:hover .dp-checkfilter_option_view_[data-v-45a9d784]{transform:scale(1);overflow:visible;visibility:inherit}.dp-checkfilter_option_view_[data-v-45a9d784]: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-45a9d784]{max-height:400px;overflow:auto;border-radius:5px;background-color:#fff;position:relative;z-index:2}.dp-table_header_item_height_[data-v-60018e50]{min-height:40px}.dp-table_header_item_[data-v-60018e50]{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-60018e50]{flex-direction:column;align-items:start}.dp-table_header_item_group_title_[data-v-60018e50]{align-self:stretch;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dp-table_header_item_group_title_[data-v-60018e50]:before{content:" ";display:inline-block;height:100%;vertical-align:middle}.dp-table_header_item_border_[data-v-60018e50]{border-right:1px solid;border-bottom:1px solid;padding:3px 10px}.dp-table_header_item_child_[data-v-60018e50]{display:flex}.dp-table_header_item_sort_[data-v-60018e50]{display:inline-flex;flex-direction:column;align-items:center;justify-content:space-between;width:16px;height:12px}.dp-table_header_item_sort_[data-v-60018e50]:before,.dp-table_header_item_sort_[data-v-60018e50]:after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent}.dp-table_header_item_sort_[data-v-60018e50]:before{border-bottom:5px solid #999}.dp-table_header_item_sort_[data-v-60018e50]:after{border-top:5px solid #999}.dp-table_header_item_sort_up_[data-v-60018e50]:before{border-bottom-color:#fe8227}.dp-table_header_item_sort_down_[data-v-60018e50]:after{border-top-color:#fe8227}.dp-table_header_item_cursor_[data-v-60018e50]{cursor:pointer}.dp-table_header_filter_view_[data-v-60018e50]{flex:1}.dp-table_header_view_[data-v-5d3820ae]{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-5d3820ae]{background-color:#fff}.dp-table_fixed_bg_.dp-table_fixed_shadow_[data-v-5d3820ae]{box-shadow:5px 0 8px -3px #e3e3e3}.dp-table_view_box_[data-v-07f8d2be]{flex:1;font-size:0;max-height:100vh;overflow:auto}.dp-table_view_border_[data-v-07f8d2be]{border-left:1px solid;display:inline-flex!important;flex-direction:column;max-width:100%;max-height:100%;box-sizing:border-box;overflow:auto;position:relative}.dp-table_view_bottom_border_[data-v-07f8d2be]{position:absolute;z-index:4;left:0;bottom:0;width:100%;height:0;border-top:1px solid}.dp-table_view_right_border_[data-v-07f8d2be]{position:absolute;z-index:4;right:0;top:0;width:0;height:100%;border-left:1px solid}.dp-table_view_[data-v-07f8d2be]{flex:1;display:inline-block;width:100%;max-height:100%;font-size:0;position:relative;box-sizing:border-box;overflow:auto}.dp-table_body_view_[data-v-07f8d2be]{display:inline-flex;flex-direction:column;box-sizing:border-box;min-height:50px}.dp-table_body_view_[data-v-07f8d2be]:empty{display:flex;align-items:center;justify-content:center}.dp-table_body_view_[data-v-07f8d2be]:empty:before{content:"\6682\65e0\6570\636e";line-height:2;color:#999}.dp-table_view_>*[data-v-07f8d2be]{font-size:14px}.dp-table_body_item_[data-v-07f8d2be]{display:inline-flex}.dp-table_fixed_bg_[data-v-07f8d2be]{background-color:#fff}.dp-table_fixed_bg_.dp-table_fixed_shadow_[data-v-07f8d2be]{box-shadow:5px 0 8px -3px #e3e3e3}.dp-table_body_item_group_col_[data-v-07f8d2be]{display:flex;flex-direction:column;flex-shrink:0}.dp-table_body_item_group_col_>*[data-v-07f8d2be]{flex:1}.dp-table_body_item_child_[data-v-07f8d2be]{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-07f8d2be]{position:sticky;bottom:0;display:inline-flex;background-color:#fff;overflow:visible}.dp-table_total_border_[data-v-07f8d2be]{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}.icon[data-v-3766159a]{vertical-align:-.15em;fill:currentColor;overflow:hidden;font-size:0}.dp-capsule_view_[data-v-8d631704]{display:inline-flex;position:relative;flex-shrink:0;margin:2px}.dp-capsule_view_[data-v-8d631704]:before{content:"";position:absolute;left:-2px;top:-2px;right:-2px;bottom:-2px;border:1px solid #4386f5;border-radius:200px}.pointer[data-v-8d631704]{cursor:pointer}.dp-capsule_view_active_[data-v-8d631704]{position:absolute;transition:left .1s;top:0;border-radius:200px;height:100%}.dp-capsule_view_item_[data-v-8d631704]{flex:1;position:relative;z-index:2;padding:0 10px;text-align:center;line-height:1.8;white-space:nowrap}.dp-toggleraw_icon_[data-v-41c0d3a5]{padding:5px}.dp-toggleraw_content_[data-v-41c0d3a5]{display:flex;align-items:center;justify-content:space-between}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dpot-ui",
3
3
  "private": false,
4
- "version": "0.1.10",
4
+ "version": "0.2.0",
5
5
  "author": "Jeesn",
6
6
  "main": "./dist/index.es.js",
7
7
  "module": "./dist/index.es.js",