3h1-ui 2.10.0 → 2.10.2

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/es/index.js CHANGED
@@ -13527,7 +13527,7 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
13527
13527
  paginationHeight += 24;
13528
13528
  }
13529
13529
  } else {
13530
- paginationHeight = -8;
13530
+ paginationHeight = 0;
13531
13531
  }
13532
13532
  let footerHeight = 0;
13533
13533
  if (!isBoolean(pagination)) {
@@ -13564,8 +13564,8 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
13564
13564
  bottomIncludeBody = getViewportOffset(headEl).bottomIncludeBody;
13565
13565
  }
13566
13566
  let height = bottomIncludeBody - (resizeHeightOffset || 0) - paddingHeight - paginationHeight - footerHeight - headerHeight;
13567
- height = (height > maxHeight ? maxHeight : height) ?? height;
13568
- height = Math.ceil(height);
13567
+ height = height > maxHeight ? maxHeight : height;
13568
+ height = Math.floor(height);
13569
13569
  setHeight(height);
13570
13570
  bodyEl.style.height = `${height}px`;
13571
13571
  }
@@ -13596,10 +13596,11 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
13596
13596
  }
13597
13597
  const table2 = unref(tableElRef);
13598
13598
  const tableWidth = ((_a2 = table2 == null ? void 0 : table2.$el) == null ? void 0 : _a2.offsetWidth) ?? 0;
13599
+ unref(getDataSourceRef);
13599
13600
  return tableWidth > width ? "100%" : width;
13600
13601
  });
13601
13602
  const getScrollRef = computed(() => {
13602
- const tableHeight = unref(tableHeightRef);
13603
+ const tableHeight = tableHeightRef.value;
13603
13604
  const { canResize, scroll } = unref(propsRef);
13604
13605
  return {
13605
13606
  x: unref(getScrollX),
@@ -16038,7 +16039,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
16038
16039
  emptyText: withCtx(() => [
16039
16040
  createElementVNode("div", {
16040
16041
  class: "flex justify-center items-center",
16041
- style: normalizeStyle({ height: `${_ctx.getHeight.y - 40}px` })
16042
+ style: normalizeStyle({ height: `${_ctx.getHeight.y - 41}px` })
16042
16043
  }, [
16043
16044
  createVNode(_component_Empty)
16044
16045
  ], 4)
package/es/style.css CHANGED
@@ -25666,6 +25666,30 @@ span.iconify {
25666
25666
  .shy-basic-table .ant-table-container {
25667
25667
  border-bottom: 1px solid #f0f0f0;
25668
25668
  border-right: 1px solid #f0f0f0;
25669
+ }
25670
+ .shy-basic-table .hide-scrollbar-x .ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-content .ant-table-scroll .ant-table-hide-scrollbar {
25671
+ overflow-x: auto !important;
25672
+ }
25673
+ .shy-basic-table .hide-scrollbar-x .ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-content .ant-table-scroll .ant-table-body {
25674
+ overflow: auto !important;
25675
+ }
25676
+ .shy-basic-table .hide-scrollbar-x .ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-content .ant-table-fixed-right .ant-table-body-outer .ant-table-body-inner {
25677
+ overflow-x: auto !important;
25678
+ }
25679
+ .shy-basic-table .hide-scrollbar-x .ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-content .ant-table-fixed-left .ant-table-body-outer .ant-table-body-inner {
25680
+ overflow-x: auto !important;
25681
+ }
25682
+ .hide-scrollbar-y .ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-content .ant-table-scroll .ant-table-hide-scrollbar {
25683
+ overflow-y: auto !important;
25684
+ }
25685
+ .hide-scrollbar-y .ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-content .ant-table-scroll .ant-table-body {
25686
+ overflow-y: auto !important;
25687
+ }
25688
+ .hide-scrollbar-y .ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-content .ant-table-fixed-right .ant-table-body-outer .ant-table-body-inner {
25689
+ overflow-y: auto !important;
25690
+ }
25691
+ .hide-scrollbar-y .ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-content .ant-table-fixed-left .ant-table-body-outer .ant-table-body-inner {
25692
+ overflow-y: auto !important;
25669
25693
  }.wrapper[data-v-dbd84c9c] {
25670
25694
  display: flex;
25671
25695
  }
@@ -3,7 +3,7 @@ import { Ref, ComputedRef } from 'vue';
3
3
  export declare function useTableScroll(propsRef: ComputedRef<BasicTableProps>, tableElRef: Ref<ComponentRef>, columnsRef: ComputedRef<BasicColumn[]>, rowSelectionRef: ComputedRef<TableRowSelection | null>, getDataSourceRef: ComputedRef<Recordable[]>, wrapRef: Ref<HTMLElement | null>, formRef: Ref<ComponentRef>): {
4
4
  getScrollRef: ComputedRef<{
5
5
  x: string | number | true;
6
- y: string | number;
6
+ y: number;
7
7
  scrollToFirstRowOnChange: boolean;
8
8
  }>;
9
9
  redoHeight: () => void;
package/lib/index.js CHANGED
@@ -13529,7 +13529,7 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
13529
13529
  paginationHeight += 24;
13530
13530
  }
13531
13531
  } else {
13532
- paginationHeight = -8;
13532
+ paginationHeight = 0;
13533
13533
  }
13534
13534
  let footerHeight = 0;
13535
13535
  if (!utils.isBoolean(pagination)) {
@@ -13566,8 +13566,8 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
13566
13566
  bottomIncludeBody = utils.getViewportOffset(headEl).bottomIncludeBody;
13567
13567
  }
13568
13568
  let height = bottomIncludeBody - (resizeHeightOffset || 0) - paddingHeight - paginationHeight - footerHeight - headerHeight;
13569
- height = (height > maxHeight ? maxHeight : height) ?? height;
13570
- height = Math.ceil(height);
13569
+ height = height > maxHeight ? maxHeight : height;
13570
+ height = Math.floor(height);
13571
13571
  setHeight(height);
13572
13572
  bodyEl.style.height = `${height}px`;
13573
13573
  }
@@ -13598,10 +13598,11 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
13598
13598
  }
13599
13599
  const table2 = vue.unref(tableElRef);
13600
13600
  const tableWidth = ((_a2 = table2 == null ? void 0 : table2.$el) == null ? void 0 : _a2.offsetWidth) ?? 0;
13601
+ vue.unref(getDataSourceRef);
13601
13602
  return tableWidth > width ? "100%" : width;
13602
13603
  });
13603
13604
  const getScrollRef = vue.computed(() => {
13604
- const tableHeight = vue.unref(tableHeightRef);
13605
+ const tableHeight = tableHeightRef.value;
13605
13606
  const { canResize, scroll } = vue.unref(propsRef);
13606
13607
  return {
13607
13608
  x: vue.unref(getScrollX),
@@ -16040,7 +16041,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
16040
16041
  emptyText: vue.withCtx(() => [
16041
16042
  vue.createElementVNode("div", {
16042
16043
  class: "flex justify-center items-center",
16043
- style: vue.normalizeStyle({ height: `${_ctx.getHeight.y - 40}px` })
16044
+ style: vue.normalizeStyle({ height: `${_ctx.getHeight.y - 41}px` })
16044
16045
  }, [
16045
16046
  vue.createVNode(_component_Empty)
16046
16047
  ], 4)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "2.10.0",
3
+ "version": "2.10.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",