bkui-vue 0.0.1-beta.370 → 0.0.1-beta.372

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
@@ -14848,7 +14848,7 @@ function computedVirtualIndex(lineHeight, callback, pagination2, el, event) {
14848
14848
  }
14849
14849
  const elScrollTop = el.scrollTop;
14850
14850
  const elScrollLeft = el.scrollLeft;
14851
- const { scrollTop: scrollTop2, count, groupItemCount, startIndex, endIndex } = pagination2;
14851
+ const { scrollTop: scrollTop2, count, groupItemCount, startIndex, endIndex, scrollLeft } = pagination2;
14852
14852
  const { offsetHeight } = el;
14853
14853
  let targetStartIndex = 0;
14854
14854
  let targetEndIndex = 0;
@@ -14865,7 +14865,7 @@ function computedVirtualIndex(lineHeight, callback, pagination2, el, event) {
14865
14865
  const endValue = getMatchedIndex(count, offsetHeight, groupItemCount, lineHeight);
14866
14866
  targetEndIndex = endValue.startIndex + targetStartIndex + 1;
14867
14867
  }
14868
- if (elScrollTop !== scrollTop2 || targetStartIndex !== startIndex || targetEndIndex !== endIndex) {
14868
+ if (elScrollTop !== scrollTop2 || targetStartIndex !== startIndex || targetEndIndex !== endIndex || scrollLeft !== elScrollLeft) {
14869
14869
  const bottom2 = el.scrollHeight - el.offsetHeight - el.scrollTop;
14870
14870
  typeof callback === "function" && callback(event, targetStartIndex, targetEndIndex, elScrollTop, translateY, elScrollLeft, { bottom: bottom2 >= 0 ? bottom2 : 0 });
14871
14871
  }
@@ -14879,8 +14879,8 @@ function visibleRender(e, wrapper, binding) {
14879
14879
  handleScrollCallback(e, null, null, elScrollTop, elScrollTop, elScrollLeft, { bottom: bottom2 >= 0 ? bottom2 : 0 });
14880
14880
  return;
14881
14881
  }
14882
- const { startIndex, endIndex, groupItemCount, count, scrollTop: scrollTop2 } = pagination2;
14883
- computedVirtualIndex(lineHeight, handleScrollCallback, { scrollTop: scrollTop2, startIndex, endIndex, groupItemCount, count }, wrapper, e);
14882
+ const { startIndex, endIndex, groupItemCount, count, scrollTop: scrollTop2, scrollLeft } = pagination2;
14883
+ computedVirtualIndex(lineHeight, handleScrollCallback, { scrollTop: scrollTop2, startIndex, endIndex, groupItemCount, count, scrollLeft }, wrapper, e);
14884
14884
  }
14885
14885
  const throttledRender = (delay = 60) => lodash.exports.throttle((e, wrapper, binding) => visibleRender(e, wrapper, binding), delay);
14886
14886
  const executeThrottledRender = (e, wrapper, binding, delay = 60) => {
@@ -14936,6 +14936,7 @@ var Component$l = defineComponent({
14936
14936
  startIndex: 0,
14937
14937
  endIndex: 0,
14938
14938
  scrollTop: 1,
14939
+ scrollLeft: 0,
14939
14940
  translateY: 0,
14940
14941
  translateX: 0,
14941
14942
  count: 0,
@@ -14948,6 +14949,7 @@ var Component$l = defineComponent({
14948
14949
  pagination2.scrollTop = scrollTop2;
14949
14950
  pagination2.translateY = translateY;
14950
14951
  pagination2.translateX = scrollLeft;
14952
+ pagination2.scrollLeft = scrollLeft;
14951
14953
  pagination2.pos = pos;
14952
14954
  ctx.emit("content-scroll", [event, pagination2]);
14953
14955
  };
@@ -16505,6 +16507,7 @@ const tableProps = {
16505
16507
  PropTypes.string
16506
16508
  ]).def([BORDER_OPTION.ROW]),
16507
16509
  pagination: PropTypes.oneOfType([PropTypes.bool.def(false), PropTypes.object.def({})]).def(false),
16510
+ paginationHeihgt: PropTypes.number.def(LINE_HEIGHT),
16508
16511
  remotePagination: PropTypes.bool.def(false),
16509
16512
  emptyText: PropTypes.string.def("\u6682\u65E0\u6570\u636E"),
16510
16513
  settings: PropTypes.oneOfType([
@@ -18515,8 +18518,7 @@ var Settings = defineComponent({
18515
18518
  }) : "";
18516
18519
  }
18517
18520
  });
18518
- var useFixedColumn = (props2, colgroups, hasScrollY) => {
18519
- const footHeight = computed(() => props2.pagination && props2.data.length ? LINE_HEIGHT : 0);
18521
+ var useFixedColumn = (_props, colgroups, hasScrollY) => {
18520
18522
  const resolveColumnClass = (column, scrollX, offsetRight) => ({
18521
18523
  column_fixed: !!column.fixed,
18522
18524
  column_fixed_left: column.fixed !== "right",
@@ -18574,7 +18576,7 @@ var useFixedColumn = (props2, colgroups, hasScrollY) => {
18574
18576
  };
18575
18577
  const resolveColumnStyle = (colPos) => ({
18576
18578
  width: `${resolveFixOffset[colPos](false)}px`,
18577
- bottom: `${footHeight.value}px`
18579
+ bottom: "0px"
18578
18580
  });
18579
18581
  const colPosExist = {
18580
18582
  left: false,
@@ -19332,7 +19334,7 @@ const useClass = (props2, targetColumns, root, reactiveProp, pageData) => {
19332
19334
  const resolveHeight = resolvePropHeight(props2.height, autoHeight.value);
19333
19335
  const resolveHeadHeight = getHeadHeight();
19334
19336
  const resolveMinHeight = resolvePropHeight(props2.minHeight, autoHeight.value);
19335
- const resolveFooterHeight = props2.pagination && props2.data.length ? LINE_HEIGHT : 0;
19337
+ const resolveFooterHeight = props2.pagination && props2.data.length ? props2.paginationHeihgt : 0;
19336
19338
  const contentHeight = resolveHeight - resolveHeadHeight - resolveFooterHeight;
19337
19339
  const height = props2.height !== "auto" ? `${contentHeight}px` : false;
19338
19340
  const minHeight = resolveMinHeight - resolveHeadHeight - resolveFooterHeight;
@@ -20000,6 +20002,9 @@ var Component$e = defineComponent({
20000
20002
  height: 0,
20001
20003
  display: "none"
20002
20004
  };
20005
+ const footerStyle = computed(() => ({
20006
+ "--footer-height": hasFooter.value ? `${props2.paginationHeihgt}px` : "0"
20007
+ }));
20003
20008
  const {
20004
20009
  renderScrollLoading
20005
20010
  } = useScrollLoading(props2, ctx);
@@ -20038,7 +20043,8 @@ var Component$e = defineComponent({
20038
20043
  }, null)
20039
20044
  }),
20040
20045
  createVNode("div", {
20041
- "class": fixedWrapperClass
20046
+ "class": fixedWrapperClass,
20047
+ "style": footerStyle.value
20042
20048
  }, [renderFixedColumns(reactiveSchema.scrollTranslateX, tableOffsetRight.value), createVNode("div", {
20043
20049
  "class": resizeColumnClass,
20044
20050
  "style": resizeColumnStyle.value
@@ -20046,7 +20052,8 @@ var Component$e = defineComponent({
20046
20052
  "class": loadingRowClass
20047
20053
  }, [renderScrollLoading()])]),
20048
20054
  createVNode("div", {
20049
- "class": footerClass.value
20055
+ "class": footerClass.value,
20056
+ "style": footerStyle.value
20050
20057
  }, [hasFooter.value && tableRender.renderTableFooter(localPagination.value)]),
20051
20058
  createVNode("div", {
20052
20059
  "style": columnGhostStyle