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-
|
|
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-
|
|
6
|
+
.qd-service-table[data-v-98a1baeb] > .t-table__content {
|
|
7
7
|
flex: 1;
|
|
8
8
|
}
|
|
9
|
-
.qd-service-table--mini[data-v-
|
|
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-
|
|
13
|
-
.qd-service-table--mini[data-v-
|
|
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-
|
|
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-
|
|
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-
|
|
24
|
-
.qd-service-table[data-v-
|
|
25
|
-
transform: var(--
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
46
|
+
.qd-service-table[data-v-98a1baeb] .t-table__expanded-row-inner {
|
|
47
47
|
position: sticky;
|
|
48
48
|
left: 0;
|
|
49
|
-
width: var(--
|
|
49
|
+
width: var(--v7ade7674) !important;
|
|
50
50
|
}
|
|
51
|
-
.qd-service-table[data-v-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
-
"
|
|
325
|
-
"
|
|
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
|
-
|
|
689
|
-
container: () => outsideScrollEl.value
|
|
690
|
-
} : {},
|
|
684
|
+
container: () => outsideScrollEl.value ?? getScrollEl(tableRef.value?.$el),
|
|
691
685
|
...horizontalScrollAffixProps,
|
|
692
|
-
offsetBottom: horizontalScrollOffsetBottom +
|
|
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
|
-
|
|
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;
|