forked from Ivasoft/geovisio-website
fix TS props error
This commit is contained in:
@@ -15,15 +15,14 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
interface Props {
|
||||
text: string
|
||||
path: string
|
||||
look: string
|
||||
type: string
|
||||
alt: string
|
||||
icon: string
|
||||
}
|
||||
const props = defineProps<Props>()
|
||||
const props = defineProps({
|
||||
text: { type: String },
|
||||
path: { type: String },
|
||||
look: { type: String },
|
||||
type: { type: String },
|
||||
alt: { type: String },
|
||||
icon: { type: String }
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user