mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
71e6365a74
* docs(components): [autocomplete] * Add new API component `ref-type`. * Update doc API name font-family. * Update API popup style. * Update Autocomplete documentations.
34 lines
749 B
Vue
34 lines
749 B
Vue
<script setup lang="ts">
|
|
import { Warning } from '@element-plus/icons-vue'
|
|
|
|
defineProps({
|
|
type: String,
|
|
details: String,
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<span class="flex items-center">
|
|
<code class="api-typing mr-1">
|
|
{{ type }}
|
|
</code>
|
|
<el-tooltip effect="light" trigger="click">
|
|
<el-button text :icon="Warning" class="p-2 text-4" />
|
|
<template #content>
|
|
<slot>
|
|
<div class="m-1">
|
|
<code
|
|
style="
|
|
color: var(--code-tooltip-color);
|
|
background-color: var(--code-tooltip-bg-color);
|
|
"
|
|
>
|
|
{{ details }}
|
|
</code>
|
|
</div>
|
|
</slot>
|
|
</template>
|
|
</el-tooltip>
|
|
</span>
|
|
</template>
|