qidian-vue-ui 1.2.92 → 1.2.93

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-a7f96756] {
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-a7f96756] {
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-a7f96756] {
10
+ .qd-crud-table__body[data-v-a991307e] {
11
11
  flex: auto;
12
12
  }
13
- .qd-crud-table__body[data-v-a7f96756] > .t-loading__parent > .t-card__body {
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-a7f96756] > .t-loading__parent > .t-card__body > .qd-service-table {
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-a7f96756] > .t-loading__parent > .t-card__body > .qd-service-table .t-table__pagination {
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-a7f96756] {
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-a7f96756] {
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-a7f96756] {
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-a7f96756"]]);
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-dbef1c1e] {
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-dbef1c1e] > .t-table__content {
6
+ .qd-service-table[data-v-99cf689e] > .t-table__content {
7
7
  flex: 1;
8
8
  }
9
- .qd-service-table[data-v-dbef1c1e] .t-table__tree-col:not(:has(.t-table__tree-op-icon)) {
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-dbef1c1e] .t-table__tree-leaf-node .t-table__tree-op-icon:empty {
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-dbef1c1e] .ps__rail-x {
15
+ .qd-service-table--ps-x-fixed[data-v-99cf689e] .ps__rail-x {
16
16
  position: fixed;
17
- left: var(--v4ea1a4a6) !important;
18
- bottom: var(--v2052b856) !important;
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-dbef1c1e"]]);
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
- "v4ea1a4a6": tableContentLeft.value,
306
- "v2052b856": outsideBottom.value
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 = containerWidth - bodyMinWidth;
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qidian-vue-ui",
3
- "version": "1.2.92",
3
+ "version": "1.2.93",
4
4
  "description": "基于 TDesign 的 QiDian Vue UI 组件库",
5
5
  "author": "qidian",
6
6
  "license": "MIT",