mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-17 04:15:07 +08:00
初始化项目,自 v1.7.1 版本开始
This commit is contained in:
3
src/components/Tooltip/index.ts
Normal file
3
src/components/Tooltip/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import Tooltip from './src/Tooltip.vue'
|
||||
|
||||
export { Tooltip }
|
14
src/components/Tooltip/src/Tooltip.vue
Normal file
14
src/components/Tooltip/src/Tooltip.vue
Normal file
@ -0,0 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
import { propTypes } from '@/utils/propTypes'
|
||||
defineProps({
|
||||
titel: propTypes.string.def(''),
|
||||
message: propTypes.string.def(''),
|
||||
icon: propTypes.string.def('ep:question-filled')
|
||||
})
|
||||
</script>
|
||||
<template>
|
||||
<span>{{ titel }}</span>
|
||||
<ElTooltip :content="message" placement="top">
|
||||
<Icon :icon="icon" class="ml-1px relative top-1px" />
|
||||
</ElTooltip>
|
||||
</template>
|
Reference in New Issue
Block a user