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>
|
2022-11-01 22:35:48 +08:00
|
|
|
<slot>
|
|
|
|
<div class="m-1">
|
|
|
|
<code>
|
|
|
|
{{ details }}
|
|
|
|
</code>
|
|
|
|
</div>
|
|
|
|
</slot>
|
2022-11-01 18:09:19 +08:00
|
|
|
</template>
|
|
|
|
</el-tooltip>
|
|
|
|
</span>
|
|
|
|
</template>
|