qidian-vue-ui 2.0.0-beta.8 → 2.0.0
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/components/config-renderer/utils.d.ts +1 -1
- package/dist/components/config-renderer/utils.mjs +6 -1
- package/dist/components/dialog/index.vue.mjs +15 -2
- package/dist/components/service/table/edit-cell.d.ts +8 -0
- package/dist/components/service/table/edit-cell.mjs +10 -2
- package/dist/components/service/table/index.css +19 -19
- package/dist/components/service/table/index.vue.mjs +1 -1
- package/dist/components/service/table/index.vue2.mjs +25 -10
- package/dist/components/service-dialog-table-select/index.css +10 -10
- package/dist/components/service-dialog-table-select/index.vue.d.ts +2 -0
- package/dist/components/service-dialog-table-select/index.vue.mjs +1 -1
- package/dist/components/service-dialog-table-select/index.vue2.mjs +7 -3
- package/dist/components/service-dialog-tabs-table-select/index.css +10 -10
- package/dist/components/service-dialog-tabs-table-select/index.vue.d.ts +4 -0
- package/dist/components/service-dialog-tabs-table-select/index.vue.mjs +1 -1
- package/dist/components/service-dialog-tabs-table-select/index.vue2.mjs +9 -3
- package/package.json +1 -1
|
@@ -14,4 +14,4 @@ export declare function createVModelBinding(context: Record<string, unknown>, vM
|
|
|
14
14
|
'onUpdate:modelValue': (value: unknown) => void;
|
|
15
15
|
};
|
|
16
16
|
export declare function resolveVModelBinding(context: Record<string, unknown>, vModel?: string, defaultValue?: unknown): Record<string, unknown>;
|
|
17
|
-
export declare function wrapFunctionalRenderer(fn: Component):
|
|
17
|
+
export declare function wrapFunctionalRenderer(fn: Component): Component;
|
|
@@ -41,8 +41,11 @@ function resolveVModelBinding(context, vModel, defaultValue) {
|
|
|
41
41
|
return bindings;
|
|
42
42
|
}
|
|
43
43
|
const RENDERER_INTERNAL_KEYS = /* @__PURE__ */ new Set(["context", "config", "crudMode", "fnInjectCtx"]);
|
|
44
|
+
const functionalRendererCache = /* @__PURE__ */ new WeakMap();
|
|
44
45
|
function wrapFunctionalRenderer(fn) {
|
|
45
|
-
|
|
46
|
+
const cached = functionalRendererCache.get(fn);
|
|
47
|
+
if (cached) return cached;
|
|
48
|
+
const wrapped = defineComponent({
|
|
46
49
|
name: "QdFunctionalRenderer",
|
|
47
50
|
inheritAttrs: false,
|
|
48
51
|
setup(_props, { attrs }) {
|
|
@@ -60,6 +63,8 @@ function wrapFunctionalRenderer(fn) {
|
|
|
60
63
|
};
|
|
61
64
|
}
|
|
62
65
|
});
|
|
66
|
+
functionalRendererCache.set(fn, wrapped);
|
|
67
|
+
return wrapped;
|
|
63
68
|
}
|
|
64
69
|
export {
|
|
65
70
|
createVModelBinding,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import { defineComponent, mergeDefaults, getCurrentInstance, reactive, ref, computed, watch, onActivated, nextTick, onDeactivated, onBeforeUnmount, createBlock, openBlock, unref, mergeProps, isRef, createSlots, withCtx, renderSlot, createCommentVNode, Teleport, createElementBlock, resolveDynamicComponent, Fragment, renderList, normalizeProps } from "vue";
|
|
2
|
+
import { defineComponent, mergeDefaults, getCurrentInstance, reactive, ref, computed, watch, onActivated, nextTick, onDeactivated, onBeforeUnmount, createBlock, openBlock, unref, mergeProps, isRef, createSlots, withCtx, renderSlot, createCommentVNode, Teleport, createElementBlock, resolveDynamicComponent, Fragment, renderList, normalizeProps, Comment, Text } from "vue";
|
|
3
3
|
import { useDraggable, useVModels } 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
4
|
import { useActivated, domOn, suspectedWrapperPromise, isEmpty, filterSlots } from "qidian-shared";
|
|
5
5
|
import { FullscreenExitIcon, FullscreenIcon } from "tdesign-icons-vue-next";
|
|
@@ -205,6 +205,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
205
205
|
() => currentMode.value === "full-screen" || reProps.value.dialogOptions.mode === "full-screen"
|
|
206
206
|
);
|
|
207
207
|
const dragDisabled = computed(() => visible.value ? isFullscreen.value : false);
|
|
208
|
+
function hasSlotContent(slot) {
|
|
209
|
+
return hasValidSlotChild(slot());
|
|
210
|
+
}
|
|
211
|
+
function hasValidSlotChild(children) {
|
|
212
|
+
if (children === null || children === void 0 || typeof children === "boolean") return false;
|
|
213
|
+
if (typeof children === "string") return children.trim().length > 0;
|
|
214
|
+
if (typeof children === "number") return true;
|
|
215
|
+
if (Array.isArray(children)) return children.some(hasValidSlotChild);
|
|
216
|
+
const vnode = children;
|
|
217
|
+
if (vnode.type === Comment) return false;
|
|
218
|
+
if (vnode.type === Text || vnode.type === Fragment) return hasValidSlotChild(vnode.children);
|
|
219
|
+
return true;
|
|
220
|
+
}
|
|
208
221
|
function getDefaultFullscreenBtn(width) {
|
|
209
222
|
if (width === void 0) return true;
|
|
210
223
|
if (typeof width === "number") return width > 500;
|
|
@@ -311,7 +324,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
311
324
|
to: `.${uniqueClassName} .t-dialog__footer`,
|
|
312
325
|
defer: ""
|
|
313
326
|
}, [
|
|
314
|
-
_ctx.$slots["footer-extend"]
|
|
327
|
+
(_ctx.$slots["footer-extend"] ? hasSlotContent(_ctx.$slots["footer-extend"]) : reProps.value.footerExtend || reProps.value.extendBtns?.length) ? (openBlock(), createBlock(unref(Divider), {
|
|
315
328
|
key: 0,
|
|
316
329
|
layout: "vertical"
|
|
317
330
|
})) : createCommentVNode("", true),
|
|
@@ -39,6 +39,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
39
39
|
type: PropType<TableEditableCellPropsParams<TableRowData>["updateEditedCellValue"]>;
|
|
40
40
|
required: true;
|
|
41
41
|
};
|
|
42
|
+
notifyDataChange: {
|
|
43
|
+
type: PropType<() => void>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
42
46
|
sourceRow: {
|
|
43
47
|
type: PropType<TableRowData>;
|
|
44
48
|
default: undefined;
|
|
@@ -79,6 +83,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
79
83
|
type: PropType<TableEditableCellPropsParams<TableRowData>["updateEditedCellValue"]>;
|
|
80
84
|
required: true;
|
|
81
85
|
};
|
|
86
|
+
notifyDataChange: {
|
|
87
|
+
type: PropType<() => void>;
|
|
88
|
+
required: true;
|
|
89
|
+
};
|
|
82
90
|
sourceRow: {
|
|
83
91
|
type: PropType<TableRowData>;
|
|
84
92
|
default: undefined;
|
|
@@ -13,7 +13,7 @@ function isProxyable(value) {
|
|
|
13
13
|
const prototype = Object.getPrototypeOf(value);
|
|
14
14
|
return prototype === Object.prototype || prototype === null;
|
|
15
15
|
}
|
|
16
|
-
function createRowEditContext(sourceRow, getEditedRow, colKey, updateEditedCellValue, onChange) {
|
|
16
|
+
function createRowEditContext(sourceRow, getEditedRow, colKey, updateEditedCellValue, notifyDataChange, onChange) {
|
|
17
17
|
const proxies = /* @__PURE__ */ new WeakMap();
|
|
18
18
|
function syncValue(path, value) {
|
|
19
19
|
const editedRow = getEditedRow();
|
|
@@ -28,8 +28,11 @@ function createRowEditContext(sourceRow, getEditedRow, colKey, updateEditedCellV
|
|
|
28
28
|
onChange?.(value);
|
|
29
29
|
set(sourceRow, path, value);
|
|
30
30
|
if (editedRow !== sourceRow) set(editedRow, path, value);
|
|
31
|
+
notifyDataChange();
|
|
31
32
|
});
|
|
33
|
+
return;
|
|
32
34
|
}
|
|
35
|
+
notifyDataChange();
|
|
33
36
|
}
|
|
34
37
|
function wrap(target, parentPath = "") {
|
|
35
38
|
const cachedByPath = proxies.get(target) ?? /* @__PURE__ */ new Map();
|
|
@@ -58,6 +61,7 @@ function createRowEditContext(sourceRow, getEditedRow, colKey, updateEditedCellV
|
|
|
58
61
|
[path]: void 0
|
|
59
62
|
});
|
|
60
63
|
if (path === colKey) updateEditedCellValue(void 0);
|
|
64
|
+
notifyDataChange();
|
|
61
65
|
return result;
|
|
62
66
|
}
|
|
63
67
|
});
|
|
@@ -106,6 +110,10 @@ const QdServiceTableEditCell = /* @__PURE__ */ defineComponent({
|
|
|
106
110
|
type: Function,
|
|
107
111
|
required: true
|
|
108
112
|
},
|
|
113
|
+
notifyDataChange: {
|
|
114
|
+
type: Function,
|
|
115
|
+
required: true
|
|
116
|
+
},
|
|
109
117
|
sourceRow: {
|
|
110
118
|
type: Object,
|
|
111
119
|
default: void 0
|
|
@@ -114,7 +122,7 @@ const QdServiceTableEditCell = /* @__PURE__ */ defineComponent({
|
|
|
114
122
|
setup(props, {
|
|
115
123
|
attrs
|
|
116
124
|
}) {
|
|
117
|
-
const currentContext = computed(() => createRowEditContext(props.sourceRow ?? props.row, () => props.row, props.colKey, props.updateEditedCellValue, (value) => {
|
|
125
|
+
const currentContext = computed(() => createRowEditContext(props.sourceRow ?? props.row, () => props.row, props.colKey, props.updateEditedCellValue, props.notifyDataChange, (value) => {
|
|
118
126
|
if (typeof attrs.onChange === "function") attrs.onChange(value);
|
|
119
127
|
}));
|
|
120
128
|
const {
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
.qd-service-table[data-v-
|
|
1
|
+
.qd-service-table[data-v-ae90af38] {
|
|
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-ae90af38] > .t-table__content {
|
|
7
7
|
flex: 1;
|
|
8
8
|
}
|
|
9
|
-
.qd-service-table[data-v-
|
|
9
|
+
.qd-service-table[data-v-ae90af38] .t-table__tree-col:not(:has(.t-table__tree-op-icon)) {
|
|
10
10
|
margin-left: calc(var(--td-font-size-body-large) + var(--td-comp-margin-s));
|
|
11
11
|
}
|
|
12
|
-
.qd-service-table[data-v-
|
|
12
|
+
.qd-service-table[data-v-ae90af38] .t-table__tree-leaf-node .t-table__tree-op-icon:empty {
|
|
13
13
|
width: calc(var(--td-font-size-body-large) + var(--td-comp-margin-s));
|
|
14
14
|
}
|
|
15
|
-
.qd-service-table[data-v-
|
|
16
|
-
.qd-service-table[data-v-
|
|
17
|
-
transform: var(--
|
|
15
|
+
.qd-service-table[data-v-ae90af38] .t-affix > .t-table__affixed-header-elm-wrap,
|
|
16
|
+
.qd-service-table[data-v-ae90af38] .t-affix > .t-table__scrollbar--obvious {
|
|
17
|
+
transform: var(--v42be12ab);
|
|
18
18
|
}
|
|
19
|
-
.qd-service-table--horizontal-bar-static[data-v-
|
|
19
|
+
.qd-service-table--horizontal-bar-static[data-v-ae90af38] .t-table__scrollbar--obvious {
|
|
20
20
|
visibility: hidden;
|
|
21
21
|
pointer-events: none;
|
|
22
22
|
}
|
|
23
|
-
.qd-service-table[data-v-
|
|
23
|
+
.qd-service-table[data-v-ae90af38] .t-table__affixed-header-elm-wrap {
|
|
24
24
|
height: auto !important;
|
|
25
25
|
}
|
|
26
|
-
.qd-service-table[data-v-
|
|
26
|
+
.qd-service-table[data-v-ae90af38] .t-table__affixed-header-elm {
|
|
27
27
|
position: relative;
|
|
28
28
|
scrollbar-width: none;
|
|
29
29
|
}
|
|
30
|
-
.qd-service-table[data-v-
|
|
30
|
+
.qd-service-table[data-v-ae90af38] .t-table__affixed-header-elm::-webkit-scrollbar {
|
|
31
31
|
display: none;
|
|
32
32
|
width: 0;
|
|
33
33
|
height: 0;
|
|
34
34
|
}
|
|
35
|
-
.qd-service-table[data-v-
|
|
35
|
+
.qd-service-table[data-v-ae90af38] .t-table__virtual-scroll-cursor + table {
|
|
36
36
|
border-collapse: separate;
|
|
37
37
|
}
|
|
38
|
-
.qd-service-table[data-v-
|
|
38
|
+
.qd-service-table[data-v-ae90af38] .t-table__expanded-row-inner {
|
|
39
39
|
position: sticky;
|
|
40
40
|
left: 0;
|
|
41
|
-
width: var(--
|
|
41
|
+
width: var(--cf433440) !important;
|
|
42
42
|
}
|
|
43
|
-
.qd-service-table[data-v-
|
|
43
|
+
.qd-service-table[data-v-ae90af38] .t-table__cell-wrap > *:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
|
|
44
44
|
width: 100%;
|
|
45
45
|
}
|
|
46
|
-
.qd-service-table[data-v-
|
|
47
|
-
background-color: color-mix(in srgb, var(--td-bg-color-
|
|
46
|
+
.qd-service-table[data-v-ae90af38] .qd-service-table__non-editable-col {
|
|
47
|
+
background-color: color-mix(in srgb, var(--td-bg-color-component) 50%, transparent);
|
|
48
48
|
}
|
|
49
|
-
.qd-service-table[data-v-
|
|
49
|
+
.qd-service-table[data-v-ae90af38] .qd-service-table__non-editable-col:is(
|
|
50
50
|
.t-table__cell--fixed-left,
|
|
51
51
|
.t-table__cell--fixed-right
|
|
52
52
|
) {
|
|
53
53
|
background-color: inherit;
|
|
54
54
|
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));
|
|
55
55
|
}
|
|
56
|
-
.qd-service-table--disable-horizontal-scroll[data-v-
|
|
56
|
+
.qd-service-table--disable-horizontal-scroll[data-v-ae90af38] colgroup > col {
|
|
57
57
|
width: auto !important;
|
|
58
58
|
}
|
|
@@ -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-ae90af38"]]);
|
|
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 { useTimer, easyCopy, isEmpty, suspectedWrapperPromise, useServicePagination, createExposeProxy, resizeDirective, getScrollEl } from "qidian-shared";
|
|
4
|
+
import { useActivated, useTimer, easyCopy, isEmpty, suspectedWrapperPromise, useServicePagination, createExposeProxy, resizeDirective, getScrollEl } 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 { useModal } from "../../../hooks/useModal.mjs";
|
|
@@ -318,8 +318,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
318
318
|
emit: __emit
|
|
319
319
|
}) {
|
|
320
320
|
useCssVars((_ctx) => ({
|
|
321
|
-
"
|
|
322
|
-
"
|
|
321
|
+
"v42be12ab": affixedHeaderTransform.value,
|
|
322
|
+
"cf433440": expandedRowWidth.value
|
|
323
323
|
}));
|
|
324
324
|
const props = __props;
|
|
325
325
|
const emit = __emit;
|
|
@@ -373,6 +373,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
373
373
|
const treeLoadIds = ref([]);
|
|
374
374
|
const editingCells = shallowRef([]);
|
|
375
375
|
const activeEditingCell = shallowRef();
|
|
376
|
+
let dataChangePending = false;
|
|
377
|
+
const {
|
|
378
|
+
activated
|
|
379
|
+
} = useActivated();
|
|
376
380
|
const formItemColumns = computed(() => flattenFormItemColumns(props.columns || []));
|
|
377
381
|
const editableColumns = computed(() => flattenEditableColumns(props.columns || []));
|
|
378
382
|
const parentAddBeforeSubmitQueue = inject(PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE, void 0);
|
|
@@ -387,6 +391,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
387
391
|
message: context.firstError
|
|
388
392
|
};
|
|
389
393
|
});
|
|
394
|
+
function notifyDataChange() {
|
|
395
|
+
if (dataChangePending) return;
|
|
396
|
+
dataChangePending = true;
|
|
397
|
+
queueMicrotask(() => {
|
|
398
|
+
dataChangePending = false;
|
|
399
|
+
data.value = [...data.value];
|
|
400
|
+
});
|
|
401
|
+
}
|
|
390
402
|
const isVirtualScroll = computed(() => props.scroll?.type === "virtual");
|
|
391
403
|
const currentInstance = getCurrentInstance();
|
|
392
404
|
const offscreenAppContext = currentInstance ? {
|
|
@@ -1054,6 +1066,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1054
1066
|
return slots["cell-empty-content"]?.(context) ?? value;
|
|
1055
1067
|
}
|
|
1056
1068
|
function handleDocumentKeydown(event) {
|
|
1069
|
+
if (!activated.value) return;
|
|
1057
1070
|
if (event.key !== "Escape" || !activeEditingCell.value || event.defaultPrevented) return;
|
|
1058
1071
|
const target = event.target;
|
|
1059
1072
|
if (target?.closest(".t-select-input--popup-visible, .t-popup__content, .t-dialog, .t-drawer, .t-image-viewer, .qd-multi-file-viewer")) {
|
|
@@ -1062,13 +1075,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1062
1075
|
exitActiveEditingCell();
|
|
1063
1076
|
}
|
|
1064
1077
|
function handleDocumentClick(event) {
|
|
1065
|
-
if (!editingCells.value.length) return;
|
|
1066
|
-
const
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1078
|
+
if (!activated.value || !editingCells.value.length) return;
|
|
1079
|
+
const hasVisibleDialog = Array.from(document.querySelectorAll(".t-dialog")).some((element) => element.getClientRects().length);
|
|
1080
|
+
const hasVisibleDrawer = Array.from(document.querySelectorAll(".t-drawer")).some((element) => element.classList.contains("t-drawer--open") || element.getAnimations({
|
|
1081
|
+
subtree: true
|
|
1082
|
+
}).some((animation) => animation.playState === "running"));
|
|
1083
|
+
if (hasVisibleDialog || hasVisibleDrawer) return;
|
|
1084
|
+
const insideInteractiveArea = event.composedPath().some((target) => target instanceof Element && target.matches("td, .t-popup, .qd-dialog, .t-dialog, .t-drawer, .t-image-viewer, .qd-multi-file-viewer, [data-popper-placement]"));
|
|
1085
|
+
if (insideInteractiveArea) return;
|
|
1072
1086
|
void exitAllEditingCells();
|
|
1073
1087
|
}
|
|
1074
1088
|
function getFirstValidationError(results) {
|
|
@@ -1521,6 +1535,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1521
1535
|
label: column.title,
|
|
1522
1536
|
sourceRow: props.data?.find((item) => getRowValue(item) === rowValue) ?? data.value.find((item) => getRowValue(item) === rowValue) ?? row,
|
|
1523
1537
|
updateEditedCellValue: context.updateEditedCellValue,
|
|
1538
|
+
notifyDataChange,
|
|
1524
1539
|
lazy: resolveFormItemLazy(column),
|
|
1525
1540
|
active: !!activeEditingCell.value && isSameEditingCell(activeEditingCell.value, {
|
|
1526
1541
|
row,
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
.qd-dialog-table-select[data-v-
|
|
1
|
+
.qd-dialog-table-select[data-v-0fe40893] {
|
|
2
2
|
width: 100%;
|
|
3
3
|
}
|
|
4
|
-
.qd-dialog-table-select__trigger[data-v-
|
|
4
|
+
.qd-dialog-table-select__trigger[data-v-0fe40893] {
|
|
5
5
|
width: 100%;
|
|
6
6
|
}
|
|
7
|
-
.qd-dialog-table-select__trigger[data-v-
|
|
7
|
+
.qd-dialog-table-select__trigger[data-v-0fe40893]:not(.qd-dialog-table-select__trigger--readonly):not(.qd-dialog-table-select__trigger--disabled) {
|
|
8
8
|
cursor: pointer;
|
|
9
9
|
}
|
|
10
|
-
.qd-dialog-table-select__input-trigger[data-v-
|
|
10
|
+
.qd-dialog-table-select__input-trigger[data-v-0fe40893] {
|
|
11
11
|
border-top-left-radius: 0;
|
|
12
12
|
border-bottom-left-radius: 0;
|
|
13
13
|
}
|
|
14
|
-
.qd-dialog-table-select__table[data-v-
|
|
15
|
-
.qd-dialog-table-select__table[data-v-
|
|
14
|
+
.qd-dialog-table-select__table[data-v-0fe40893] .qd-crud-search > .t-loading__parent > .t-card__body,
|
|
15
|
+
.qd-dialog-table-select__table[data-v-0fe40893] .qd-crud-table__body > .t-loading__parent > .t-card__body {
|
|
16
16
|
padding: 0 !important;
|
|
17
17
|
}
|
|
18
|
-
.qd-dialog-table-select__table[data-v-
|
|
18
|
+
.qd-dialog-table-select__table[data-v-0fe40893] .qd-crud-table__toolbar {
|
|
19
19
|
display: none;
|
|
20
20
|
}
|
|
21
|
-
.qd-dialog-table-select__table[data-v-
|
|
21
|
+
.qd-dialog-table-select__table[data-v-0fe40893] .qd-service-table {
|
|
22
22
|
margin-top: 0;
|
|
23
23
|
}
|
|
24
|
-
.qd-dialog-table-select__table-add[data-v-
|
|
24
|
+
.qd-dialog-table-select__table-add[data-v-0fe40893] {
|
|
25
25
|
margin-top: var(--td-comp-margin-m);
|
|
26
26
|
display: flex;
|
|
27
27
|
}
|
|
28
|
-
.qd-dialog-table-select__table-add .t-input__wrap[data-v-
|
|
28
|
+
.qd-dialog-table-select__table-add .t-input__wrap[data-v-0fe40893] {
|
|
29
29
|
flex: 1 1 0;
|
|
30
30
|
overflow: hidden;
|
|
31
31
|
margin-right: var(--td-comp-margin-m);
|
|
@@ -23,6 +23,8 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
23
23
|
default?: (props: {
|
|
24
24
|
selectedRows: import("@vue/reactivity").UnwrapRefSimple<D>[];
|
|
25
25
|
}) => any;
|
|
26
|
+
} & {
|
|
27
|
+
'dialog-footer-extend'?: (props: {}) => any;
|
|
26
28
|
} & {
|
|
27
29
|
'add-input'?: (props: {
|
|
28
30
|
addCustom: {
|
|
@@ -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 index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0fe40893"]]);
|
|
6
6
|
export {
|
|
7
7
|
index as default
|
|
8
8
|
};
|
|
@@ -758,7 +758,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
758
758
|
"confirm-loading": confirmLoad.value
|
|
759
759
|
}, reProps.value.dialogOptions, {
|
|
760
760
|
onConfirm: handleConfirm
|
|
761
|
-
}), {
|
|
761
|
+
}), createSlots({
|
|
762
762
|
default: withCtx(() => [createVNode(unref(QdCrudTable), mergeProps({
|
|
763
763
|
ref: "table",
|
|
764
764
|
class: "qd-dialog-table-select__table",
|
|
@@ -821,8 +821,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
821
821
|
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, item.originalName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
|
|
822
822
|
};
|
|
823
823
|
})]), 1040, ["search-data", "data", "selected-row-keys", "active-row-keys", "column-controller-visible", "expanded-rowKeys", "filter-value", "sort", "expanded-tree-nodes", "onSelectChange"])]),
|
|
824
|
-
_:
|
|
825
|
-
},
|
|
824
|
+
_: 2
|
|
825
|
+
}, [_ctx.$slots["dialog-footer-extend"] ? {
|
|
826
|
+
name: "footer-extend",
|
|
827
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "dialog-footer-extend", {}, void 0, true)]),
|
|
828
|
+
key: "0"
|
|
829
|
+
} : void 0]), 1040, ["visible", "confirm-loading"])], 64);
|
|
826
830
|
};
|
|
827
831
|
}
|
|
828
832
|
});
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
.qd-dialog-tabs-table-select[data-v-
|
|
1
|
+
.qd-dialog-tabs-table-select[data-v-f8e4cc1d] {
|
|
2
2
|
width: 100%;
|
|
3
3
|
}
|
|
4
|
-
.qd-dialog-tabs-table-select__trigger[data-v-
|
|
4
|
+
.qd-dialog-tabs-table-select__trigger[data-v-f8e4cc1d] {
|
|
5
5
|
width: 100%;
|
|
6
6
|
}
|
|
7
|
-
.qd-dialog-tabs-table-select__trigger[data-v-
|
|
7
|
+
.qd-dialog-tabs-table-select__trigger[data-v-f8e4cc1d]:not(.qd-dialog-tabs-table-select__trigger--readonly):not(.qd-dialog-tabs-table-select__trigger--disabled) {
|
|
8
8
|
cursor: pointer;
|
|
9
9
|
}
|
|
10
|
-
.qd-dialog-tabs-table-select__input-trigger[data-v-
|
|
10
|
+
.qd-dialog-tabs-table-select__input-trigger[data-v-f8e4cc1d] {
|
|
11
11
|
border-top-left-radius: 0;
|
|
12
12
|
border-bottom-left-radius: 0;
|
|
13
13
|
}
|
|
14
|
-
.qd-dialog-tabs-table-select__table[data-v-
|
|
14
|
+
.qd-dialog-tabs-table-select__table[data-v-f8e4cc1d] .qd-crud-search > .t-loading__parent > .t-card__body {
|
|
15
15
|
padding-left: 0 !important;
|
|
16
16
|
padding-right: 0 !important;
|
|
17
17
|
padding-bottom: 0 !important;
|
|
18
18
|
}
|
|
19
|
-
.qd-dialog-tabs-table-select__table[data-v-
|
|
19
|
+
.qd-dialog-tabs-table-select__table[data-v-f8e4cc1d] .qd-crud-table__body > .t-loading__parent > .t-card__body {
|
|
20
20
|
padding-left: 0 !important;
|
|
21
21
|
padding-right: 0 !important;
|
|
22
22
|
padding-bottom: 0 !important;
|
|
23
23
|
}
|
|
24
|
-
.qd-dialog-tabs-table-select__table[data-v-
|
|
24
|
+
.qd-dialog-tabs-table-select__table[data-v-f8e4cc1d] .qd-crud-table__toolbar {
|
|
25
25
|
display: none;
|
|
26
26
|
}
|
|
27
|
-
.qd-dialog-tabs-table-select__table[data-v-
|
|
27
|
+
.qd-dialog-tabs-table-select__table[data-v-f8e4cc1d] .qd-service-table {
|
|
28
28
|
margin-top: 0;
|
|
29
29
|
}
|
|
30
|
-
.qd-dialog-tabs-table-select__table-add[data-v-
|
|
30
|
+
.qd-dialog-tabs-table-select__table-add[data-v-f8e4cc1d] {
|
|
31
31
|
margin-top: var(--td-comp-margin-m);
|
|
32
32
|
display: flex;
|
|
33
33
|
}
|
|
34
|
-
.qd-dialog-tabs-table-select__table-add .t-input__wrap[data-v-
|
|
34
|
+
.qd-dialog-tabs-table-select__table-add .t-input__wrap[data-v-f8e4cc1d] {
|
|
35
35
|
flex: 1 1 0;
|
|
36
36
|
overflow: hidden;
|
|
37
37
|
margin-right: var(--td-comp-margin-m);
|
|
@@ -18,6 +18,10 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
18
18
|
default?: (props: {
|
|
19
19
|
selectedRows: import("@vue/reactivity").UnwrapRefSimple<D>[];
|
|
20
20
|
}) => any;
|
|
21
|
+
} & {
|
|
22
|
+
'dialog-footer-extend'?: (props: {
|
|
23
|
+
activeTab: import("tdesign-vue-next").TabValue | undefined;
|
|
24
|
+
}) => any;
|
|
21
25
|
} & {
|
|
22
26
|
'add-input'?: (props: {
|
|
23
27
|
addCustom: {
|
|
@@ -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 index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f8e4cc1d"]]);
|
|
6
6
|
export {
|
|
7
7
|
index as default
|
|
8
8
|
};
|
|
@@ -954,7 +954,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
954
954
|
"confirm-loading": unref(confirmLoad)
|
|
955
955
|
}, reProps.value.dialogOptions, {
|
|
956
956
|
onConfirm: handleConfirm
|
|
957
|
-
}), {
|
|
957
|
+
}), createSlots({
|
|
958
958
|
default: withCtx(() => [createVNode(unref(QdCrudTabsTable), mergeProps({
|
|
959
959
|
ref: "tabsTable",
|
|
960
960
|
class: "qd-dialog-tabs-table-select__table",
|
|
@@ -1003,8 +1003,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1003
1003
|
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, item.originalName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
|
|
1004
1004
|
};
|
|
1005
1005
|
})]), 1040, ["active-tab", "search-data", "tabs", "shared-search", "sync-service-key"])]),
|
|
1006
|
-
_:
|
|
1007
|
-
},
|
|
1006
|
+
_: 2
|
|
1007
|
+
}, [_ctx.$slots["dialog-footer-extend"] ? {
|
|
1008
|
+
name: "footer-extend",
|
|
1009
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "dialog-footer-extend", {
|
|
1010
|
+
activeTab: currentActiveTab.value
|
|
1011
|
+
}, void 0, true)]),
|
|
1012
|
+
key: "0"
|
|
1013
|
+
} : void 0]), 1040, ["visible", "confirm-loading"])], 64);
|
|
1008
1014
|
};
|
|
1009
1015
|
}
|
|
1010
1016
|
});
|