fix: third-party library type issues
- remove unsupported class prop from bits-ui SelectPrimitive.Root - add type assertion for RadioGroupPrimitive spread props (as any) - remove wx-svelte-grid Cell import (not exported) - simplify LastUpdatedCell props with index signature for grid props
This commit is contained in:
parent
009758a997
commit
654eabbeba
3 changed files with 3 additions and 6 deletions
|
|
@ -1,11 +1,9 @@
|
|||
<svelte:options runes={true} />
|
||||
|
||||
<script lang="ts">
|
||||
import type { ComponentProps } from 'svelte'
|
||||
import type { Cell } from 'wx-svelte-grid'
|
||||
|
||||
type Props = ComponentProps<Cell> & {
|
||||
interface Props {
|
||||
row: any
|
||||
[key: string]: any // Allow additional props from wx-svelte-grid
|
||||
}
|
||||
|
||||
const { row }: Props = $props()
|
||||
|
|
|
|||
|
|
@ -143,7 +143,6 @@
|
|||
onValueChange={handleValueChange}
|
||||
{disabled}
|
||||
items={stringOptions}
|
||||
class={className}
|
||||
>
|
||||
<SelectPrimitive.Trigger class={selectClasses} data-placeholder={!selected}>
|
||||
{#if selected?.image}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@
|
|||
</script>
|
||||
|
||||
<div class={wrapperClassList}>
|
||||
<RadioGroupPrimitive.Root bind:value class={classList} {...optionalProps(restProps)}>
|
||||
<RadioGroupPrimitive.Root bind:value class={classList} {...(optionalProps(restProps) as any)}>
|
||||
{@render children?.()}
|
||||
</RadioGroupPrimitive.Root>
|
||||
</div>
|
||||
Loading…
Reference in a new issue