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

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([
@@ -19332,7 +19335,7 @@ const useClass = (props2, targetColumns, root, reactiveProp, pageData) => {
19332
19335
  const resolveHeight = resolvePropHeight(props2.height, autoHeight.value);
19333
19336
  const resolveHeadHeight = getHeadHeight();
19334
19337
  const resolveMinHeight = resolvePropHeight(props2.minHeight, autoHeight.value);
19335
- const resolveFooterHeight = props2.pagination && props2.data.length ? LINE_HEIGHT : 0;
19338
+ const resolveFooterHeight = props2.pagination && props2.data.length ? props2.paginationHeihgt : 0;
19336
19339
  const contentHeight = resolveHeight - resolveHeadHeight - resolveFooterHeight;
19337
19340
  const height = props2.height !== "auto" ? `${contentHeight}px` : false;
19338
19341
  const minHeight = resolveMinHeight - resolveHeadHeight - resolveFooterHeight;
@@ -20000,6 +20003,9 @@ var Component$e = defineComponent({
20000
20003
  height: 0,
20001
20004
  display: "none"
20002
20005
  };
20006
+ const footerStyle = computed(() => ({
20007
+ "--footer-height": `${props2.paginationHeihgt}px`
20008
+ }));
20003
20009
  const {
20004
20010
  renderScrollLoading
20005
20011
  } = useScrollLoading(props2, ctx);
@@ -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