qidian-vue-ui 1.2.92 → 1.2.94
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/crud/table/index.css +9 -9
- package/dist/components/crud/table/index.vue.mjs +1 -1
- package/dist/components/crud/table/index.vue2.mjs +1 -1
- package/dist/components/service/table/index.css +7 -7
- package/dist/components/service/table/index.vue.mjs +1 -1
- package/dist/components/service/table/index.vue2.mjs +6 -4
- package/dist/styles/index.css +3 -0
- package/package.json +1 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
.qd-crud-table[data-v-
|
|
1
|
+
.qd-crud-table[data-v-a991307e] {
|
|
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-a991307e] {
|
|
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-a991307e] {
|
|
11
11
|
flex: auto;
|
|
12
12
|
}
|
|
13
|
-
.qd-crud-table__body[data-v-
|
|
13
|
+
.qd-crud-table__body[data-v-a991307e] > .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-a991307e] > .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-a991307e] > .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-a991307e] {
|
|
27
27
|
display: flex;
|
|
28
28
|
justify-content: space-between;
|
|
29
29
|
}
|
|
30
|
-
.qd-crud-table__toolbar:has(.t-space-item) + .qd-service-table[data-v-
|
|
30
|
+
.qd-crud-table__toolbar:has(.t-space-item) + .qd-service-table[data-v-a991307e] {
|
|
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-a991307e] {
|
|
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-a991307e"]]);
|
|
6
6
|
export {
|
|
7
7
|
QdCrudTable as default
|
|
8
8
|
};
|
|
@@ -478,7 +478,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
478
478
|
}, del, form);
|
|
479
479
|
reActions.splice(reAdd ? 1 : 0, 0, batchDel);
|
|
480
480
|
}
|
|
481
|
-
const reColumns = columns || [];
|
|
481
|
+
const reColumns = [...columns || []];
|
|
482
482
|
const operationLength = reRowActions.length;
|
|
483
483
|
if (operationLength) {
|
|
484
484
|
const operationIdx = reColumns.findIndex((item) => item.colKey === "operation");
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
.qd-service-table[data-v-
|
|
1
|
+
.qd-service-table[data-v-99cf689e] {
|
|
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-99cf689e] > .t-table__content {
|
|
7
7
|
flex: 1;
|
|
8
8
|
}
|
|
9
|
-
.qd-service-table[data-v-
|
|
9
|
+
.qd-service-table[data-v-99cf689e] .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-99cf689e] .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--ps-x-fixed[data-v-
|
|
15
|
+
.qd-service-table--ps-x-fixed[data-v-99cf689e] .ps__rail-x {
|
|
16
16
|
position: fixed;
|
|
17
|
-
left: var(--
|
|
18
|
-
bottom: var(--
|
|
17
|
+
left: var(--v96edfa0e) !important;
|
|
18
|
+
bottom: var(--c6dc9bee) !important;
|
|
19
19
|
}
|
|
@@ -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-99cf689e"]]);
|
|
6
6
|
export {
|
|
7
7
|
QdServiceTable as default
|
|
8
8
|
};
|
|
@@ -302,8 +302,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
302
302
|
emit: __emit
|
|
303
303
|
}) {
|
|
304
304
|
useCssVars((_ctx) => ({
|
|
305
|
-
"
|
|
306
|
-
"
|
|
305
|
+
"v96edfa0e": tableContentLeft.value,
|
|
306
|
+
"c6dc9bee": outsideBottom.value
|
|
307
307
|
}));
|
|
308
308
|
const props = __props;
|
|
309
309
|
const emit = __emit;
|
|
@@ -547,7 +547,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
const reColumns = columns || [];
|
|
550
|
+
const reColumns = [...columns || []];
|
|
551
551
|
if (selectType) {
|
|
552
552
|
const selectIdx = reColumns.findIndex((item) => item.type === "single" || item.type === "multiple");
|
|
553
553
|
const defaultSelect = {
|
|
@@ -627,8 +627,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
627
627
|
const noWidthCols = columns.filter((c) => isEmpty(c.width));
|
|
628
628
|
const fixedWidth = columns.filter((c) => !isEmpty(c.width)).reduce((sum, c) => sum + Number(c.width), 0);
|
|
629
629
|
if (containerWidth <= 0 || !noWidthCols.length) return columns;
|
|
630
|
+
const expandIconWidth = reProps.value.tableOptions.expandedRow && reProps.value.tableOptions.expandIcon !== false ? 46 : 0;
|
|
631
|
+
const availableWidth = containerWidth - expandIconWidth;
|
|
630
632
|
const bodyMinWidth = fixedWidth + noWidthCols.reduce((sum, c) => sum + (!isEmpty(c.minWidth) ? Number(c.minWidth) : defaultMinWidth), 0);
|
|
631
|
-
const totalFlexWidth =
|
|
633
|
+
const totalFlexWidth = availableWidth - bodyMinWidth;
|
|
632
634
|
const allColumnsWidth = noWidthCols.reduce((sum, c) => sum + (!isEmpty(c.minWidth) ? Number(c.minWidth) : defaultMinWidth), 0);
|
|
633
635
|
const flexWidthPerPixel = totalFlexWidth > 0 && allColumnsWidth > 0 ? totalFlexWidth / allColumnsWidth : 0;
|
|
634
636
|
return columns.map((item) => {
|
package/dist/styles/index.css
CHANGED
|
@@ -199,6 +199,9 @@ p {
|
|
|
199
199
|
.t-table__scroll-bar-divider {
|
|
200
200
|
display: none;
|
|
201
201
|
}
|
|
202
|
+
.t-table__expanded-row-inner {
|
|
203
|
+
background-color: var(--td-bg-color-secondarycontainer);
|
|
204
|
+
}
|
|
202
205
|
.t-table--header-bg-inherit .t-table__header > tr > th {
|
|
203
206
|
background-color: inherit !important;
|
|
204
207
|
}
|