bkui-vue 0.0.2-beta.6 → 0.0.2-beta.8

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.esm.js CHANGED
@@ -13830,6 +13830,10 @@ const n4 = {
13830
13830
  isShow: v.bool.def(!0),
13831
13831
  cellFn: v.func.def(void 0)
13832
13832
  }),
13833
+ /**
13834
+ * 是否为斑马纹 Table
13835
+ */
13836
+ stripe: v.bool.def(!1),
13833
13837
  /**
13834
13838
  * 是否启用虚拟渲染 & 滚动
13835
13839
  * 当数据量很大时,启用虚拟渲染可以解决压面卡顿问题
@@ -15494,12 +15498,12 @@ class sT {
15494
15498
  } = this.setting;
15495
15499
  return a != null ? nn(this.setting, "height", ["tbody", t, n, i]) : nn(this.props, "rowHeight", ["tbody", t, n]);
15496
15500
  });
15497
- Ae(this, "getColumnClass", (t, n) => ({
15501
+ Ae(this, "getColumnClass", (t, n) => [{
15498
15502
  [`${this.uuid}-column-${n}`]: !0,
15499
15503
  column_fixed: !!t.fixed,
15500
15504
  column_fixed_left: !!t.fixed,
15501
15505
  column_fixed_right: t.fixed === "right"
15502
- }));
15506
+ }, t.className]);
15503
15507
  Ae(this, "getHeadColumnClass", (t, n) => ({
15504
15508
  ...this.getColumnClass(t, n),
15505
15509
  active: this.isColActive(n)
@@ -15775,7 +15779,7 @@ class sT {
15775
15779
  return f("tbody", null, [t.map((a, r) => {
15776
15780
  const o = [...Wr(this.props.rowStyle, [a, r, this]), {
15777
15781
  "--row-height": `${this.getRowHeight(a, r)}px`
15778
- }], u = [...Wr(this.props.rowClass, [a, r, this]), `hover-${this.props.rowHover}`];
15782
+ }], u = [...Wr(this.props.rowClass, [a, r, this]), `hover-${this.props.rowHover}`, r % 2 === 1 && this.props.stripe ? "stripe-row" : ""];
15779
15783
  return [f(Jd, null, {
15780
15784
  default: () => [f("tr", {
15781
15785
  style: o,