luna-plus 0.0.26 → 0.0.27
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/Table/Table.svelte +6 -2
- package/package.json +1 -1
package/dist/Table/Table.svelte
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
lazy = false,
|
|
67
67
|
load,
|
|
68
68
|
treeProps = { hasChildren: "hasChildren", children: "children", checkStrictly: false },
|
|
69
|
-
tableLayout
|
|
69
|
+
tableLayout,
|
|
70
70
|
scrollbarAlwaysOn = false,
|
|
71
71
|
flexible = false,
|
|
72
72
|
showOverflowTooltip: globalShowOverflowTooltip,
|
|
@@ -646,6 +646,10 @@
|
|
|
646
646
|
`lm-table__table${cls ? ` ${cls}` : ""}`,
|
|
647
647
|
);
|
|
648
648
|
|
|
649
|
+
const effectiveTableLayout = $derived(
|
|
650
|
+
tableLayout ?? (fit ? "fixed" : "auto"),
|
|
651
|
+
);
|
|
652
|
+
|
|
649
653
|
// Cleanup
|
|
650
654
|
$effect(() => {
|
|
651
655
|
return () => {
|
|
@@ -662,7 +666,7 @@
|
|
|
662
666
|
<table
|
|
663
667
|
{...attrs}
|
|
664
668
|
class={tableElementClasses}
|
|
665
|
-
style:table-layout={
|
|
669
|
+
style:table-layout={effectiveTableLayout}
|
|
666
670
|
cellspacing="0"
|
|
667
671
|
cellpadding="0"
|
|
668
672
|
border="0"
|