qidian-vue-ui 1.3.1 → 1.3.2
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,36 +1,36 @@
|
|
|
1
|
-
.qd-crud-table[data-v-
|
|
1
|
+
.qd-crud-table[data-v-deb7960f] {
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 100%;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
}
|
|
7
|
-
.qd-crud-table > .qd-crud-search:not(.qd-crud-search--hide) + .qd-crud-table__body[data-v-
|
|
7
|
+
.qd-crud-table > .qd-crud-search:not(.qd-crud-search--hide) + .qd-crud-table__body[data-v-deb7960f] {
|
|
8
8
|
margin-top: var(--td-comp-margin-l);
|
|
9
9
|
}
|
|
10
|
-
.qd-crud-table__body[data-v-
|
|
10
|
+
.qd-crud-table__body[data-v-deb7960f] {
|
|
11
11
|
flex: auto;
|
|
12
12
|
}
|
|
13
|
-
.qd-crud-table__body[data-v-
|
|
13
|
+
.qd-crud-table__body[data-v-deb7960f] > .t-loading__parent > .t-card__body {
|
|
14
14
|
height: 100%;
|
|
15
15
|
min-height: 443px;
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
}
|
|
19
|
-
.qd-crud-table__body[data-v-
|
|
19
|
+
.qd-crud-table__body[data-v-deb7960f] > .t-loading__parent > .t-card__body > .qd-service-table {
|
|
20
20
|
flex: 1 1 0;
|
|
21
21
|
overflow: hidden;
|
|
22
22
|
}
|
|
23
|
-
.qd-crud-table__body[data-v-
|
|
23
|
+
.qd-crud-table__body[data-v-deb7960f] > .t-loading__parent > .t-card__body > .qd-service-table .t-table__pagination {
|
|
24
24
|
padding-bottom: 0;
|
|
25
25
|
}
|
|
26
|
-
.qd-crud-table__toolbar[data-v-
|
|
26
|
+
.qd-crud-table__toolbar[data-v-deb7960f] {
|
|
27
27
|
display: flex;
|
|
28
28
|
justify-content: space-between;
|
|
29
29
|
}
|
|
30
|
-
.qd-crud-table__toolbar
|
|
30
|
+
.qd-crud-table__toolbar--has-space-item + .qd-service-table[data-v-deb7960f] {
|
|
31
31
|
margin-top: var(--td-comp-margin-l);
|
|
32
32
|
}
|
|
33
|
-
.qd-crud-table__toolbar-separator[data-v-
|
|
33
|
+
.qd-crud-table__toolbar-separator[data-v-deb7960f] {
|
|
34
34
|
display: inline-block;
|
|
35
35
|
padding-left: var(--td-comp-paddingLR-s);
|
|
36
36
|
}
|
|
@@ -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 QdCrudTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const QdCrudTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-deb7960f"]]);
|
|
6
6
|
export {
|
|
7
7
|
QdCrudTable as default
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import { defineComponent, mergeDefaults, computed, reactive, useTemplateRef, ref, createElementBlock, openBlock, renderSlot, createVNode, withDirectives, createCommentVNode, createBlock, unref, mergeProps, isRef, createSlots, renderList, withCtx, normalizeProps, guardReactiveProps, vShow, createElementVNode, Fragment, withModifiers, nextTick, shallowRef, toRef, triggerRef } from "vue";
|
|
2
|
+
import { defineComponent, mergeDefaults, computed, reactive, useTemplateRef, ref, onMounted, onBeforeUnmount, createElementBlock, openBlock, renderSlot, createVNode, withDirectives, createCommentVNode, createBlock, unref, mergeProps, isRef, createSlots, renderList, withCtx, normalizeProps, guardReactiveProps, vShow, createElementVNode, normalizeClass, Fragment, withModifiers, nextTick, shallowRef, toRef, triggerRef } from "vue";
|
|
3
3
|
import { useVModels, useLocalStorage } 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 { MD5, easyCopy, suspectedWrapperPromise, createExposeProxy, extractSlotsWithPrefix, isEmpty, generateRandomString, to } from "qidian-shared";
|
|
5
5
|
import { SearchIcon, RefreshIcon, UnfoldLessIcon, UnfoldMoreIcon, SettingIcon, AddIcon, DeleteIcon } from "tdesign-icons-vue-next";
|
|
@@ -24,13 +24,10 @@ const _hoisted_1 = {
|
|
|
24
24
|
class: "qd-crud-table"
|
|
25
25
|
};
|
|
26
26
|
const _hoisted_2 = {
|
|
27
|
-
class: "qd-crud-table__toolbar"
|
|
28
|
-
};
|
|
29
|
-
const _hoisted_3 = {
|
|
30
27
|
key: 0,
|
|
31
28
|
class: "qd-crud-table__toolbar-separator"
|
|
32
29
|
};
|
|
33
|
-
const
|
|
30
|
+
const _hoisted_3 = {
|
|
34
31
|
key: 0,
|
|
35
32
|
class: "qd-crud-table__toolbar-separator"
|
|
36
33
|
};
|
|
@@ -569,6 +566,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
569
566
|
const searchVisible = ref(true);
|
|
570
567
|
const searchRef = useTemplateRef("search");
|
|
571
568
|
let searchMode = "refresh";
|
|
569
|
+
const toolbarRef = useTemplateRef("toolbar");
|
|
570
|
+
const toolbarHasSpaceItem = ref(false);
|
|
571
|
+
let toolbarObserver = null;
|
|
572
572
|
function handleSearch() {
|
|
573
573
|
searchMode = "changeCurrent";
|
|
574
574
|
}
|
|
@@ -966,6 +966,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
966
966
|
}
|
|
967
967
|
return false;
|
|
968
968
|
}
|
|
969
|
+
function syncToolbarHasSpaceItem() {
|
|
970
|
+
toolbarHasSpaceItem.value = !!toolbarRef.value?.querySelector(".t-space-item");
|
|
971
|
+
}
|
|
972
|
+
onMounted(() => {
|
|
973
|
+
syncToolbarHasSpaceItem();
|
|
974
|
+
const toolbarEl = toolbarRef.value;
|
|
975
|
+
if (!toolbarEl) return;
|
|
976
|
+
toolbarObserver = new MutationObserver(syncToolbarHasSpaceItem);
|
|
977
|
+
toolbarObserver.observe(toolbarEl, {
|
|
978
|
+
childList: true,
|
|
979
|
+
subtree: true
|
|
980
|
+
});
|
|
981
|
+
});
|
|
982
|
+
onBeforeUnmount(() => {
|
|
983
|
+
toolbarObserver?.disconnect();
|
|
984
|
+
toolbarObserver = null;
|
|
985
|
+
});
|
|
969
986
|
__expose(createExposeProxy({}, tableRef));
|
|
970
987
|
return (_ctx, _cache) => {
|
|
971
988
|
return openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "header", {}, () => [reProps.value.searchOptions?.items?.length ? withDirectives((openBlock(), createBlock(unref(QdCrudSearch), mergeProps({
|
|
@@ -988,7 +1005,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
988
1005
|
})]), 1040, ["data", "class"])), [[vShow, searchVisible.value]]) : createCommentVNode("", true)], true), createVNode(unref(QdCard), {
|
|
989
1006
|
class: "qd-crud-table__body"
|
|
990
1007
|
}, {
|
|
991
|
-
default: withCtx(() => [createElementVNode("div",
|
|
1008
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
1009
|
+
ref: "toolbar",
|
|
1010
|
+
class: normalizeClass(["qd-crud-table__toolbar", {
|
|
1011
|
+
"qd-crud-table__toolbar--has-space-item": toolbarHasSpaceItem.value
|
|
1012
|
+
}])
|
|
1013
|
+
}, [createVNode(unref(Space), {
|
|
992
1014
|
align: "center",
|
|
993
1015
|
size: 0
|
|
994
1016
|
}, {
|
|
@@ -997,7 +1019,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
997
1019
|
key: item.uid || index
|
|
998
1020
|
}, [getActionSeparator(item, {
|
|
999
1021
|
index
|
|
1000
|
-
}) ? (openBlock(), createElementBlock("span",
|
|
1022
|
+
}) ? (openBlock(), createElementBlock("span", _hoisted_2)) : createCommentVNode("", true), withDirectives(createVNode(unref(_sfc_main$1), {
|
|
1001
1023
|
"fn-inject-ctx": "",
|
|
1002
1024
|
context: getConfigRendererCtx(item),
|
|
1003
1025
|
config: {
|
|
@@ -1023,7 +1045,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1023
1045
|
}, [getActionSeparator(item, {
|
|
1024
1046
|
index,
|
|
1025
1047
|
mapKey: "tool"
|
|
1026
|
-
}) ? (openBlock(), createElementBlock("span",
|
|
1048
|
+
}) ? (openBlock(), createElementBlock("span", _hoisted_3)) : createCommentVNode("", true), createVNode(unref(Tooltip), {
|
|
1027
1049
|
content: item.content,
|
|
1028
1050
|
disabled: !item.content
|
|
1029
1051
|
}, {
|
|
@@ -1116,7 +1138,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1116
1138
|
_: 1
|
|
1117
1139
|
}, 8, ["content"])], 64)) : createCommentVNode("", true)], true)]),
|
|
1118
1140
|
_: 3
|
|
1119
|
-
})]), createVNode(unref(QdServiceTable), mergeProps({
|
|
1141
|
+
})], 2), createVNode(unref(QdServiceTable), mergeProps({
|
|
1120
1142
|
ref: "table",
|
|
1121
1143
|
data: unref(data),
|
|
1122
1144
|
"onUpdate:data": _cache[2] || (_cache[2] = ($event) => isRef(data) ? data.value = $event : null),
|
|
@@ -9,13 +9,11 @@
|
|
|
9
9
|
border-bottom: 1px solid var(--td-component-stroke);
|
|
10
10
|
}
|
|
11
11
|
.qd-multi-file-viewer .t-dialog .t-dialog__body,
|
|
12
|
-
.qd-multi-file-viewer
|
|
13
|
-
.qd-multi-file-viewer .t-dialog .t-dialog:has(.t-dialog__footer) .t-dialog__body,
|
|
14
|
-
.qd-multi-file-viewer .qd-dialog .t-dialog:has(.t-dialog__footer) .t-dialog__body,
|
|
12
|
+
.qd-multi-file-viewer.qd-dialog .t-dialog__body,
|
|
15
13
|
.qd-multi-file-viewer .t-dialog .t-dialog__body--fullscreen,
|
|
16
|
-
.qd-multi-file-viewer
|
|
14
|
+
.qd-multi-file-viewer.qd-dialog .t-dialog__body--fullscreen,
|
|
17
15
|
.qd-multi-file-viewer .t-dialog .t-dialog__body--fullscreen--without-footer,
|
|
18
|
-
.qd-multi-file-viewer
|
|
16
|
+
.qd-multi-file-viewer.qd-dialog .t-dialog__body--fullscreen--without-footer {
|
|
19
17
|
padding: 0 !important;
|
|
20
18
|
}
|
|
21
19
|
.qd-multi-file-viewer__body {
|