2022-11-01 18:09:19 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { Warning } from '@element-plus/icons-vue'
|
|
|
|
|
|
|
|
defineProps({
|
|
|
|
type: String,
|
|
|
|
details: String,
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<span class="flex items-center">
|
2022-11-01 21:52:16 +08:00
|
|
|
<code class="api-typing mr-1">
|
2022-11-01 18:09:19 +08:00
|
|
|
{{ type }}
|
2022-11-01 20:31:39 +08:00
|
|
|
</code>
|
2022-11-01 18:09:19 +08:00
|
|
|
<el-tooltip effect="light" trigger="click">
|
2022-11-01 21:52:16 +08:00
|
|
|
<el-button text :icon="Warning" class="p-2 text-4" />
|
2022-11-01 18:09:19 +08:00
|
|
|
<template #content>
|
|
|
|
<div class="m-1">
|
|
|
|
<code>
|
|
|
|
{{ details }}
|
|
|
|
</code>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</el-tooltip>
|
|
|
|
</span>
|
|
|
|
</template>
|