@vtable-guild/vtable-guild 2.7.0 → 2.7.1
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/index.full.mjs +1489 -1474
- package/dist/table/src/components/VirtualTableBody.d.ts.map +1 -1
- package/dist/table/src/components/VirtualTableBody.mjs +109 -113
- package/dist/table/src/utils/columnWidth.d.ts +12 -0
- package/dist/table/src/utils/columnWidth.d.ts.map +1 -0
- package/dist/table/src/utils/columnWidth.mjs +26 -0
- package/dist/table/src/utils/columnWidth.test.d.ts +2 -0
- package/dist/table/src/utils/columnWidth.test.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VirtualTableBody.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/VirtualTableBody.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,QAAQ,EAAE,MAAM,KAAK,CAAA;AAElD,OAAO,KAAK,EAAW,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAOpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAGpE,OAAO,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"VirtualTableBody.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/VirtualTableBody.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,QAAQ,EAAE,MAAM,KAAK,CAAA;AAElD,OAAO,KAAK,EAAW,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAOpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAGpE,OAAO,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAK/C,KAAK,sBAAsB,GAAG,iBAAiB,GAAG;IAChD,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;;;cAQgC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;;;;cACtC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAO3C,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;;;cAEhC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;;;;;;;;;;;IAK3F,wCAAwC;;;;;IAExC;;;OAGG;;;;;IAEH,qCAAqC;;cACJ,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC;;;IAC/D,gEAAgE;;cAE5C,QAAQ,CAAC,CAAC,IAAI,EAAE,sBAAsB,KAAK,IAAI,CAAC;;;;cAIvC,QAAQ,CAAC,OAAO,GAAG,UAAU,GAAG,OAAO,CAAC;;;;;cA9BxC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;;;;cACtC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAO3C,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;;;cAEhC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;;;;;;;;;;;IAK3F,wCAAwC;;;;;IAExC;;;OAGG;;;;;IAEH,qCAAqC;;cACJ,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC;;;IAC/D,gEAAgE;;cAE5C,QAAQ,CAAC,CAAC,IAAI,EAAE,sBAAsB,KAAK,IAAI,CAAC;;;;cAIvC,QAAQ,CAAC,OAAO,GAAG,UAAU,GAAG,OAAO,CAAC;;;;;4BAJjC,sBAAsB,KAAK,IAAI;+BAhBT,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,GAAG;;;;;;AAb7F,wBAmZE"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as $, inject as G, ref as C, computed as m, onBeforeUnmount as U, watch as Y, createVNode as r, isVNode as J } from "vue";
|
|
2
2
|
import "../../../core/src/utils/tv.mjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { TABLE_CONTEXT_KEY as
|
|
9
|
-
import { resolveFixedColumnRanges as
|
|
10
|
-
import { resolveRowDragClass as
|
|
11
|
-
import { getRowCompatClass as
|
|
12
|
-
import { resolveRowKey as
|
|
13
|
-
import de from "
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
import Q from "./TableRow.mjs";
|
|
4
|
+
import Z from "./TableCell.mjs";
|
|
5
|
+
import ee from "./TableEmpty.mjs";
|
|
6
|
+
import te from "./ExpandedRowTr.mjs";
|
|
7
|
+
import le from "./ColGroup.mjs";
|
|
8
|
+
import { TABLE_CONTEXT_KEY as ne } from "../context.mjs";
|
|
9
|
+
import { resolveFixedColumnRanges as oe, useColumnWindow as ae } from "../composables/useColumnWindow.mjs";
|
|
10
|
+
import { resolveRowDragClass as re } from "../composables/useRowDragSort.mjs";
|
|
11
|
+
import { getRowCompatClass as ie } from "../utils/compat.mjs";
|
|
12
|
+
import { resolveRowKey as T } from "../utils/rowKey.mjs";
|
|
13
|
+
import { sumDeclaredColumnWidths as se, parseStylePxWidth as de } from "../utils/columnWidth.mjs";
|
|
14
|
+
import ue from "../../../core/src/components/VirtualList/VirtualList.mjs";
|
|
15
|
+
import { cn as ce } from "tailwind-variants";
|
|
16
|
+
function fe(e) {
|
|
17
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !J(e);
|
|
17
18
|
}
|
|
18
|
-
const
|
|
19
|
+
const Te = /* @__PURE__ */ $({
|
|
19
20
|
name: "VirtualTableBody",
|
|
20
21
|
props: {
|
|
21
22
|
dataSource: {
|
|
@@ -94,39 +95,34 @@ const Fe = /* @__PURE__ */ G({
|
|
|
94
95
|
default: "hover"
|
|
95
96
|
}
|
|
96
97
|
},
|
|
97
|
-
setup(
|
|
98
|
-
const
|
|
99
|
-
function b(
|
|
100
|
-
x.value =
|
|
101
|
-
...
|
|
102
|
-
maxX:
|
|
98
|
+
setup(e) {
|
|
99
|
+
const a = G(ne, {}), w = C(), x = C(0), c = C(0);
|
|
100
|
+
function b(t) {
|
|
101
|
+
x.value = t.x, e.onVirtualScroll?.({
|
|
102
|
+
...t,
|
|
103
|
+
maxX: w.value?.getHorizontalRange() ?? 0
|
|
103
104
|
});
|
|
104
105
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
106
|
+
function V(t, l) {
|
|
107
|
+
return T(t, l, e.rowKey);
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
-
const l =
|
|
110
|
-
return
|
|
109
|
+
function k(t) {
|
|
110
|
+
const l = e.dataSource.indexOf(t);
|
|
111
|
+
return T(t, l, e.rowKey);
|
|
111
112
|
}
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
return e && e > 0 ? e : O.value;
|
|
122
|
-
}), v = c(() => re(t.columns)), S = c(() => {
|
|
123
|
-
if (!t.virtualColumn || f.value <= 0) return null;
|
|
124
|
-
const e = t.columnMetrics;
|
|
125
|
-
return !e || e.widths.length !== t.columns.length ? null : e.widths;
|
|
113
|
+
const q = m(() => {
|
|
114
|
+
const t = e.virtualColumn ? e.columnMetrics?.total : void 0;
|
|
115
|
+
if (t && t > 0) return t;
|
|
116
|
+
const l = se(e.columns, a.columnWidths), u = de(e.tableStyle?.width);
|
|
117
|
+
return Math.max(l, u);
|
|
118
|
+
}), v = m(() => oe(e.columns)), S = m(() => {
|
|
119
|
+
if (!e.virtualColumn || c.value <= 0) return null;
|
|
120
|
+
const t = e.columnMetrics;
|
|
121
|
+
return !t || t.widths.length !== e.columns.length ? null : t.widths;
|
|
126
122
|
}), {
|
|
127
123
|
active: R,
|
|
128
|
-
start:
|
|
129
|
-
end:
|
|
124
|
+
start: O,
|
|
125
|
+
end: H,
|
|
130
126
|
leftSpacer: p,
|
|
131
127
|
rightSpacer: E
|
|
132
128
|
} = ae({
|
|
@@ -134,12 +130,12 @@ const Fe = /* @__PURE__ */ G({
|
|
|
134
130
|
leftFixedCount: () => v.value.leftFixedCount,
|
|
135
131
|
rightFixedStart: () => v.value.rightFixedStart,
|
|
136
132
|
offsetX: () => x.value,
|
|
137
|
-
viewportWidth: () =>
|
|
138
|
-
}), _ =
|
|
139
|
-
const
|
|
133
|
+
viewportWidth: () => c.value
|
|
134
|
+
}), _ = m(() => {
|
|
135
|
+
const t = e.columns.length;
|
|
140
136
|
if (!R.value)
|
|
141
137
|
return Array.from({
|
|
142
|
-
length:
|
|
138
|
+
length: t
|
|
143
139
|
}, (n, i) => ({
|
|
144
140
|
index: i
|
|
145
141
|
}));
|
|
@@ -153,118 +149,118 @@ const Fe = /* @__PURE__ */ G({
|
|
|
153
149
|
p.value > 0 && o.push({
|
|
154
150
|
spacer: p.value
|
|
155
151
|
});
|
|
156
|
-
for (let n =
|
|
152
|
+
for (let n = O.value; n <= H.value; n += 1) o.push({
|
|
157
153
|
index: n
|
|
158
154
|
});
|
|
159
155
|
E.value > 0 && o.push({
|
|
160
156
|
spacer: E.value
|
|
161
157
|
});
|
|
162
|
-
for (let n = u; n <
|
|
158
|
+
for (let n = u; n < t; n += 1) o.push({
|
|
163
159
|
index: n
|
|
164
160
|
});
|
|
165
161
|
return o;
|
|
166
162
|
});
|
|
167
|
-
function
|
|
163
|
+
function me(t) {
|
|
168
164
|
}
|
|
169
165
|
let s = null, d = null;
|
|
170
|
-
function B(
|
|
171
|
-
const l =
|
|
172
|
-
l !== d && (s && d && s.unobserve(d), d = l, l && (
|
|
173
|
-
d && (
|
|
166
|
+
function B(t) {
|
|
167
|
+
const l = t ?? null;
|
|
168
|
+
l !== d && (s && d && s.unobserve(d), d = l, l && (c.value = l.clientWidth, !s && typeof ResizeObserver < "u" && (s = new ResizeObserver(() => {
|
|
169
|
+
d && (c.value = d.clientWidth);
|
|
174
170
|
})), s?.observe(l)));
|
|
175
171
|
}
|
|
176
|
-
return
|
|
172
|
+
return U(() => {
|
|
177
173
|
s?.disconnect(), s = null, d = null;
|
|
178
|
-
}),
|
|
179
|
-
if (
|
|
180
|
-
const l =
|
|
181
|
-
b(l),
|
|
174
|
+
}), Y(() => w.value, (t) => {
|
|
175
|
+
if (t) {
|
|
176
|
+
const l = t.getScrollInfo();
|
|
177
|
+
b(l), t.nativeElement, B(t.nativeElement);
|
|
182
178
|
} else
|
|
183
179
|
B(null);
|
|
184
|
-
}), () =>
|
|
185
|
-
class:
|
|
186
|
-
style:
|
|
187
|
-
}, [
|
|
188
|
-
columns:
|
|
189
|
-
}, null),
|
|
190
|
-
class:
|
|
191
|
-
}, [
|
|
192
|
-
colSpan:
|
|
193
|
-
emptyClass:
|
|
194
|
-
tdClass:
|
|
195
|
-
}, null)])]) :
|
|
196
|
-
ref:
|
|
197
|
-
data:
|
|
198
|
-
height:
|
|
199
|
-
itemHeight:
|
|
200
|
-
itemKey:
|
|
201
|
-
scrollWidth:
|
|
202
|
-
disableHeightMeasure:
|
|
180
|
+
}), () => e.dataSource.length === 0 ? r("table", {
|
|
181
|
+
class: e.tableClass,
|
|
182
|
+
style: e.tableStyle
|
|
183
|
+
}, [r(le, {
|
|
184
|
+
columns: e.columns
|
|
185
|
+
}, null), r("tbody", {
|
|
186
|
+
class: e.tbodyClass
|
|
187
|
+
}, [r(ee, {
|
|
188
|
+
colSpan: e.columns.length || 1,
|
|
189
|
+
emptyClass: e.emptyClass,
|
|
190
|
+
tdClass: e.tdClass
|
|
191
|
+
}, null)])]) : r(ue, {
|
|
192
|
+
ref: w,
|
|
193
|
+
data: e.dataSource,
|
|
194
|
+
height: e.height,
|
|
195
|
+
itemHeight: e.itemHeight,
|
|
196
|
+
itemKey: k,
|
|
197
|
+
scrollWidth: q.value || void 0,
|
|
198
|
+
disableHeightMeasure: e.fixedHeight,
|
|
203
199
|
fullHeight: !1,
|
|
204
200
|
onVirtualScroll: b,
|
|
205
|
-
showScrollBar:
|
|
201
|
+
showScrollBar: e.showScrollBar,
|
|
206
202
|
style: {
|
|
207
203
|
overflow: "hidden"
|
|
208
204
|
}
|
|
209
205
|
}, {
|
|
210
206
|
default: ({
|
|
211
|
-
item:
|
|
207
|
+
item: t,
|
|
212
208
|
index: l
|
|
213
209
|
}) => {
|
|
214
210
|
let u;
|
|
215
|
-
const o = l, n =
|
|
216
|
-
...
|
|
217
|
-
...
|
|
218
|
-
},
|
|
219
|
-
D &&
|
|
220
|
-
} : void 0,
|
|
221
|
-
return
|
|
222
|
-
class:
|
|
211
|
+
const o = l, n = V(t, o), i = a.expandable?.(), I = a.isExpanded?.(n) ?? !1, K = i?.expandRowByClick ?? !1, D = a.isRowExpandable?.(t) ?? !1, N = a.getRowClassName?.(t, o), W = a.getRowProps?.(t, o), P = a.rowDrag?.enabled.value ? a.rowDrag.getBindings(t, o, W) : void 0, j = {
|
|
212
|
+
...W,
|
|
213
|
+
...P
|
|
214
|
+
}, A = re(a.rowDrag, n, a.subThemeSlots), y = (a.isTreeData?.value ? a.getFlattenRow?.(t) : void 0)?.level ?? 0, M = typeof i?.expandedRowClassName == "function" ? i.expandedRowClassName(t, o, y) : i?.expandedRowClassName, L = K ? () => {
|
|
215
|
+
D && a.toggleExpand?.(t, o);
|
|
216
|
+
} : void 0, F = _.value, X = R.value ? S.value : null;
|
|
217
|
+
return r("table", {
|
|
218
|
+
class: e.tableClass,
|
|
223
219
|
style: {
|
|
224
|
-
...
|
|
220
|
+
...e.tableStyle,
|
|
225
221
|
tableLayout: "fixed"
|
|
226
222
|
}
|
|
227
|
-
}, [
|
|
228
|
-
class:
|
|
229
|
-
"data-vtg-preserve-last-border": l <
|
|
230
|
-
}, [
|
|
223
|
+
}, [r("tbody", {
|
|
224
|
+
class: e.tbodyClass,
|
|
225
|
+
"data-vtg-preserve-last-border": l < e.dataSource.length - 1 ? "" : void 0
|
|
226
|
+
}, [r(Q, {
|
|
231
227
|
key: n,
|
|
232
|
-
rowClass:
|
|
233
|
-
rowProps:
|
|
234
|
-
onClick:
|
|
235
|
-
},
|
|
228
|
+
rowClass: ce(e.rowClass, N, A, ie(a, t, o, y)) ?? "",
|
|
229
|
+
rowProps: j,
|
|
230
|
+
onClick: L
|
|
231
|
+
}, fe(u = F.map((g, z) => {
|
|
236
232
|
if (g.spacer !== void 0)
|
|
237
|
-
return
|
|
238
|
-
key: `__vtg_spacer_${
|
|
233
|
+
return r("td", {
|
|
234
|
+
key: `__vtg_spacer_${z}`,
|
|
239
235
|
style: {
|
|
240
236
|
width: `${g.spacer}px`,
|
|
241
237
|
padding: "0"
|
|
242
238
|
},
|
|
243
239
|
"aria-hidden": "true"
|
|
244
240
|
}, null);
|
|
245
|
-
const
|
|
246
|
-
return
|
|
247
|
-
key: h.key ?? String(h.dataIndex ??
|
|
248
|
-
record:
|
|
241
|
+
const f = g.index, h = e.columns[f];
|
|
242
|
+
return r(Z, {
|
|
243
|
+
key: h.key ?? String(h.dataIndex ?? f),
|
|
244
|
+
record: t,
|
|
249
245
|
rowIndex: o,
|
|
250
246
|
column: h,
|
|
251
|
-
colIndex:
|
|
252
|
-
widthOverride:
|
|
253
|
-
tdClass:
|
|
254
|
-
bodyCellEllipsisClass:
|
|
247
|
+
colIndex: f,
|
|
248
|
+
widthOverride: X?.[f],
|
|
249
|
+
tdClass: e.tdClass,
|
|
250
|
+
bodyCellEllipsisClass: e.bodyCellEllipsisClass
|
|
255
251
|
}, null);
|
|
256
252
|
})) ? u : {
|
|
257
253
|
default: () => [u]
|
|
258
|
-
}),
|
|
254
|
+
}), I && i?.expandedRowRender ? r(te, {
|
|
259
255
|
key: `${n}-expanded`,
|
|
260
|
-
record:
|
|
256
|
+
record: t,
|
|
261
257
|
rowIndex: o,
|
|
262
|
-
colspan:
|
|
258
|
+
colspan: F.length,
|
|
263
259
|
rowIndent: y,
|
|
264
|
-
rowClass:
|
|
260
|
+
rowClass: e.rowClass,
|
|
265
261
|
rowClassName: N,
|
|
266
262
|
expandedRowClassName: M,
|
|
267
|
-
tdClass:
|
|
263
|
+
tdClass: e.tdClass,
|
|
268
264
|
expandedRowRender: i.expandedRowRender
|
|
269
265
|
}, null) : null])]);
|
|
270
266
|
}
|
|
@@ -272,5 +268,5 @@ const Fe = /* @__PURE__ */ G({
|
|
|
272
268
|
}
|
|
273
269
|
});
|
|
274
270
|
export {
|
|
275
|
-
|
|
271
|
+
Te as default
|
|
276
272
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ColumnType } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* 与 ColGroup / TableCell 同一套宽度口径:拖拽覆写优先,否则用列声明。
|
|
4
|
+
*
|
|
5
|
+
* 非数字声明(`auto`、百分比)按 0 计入滚动总宽——它们的真实像素只能量表头,
|
|
6
|
+
* 那是 virtualColumn 路径的事。这里只负责「声明数字宽 + 拖拽结果」。
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolveDeclaredColumnWidth(column: ColumnType<Record<string, unknown>>, index: number, columnWidths?: Record<string, number>): number;
|
|
9
|
+
export declare function sumDeclaredColumnWidths(columns: readonly ColumnType<Record<string, unknown>>[], columnWidths?: Record<string, number>): number;
|
|
10
|
+
/** 从 table 内联 width(如 `20600px`)取出数字,供虚拟表体总宽与 scroll.x 对齐。 */
|
|
11
|
+
export declare function parseStylePxWidth(width: string | undefined): number;
|
|
12
|
+
//# sourceMappingURL=columnWidth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"columnWidth.d.ts","sourceRoot":"","sources":["../../../../../table/src/utils/columnWidth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAG1C;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAC3C,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACpC,MAAM,CAQR;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,SAAS,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,EACvD,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACpC,MAAM,CAMR;AAED,8DAA8D;AAC9D,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAMnE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { getColumnKey as o } from "../composables/useColumns.mjs";
|
|
2
|
+
function s(e, r, t) {
|
|
3
|
+
const i = t?.[String(o(e) ?? r)] ?? e.width;
|
|
4
|
+
if (typeof i == "number")
|
|
5
|
+
return Number.isFinite(i) && i > 0 ? i : 0;
|
|
6
|
+
const u = Number.parseInt(String(i || "0"), 10);
|
|
7
|
+
return Number.isFinite(u) && u > 0 ? u : 0;
|
|
8
|
+
}
|
|
9
|
+
function c(e, r) {
|
|
10
|
+
let t = 0;
|
|
11
|
+
for (let n = 0; n < e.length; n += 1)
|
|
12
|
+
t += s(e[n], n, r);
|
|
13
|
+
return t;
|
|
14
|
+
}
|
|
15
|
+
function d(e) {
|
|
16
|
+
if (!e) return 0;
|
|
17
|
+
const r = /^(\d+(?:\.\d+)?)px$/.exec(e.trim());
|
|
18
|
+
if (!r) return 0;
|
|
19
|
+
const t = Number(r[1]);
|
|
20
|
+
return Number.isFinite(t) && t > 0 ? t : 0;
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
d as parseStylePxWidth,
|
|
24
|
+
s as resolveDeclaredColumnWidth,
|
|
25
|
+
c as sumDeclaredColumnWidths
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"columnWidth.test.d.ts","sourceRoot":"","sources":["../../../../../table/src/utils/columnWidth.test.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtable-guild/vtable-guild",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "Vue 3 table component with built-in virtual scrolling and switchable ant-design-vue / element-plus theme presets, powered by tailwind-variants",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|