@isoftdata/svelte-table 2.10.0 → 2.10.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/Td.svelte +4 -2
- package/package.json +1 -1
package/dist/Td.svelte
CHANGED
|
@@ -46,7 +46,9 @@
|
|
|
46
46
|
...rest
|
|
47
47
|
}: Props = $props()
|
|
48
48
|
|
|
49
|
-
const thisColumnInfo = $derived(
|
|
49
|
+
const thisColumnInfo = $derived(
|
|
50
|
+
columnInfo.current[property] as (typeof columnInfo.current)[typeof property] | undefined,
|
|
51
|
+
)
|
|
50
52
|
const alignClass = $derived.by(() => {
|
|
51
53
|
let alignment = align || thisColumnInfo?.align || (thisColumnInfo?.numeric ? 'right' : undefined)
|
|
52
54
|
if (bs5 && alignment === 'right') {
|
|
@@ -118,7 +120,7 @@
|
|
|
118
120
|
style:text-overflow={$columnResizingEnabled ? 'ellipsis' : undefined}
|
|
119
121
|
style:position={thisColumnInfo?.pinned ? 'sticky' : undefined}
|
|
120
122
|
style:left={thisColumnInfo?.pinned ? columnInfo.getPinnedColumnOffset(property) : undefined}
|
|
121
|
-
style:z-index={thisColumnInfo
|
|
123
|
+
style:z-index={thisColumnInfo?.pinned ? 5 : undefined}
|
|
122
124
|
>
|
|
123
125
|
<!--
|
|
124
126
|
Don't listen to events that the user hasn't turned on the features for.
|