poe-svelte-ui-lib 1.6.5 → 1.6.6
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 +9 -3
- package/package.json +1 -1
package/dist/Table/Table.svelte
CHANGED
|
@@ -114,9 +114,15 @@
|
|
|
114
114
|
if (button.onClick) button.onClick(row)
|
|
115
115
|
else if (button.eventHandler && onClick) {
|
|
116
116
|
let value: Record<string, boolean | string | number | number[] | object | null> = {}
|
|
117
|
-
button.eventHandler.Variables.forEach((v: string) =>
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
button.eventHandler.Variables.forEach((v: string) => {
|
|
118
|
+
if (header.some(h => h.key === v && h.action?.type === "select")) {
|
|
119
|
+
value[v] = row[v][0]
|
|
120
|
+
} else {
|
|
121
|
+
value[v] = row[v]
|
|
122
|
+
}
|
|
123
|
+
button.eventHandler.Value = JSON.stringify(value)
|
|
124
|
+
onClick(button.eventHandler)
|
|
125
|
+
})
|
|
120
126
|
}
|
|
121
127
|
}
|
|
122
128
|
|