🐛(layer): typescript 错误

更新文档
This commit is contained in:
就眠儀式
2022-06-18 15:57:10 +08:00
parent 04b52e0814
commit f030784410
7 changed files with 39 additions and 59 deletions

View File

@@ -1,4 +1,5 @@
<script lang="ts">
import { computed, VNodeTypes } from 'vue';
export default {
name: "Iframe",
};
@@ -6,10 +7,15 @@ export default {
<script lang="ts" setup>
export interface IframeProps {
src: string;
src?: string | Function | object | VNodeTypes;
}
const props = defineProps<IframeProps>();
const src = computed(() => {
return props.src as string
})
</script>
<template>