qidian-vue-ui 2.0.10 → 2.0.11

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.
@@ -1,66 +1,66 @@
1
- .qd-service-table[data-v-70f0f849] {
1
+ .qd-service-table[data-v-98a1baeb] {
2
2
  height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  }
6
- .qd-service-table[data-v-70f0f849] > .t-table__content {
6
+ .qd-service-table[data-v-98a1baeb] > .t-table__content {
7
7
  flex: 1;
8
8
  }
9
- .qd-service-table--mini[data-v-70f0f849] {
9
+ .qd-service-table--mini[data-v-98a1baeb] {
10
10
  font: var(--td-font-body-small);
11
11
  }
12
- .qd-service-table--mini[data-v-70f0f849] th,
13
- .qd-service-table--mini[data-v-70f0f849] tr:not(.t-table__expanded-row) > td {
12
+ .qd-service-table--mini[data-v-98a1baeb] th,
13
+ .qd-service-table--mini[data-v-98a1baeb] tr:not(.t-table__expanded-row) > td {
14
14
  padding: var(--td-comp-paddingTB-xxs) var(--td-comp-paddingLR-xxs);
15
15
  line-height: var(--td-line-height-body-small);
16
16
  }
17
- .qd-service-table[data-v-70f0f849] .t-table__tree-col:not(:has(.t-table__tree-op-icon)) {
17
+ .qd-service-table[data-v-98a1baeb] .t-table__tree-col:not(:has(.t-table__tree-op-icon)) {
18
18
  margin-left: calc(var(--td-font-size-body-large) + var(--td-comp-margin-s));
19
19
  }
20
- .qd-service-table[data-v-70f0f849] .t-table__tree-leaf-node .t-table__tree-op-icon:empty {
20
+ .qd-service-table[data-v-98a1baeb] .t-table__tree-leaf-node .t-table__tree-op-icon:empty {
21
21
  width: calc(var(--td-font-size-body-large) + var(--td-comp-margin-s));
22
22
  }
23
- .qd-service-table[data-v-70f0f849] .t-affix > .t-table__affixed-header-elm-wrap,
24
- .qd-service-table[data-v-70f0f849] .t-affix > .t-table__scrollbar--obvious {
25
- transform: var(--v7c61d920);
23
+ .qd-service-table[data-v-98a1baeb] .t-affix > .t-table__affixed-header-elm-wrap,
24
+ .qd-service-table[data-v-98a1baeb] .t-affix > .t-table__scrollbar--obvious {
25
+ transform: var(--dfe9a5de);
26
26
  }
27
- .qd-service-table--horizontal-bar-static[data-v-70f0f849] .t-table__scrollbar--obvious {
27
+ .qd-service-table--horizontal-bar-static[data-v-98a1baeb] .t-table__scrollbar--obvious {
28
28
  visibility: hidden;
29
29
  pointer-events: none;
30
30
  }
31
- .qd-service-table[data-v-70f0f849] .t-table__affixed-header-elm-wrap {
31
+ .qd-service-table[data-v-98a1baeb] .t-table__affixed-header-elm-wrap {
32
32
  height: auto !important;
33
33
  }
34
- .qd-service-table[data-v-70f0f849] .t-table__affixed-header-elm {
34
+ .qd-service-table[data-v-98a1baeb] .t-table__affixed-header-elm {
35
35
  position: relative;
36
36
  scrollbar-width: none;
37
37
  }
38
- .qd-service-table[data-v-70f0f849] .t-table__affixed-header-elm::-webkit-scrollbar {
38
+ .qd-service-table[data-v-98a1baeb] .t-table__affixed-header-elm::-webkit-scrollbar {
39
39
  display: none;
40
40
  width: 0;
41
41
  height: 0;
42
42
  }
43
- .qd-service-table[data-v-70f0f849] .t-table__virtual-scroll-cursor + table {
43
+ .qd-service-table[data-v-98a1baeb] .t-table__virtual-scroll-cursor + table {
44
44
  border-collapse: separate;
45
45
  }
46
- .qd-service-table[data-v-70f0f849] .t-table__expanded-row-inner {
46
+ .qd-service-table[data-v-98a1baeb] .t-table__expanded-row-inner {
47
47
  position: sticky;
48
48
  left: 0;
49
- width: var(--v30216815) !important;
49
+ width: var(--v7ade7674) !important;
50
50
  }
51
- .qd-service-table[data-v-70f0f849] .t-table__cell-wrap > *:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
51
+ .qd-service-table[data-v-98a1baeb] .t-table__cell-wrap > *:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
52
52
  width: 100%;
53
53
  }
54
- .qd-service-table[data-v-70f0f849] .qd-service-table__non-editable-col {
54
+ .qd-service-table[data-v-98a1baeb] .qd-service-table__non-editable-col {
55
55
  background-color: color-mix(in srgb, var(--td-bg-color-component) 50%, transparent);
56
56
  }
57
- .qd-service-table[data-v-70f0f849] .qd-service-table__non-editable-col:is(
57
+ .qd-service-table[data-v-98a1baeb] .qd-service-table__non-editable-col:is(
58
58
  .t-table__cell--fixed-left,
59
59
  .t-table__cell--fixed-right
60
60
  ) {
61
61
  background-color: inherit;
62
62
  background-image: linear-gradient(color-mix(in srgb, var(--td-bg-color-secondarycontainer) 50%, transparent), color-mix(in srgb, var(--td-bg-color-secondarycontainer) 50%, transparent));
63
63
  }
64
- .qd-service-table--disable-horizontal-scroll[data-v-70f0f849] colgroup > col {
64
+ .qd-service-table--disable-horizontal-scroll[data-v-98a1baeb] colgroup > col {
65
65
  width: auto !important;
66
66
  }
@@ -2,7 +2,7 @@ import './index.css'
2
2
  import _sfc_main from "./index.vue2.mjs";
3
3
  /* empty css */
4
4
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
5
- const QdServiceTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-70f0f849"]]);
5
+ const QdServiceTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-98a1baeb"]]);
6
6
  export {
7
7
  QdServiceTable as default
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import './index.css'
2
2
  import { defineComponent, mergeDefaults, useCssVars, computed, ref, useSlots, useTemplateRef, shallowRef, inject, getCurrentInstance, reactive, createVNode, watch, nextTick, onMounted, onActivated, onDeactivated, onBeforeUnmount, withDirectives, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, isRef, createSlots, withCtx, renderList, renderSlot, normalizeProps, guardReactiveProps, render, h } from "vue";
3
3
  import { useVModels, useElementSize, useElementBounding, useIntersectionObserver } from "../../../node_modules/.pnpm/@vueuse_core@14.2.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs";
4
- import { useActivated, useTimer, easyCopy, isEmpty, suspectedWrapperPromise, useServicePagination, createExposeProxy, resizeDirective, getScrollEl } from "qidian-shared";
4
+ import { useActivated, useTimer, easyCopy, isEmpty, suspectedWrapperPromise, getScrollEl, useServicePagination, createExposeProxy, resizeDirective } from "qidian-shared";
5
5
  import { LoadingIcon, AddRectangleIcon, MinusRectangleIcon } from "tdesign-icons-vue-next";
6
6
  import { EnhancedTable, Table, Empty } from "tdesign-vue-next";
7
7
  import { validate } from "tdesign-vue-next/es/form/utils/form-model.mjs";
@@ -321,8 +321,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
321
321
  emit: __emit
322
322
  }) {
323
323
  useCssVars((_ctx) => ({
324
- "v7c61d920": affixedHeaderTransform.value,
325
- "v30216815": expandedRowWidth.value
324
+ "dfe9a5de": affixedHeaderTransform.value,
325
+ "v7ade7674": expandedRowWidth.value
326
326
  }));
327
327
  const props = __props;
328
328
  const emit = __emit;
@@ -434,10 +434,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
434
434
  return width > 0 ? `${width}px` : "auto";
435
435
  });
436
436
  const affixBottomOffset = ref(0);
437
- const horizontalAffixBottomOffset = computed(() => {
438
- if (!outsideScrollEl.value) return affixBottomOffset.value;
439
- return Math.max(0, window.innerHeight - outsideScrollRect.bottom + affixBottomOffset.value);
440
- });
441
437
  const {
442
438
  timer: probeDelayTimer,
443
439
  clearTimer: clearProbeDelayTimer
@@ -685,11 +681,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
685
681
  ...horizontalScrollAffixProps
686
682
  } = typeof horizontalScrollAffixedBottom === "object" ? horizontalScrollAffixedBottom : {};
687
683
  const reHorizontalScrollAffixedBottom = horizontalScrollAffixedBottom === false ? false : {
688
- ...outsideScrollEl.value ? {
689
- container: () => outsideScrollEl.value
690
- } : {},
684
+ container: () => outsideScrollEl.value ?? getScrollEl(tableRef.value?.$el),
691
685
  ...horizontalScrollAffixProps,
692
- offsetBottom: horizontalScrollOffsetBottom + horizontalAffixBottomOffset.value,
686
+ offsetBottom: horizontalScrollOffsetBottom + affixBottomOffset.value,
693
687
  onFixedChange: (...args) => {
694
688
  const [affixed, context] = args;
695
689
  onHorizontalScrollFixedChange?.(affixed, context);
@@ -712,9 +706,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
712
706
  ...headerAffixProps
713
707
  } = headerAffixOptions;
714
708
  const reHeaderAffixedTop = headerAffixedTop && headerAffixedNeeded.value ? {
715
- ...outsideScrollEl.value ? {
716
- container: () => outsideScrollEl.value
717
- } : {},
709
+ container: () => outsideScrollEl.value ?? getScrollEl(tableRef.value?.$el),
718
710
  ...headerAffixProps,
719
711
  onFixedChange: (...args) => {
720
712
  const [affixed, context] = args;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qidian-vue-ui",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "基于 TDesign 的 QiDian Vue UI 组件库",
5
5
  "author": "qidian",
6
6
  "license": "MIT",