feat:插件详情支持动态API调用

This commit is contained in:
jxxghp
2024-04-25 13:28:30 +08:00
parent 75ae7f0c15
commit d5d6bfdc56
3 changed files with 59 additions and 27 deletions

View File

@@ -1,4 +1,9 @@
<script lang="ts" setup>
// 定义输入参数
const props = defineProps({
// 是否显示
innerClass: String,
})
// 定义触发的自定义事件
const emit = defineEmits(['click', 'update:modelValue'])
// 按钮点击
@@ -9,10 +14,7 @@ function onClick() {
</script>
<template>
<IconBtn
class="absolute right-3 top-3"
@click.stop="onClick"
>
<IconBtn :class="props.innerClass ? props.innerClass : 'absolute right-3 top-3'" @click.stop="onClick">
<VIcon icon="mdi-close" />
</IconBtn>
</template>