mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 14:39:30 -07:00
Merge pull request #62 from lsdevelop/patch-1
Fix(MagicBento): Adjust nullability and enhance ts typings
This commit is contained in:
@@ -378,7 +378,7 @@ const ParticleCard = defineComponent({
|
|||||||
const GlobalSpotlight = defineComponent({
|
const GlobalSpotlight = defineComponent({
|
||||||
name: 'GlobalSpotlight',
|
name: 'GlobalSpotlight',
|
||||||
props: {
|
props: {
|
||||||
gridRef: { type: Object as PropType<HTMLDivElement | null>, required: true },
|
gridRef: {type: [Object, null] as PropType<HTMLDivElement | null>, required: true},
|
||||||
disableAnimations: { type: Boolean, default: false },
|
disableAnimations: { type: Boolean, default: false },
|
||||||
enabled: { type: Boolean, default: true },
|
enabled: { type: Boolean, default: true },
|
||||||
spotlightRadius: { type: Number, default: DEFAULT_SPOTLIGHT_RADIUS },
|
spotlightRadius: { type: Number, default: DEFAULT_SPOTLIGHT_RADIUS },
|
||||||
@@ -539,7 +539,10 @@ const GlobalSpotlight = defineComponent({
|
|||||||
const BentoCardGrid = defineComponent({
|
const BentoCardGrid = defineComponent({
|
||||||
name: 'BentoCardGrid',
|
name: 'BentoCardGrid',
|
||||||
props: {
|
props: {
|
||||||
gridRef: { type: Object }
|
gridRef: {
|
||||||
|
type: Function as PropType<(el: HTMLDivElement | null) => void>,
|
||||||
|
required: true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
template: `
|
template: `
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user