fix: typings
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
<script lang="ts" setup>
|
||||
const props = defineProps<{ nodeStyles: Record<string, any> }>()
|
||||
import { NodeProps } from '~/index'
|
||||
|
||||
interface NodeAProps extends NodeProps {
|
||||
nodeStyles: Record<string, any>
|
||||
}
|
||||
const props = defineProps<NodeAProps>()
|
||||
</script>
|
||||
<template>
|
||||
<div :style="props.nodeStyles">A</div>
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
<script lang="ts" setup>
|
||||
const props = defineProps<{ nodeStyles: Record<string, any> }>()
|
||||
import { NodeProps } from '~/index'
|
||||
|
||||
interface NodeBPro extends NodeProps {
|
||||
nodeStyles: Record<string, any>
|
||||
}
|
||||
const props = defineProps<NodeBPro>()
|
||||
</script>
|
||||
<template>
|
||||
<div :style="props.nodeStyles">B</div>
|
||||
|
||||
Reference in New Issue
Block a user