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} />
|
<svelte:options runes={true} />
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { ComponentProps } from 'svelte'
|
interface Props {
|
||||||
import type { Cell } from 'wx-svelte-grid'
|
|
||||||
|
|
||||||
type Props = ComponentProps<Cell> & {
|
|
||||||
row: any
|
row: any
|
||||||
|
[key: string]: any // Allow additional props from wx-svelte-grid
|
||||||
}
|
}
|
||||||
|
|
||||||
const { row }: Props = $props()
|
const { row }: Props = $props()
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,6 @@
|
||||||
onValueChange={handleValueChange}
|
onValueChange={handleValueChange}
|
||||||
{disabled}
|
{disabled}
|
||||||
items={stringOptions}
|
items={stringOptions}
|
||||||
class={className}
|
|
||||||
>
|
>
|
||||||
<SelectPrimitive.Trigger class={selectClasses} data-placeholder={!selected}>
|
<SelectPrimitive.Trigger class={selectClasses} data-placeholder={!selected}>
|
||||||
{#if selected?.image}
|
{#if selected?.image}
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class={wrapperClassList}>
|
<div class={wrapperClassList}>
|
||||||
<RadioGroupPrimitive.Root bind:value class={classList} {...optionalProps(restProps)}>
|
<RadioGroupPrimitive.Root bind:value class={classList} {...(optionalProps(restProps) as any)}>
|
||||||
{@render children?.()}
|
{@render children?.()}
|
||||||
</RadioGroupPrimitive.Root>
|
</RadioGroupPrimitive.Root>
|
||||||
</div>
|
</div>
|
||||||
Loading…
Reference in a new issue