2021-09-17 00:18:50 +08:00
|
|
|
<template>
|
2021-12-21 14:56:47 +08:00
|
|
|
<div class="tooltip-base-box">
|
|
|
|
<div class="row center">
|
2021-09-17 00:18:50 +08:00
|
|
|
<el-tooltip
|
2021-12-21 14:56:47 +08:00
|
|
|
class="box-item"
|
2021-09-17 00:18:50 +08:00
|
|
|
effect="dark"
|
|
|
|
content="Top Left prompts info"
|
|
|
|
placement="top-start"
|
|
|
|
>
|
2022-01-04 09:15:15 +08:00
|
|
|
<el-button class="item">top-start</el-button>
|
2021-09-17 00:18:50 +08:00
|
|
|
</el-tooltip>
|
|
|
|
<el-tooltip
|
2021-12-21 14:56:47 +08:00
|
|
|
class="box-item"
|
2021-09-17 00:18:50 +08:00
|
|
|
effect="dark"
|
|
|
|
content="Top Center prompts info"
|
|
|
|
placement="top"
|
|
|
|
>
|
2022-01-04 09:15:15 +08:00
|
|
|
<el-button class="item">top</el-button>
|
2021-09-17 00:18:50 +08:00
|
|
|
</el-tooltip>
|
|
|
|
<el-tooltip
|
2021-12-21 14:56:47 +08:00
|
|
|
class="box-item"
|
2021-09-17 00:18:50 +08:00
|
|
|
effect="dark"
|
|
|
|
content="Top Right prompts info"
|
|
|
|
placement="top-end"
|
|
|
|
>
|
2022-01-04 09:15:15 +08:00
|
|
|
<el-button class="item">top-end</el-button>
|
2021-09-17 00:18:50 +08:00
|
|
|
</el-tooltip>
|
|
|
|
</div>
|
2021-12-21 14:56:47 +08:00
|
|
|
<div class="row">
|
2021-09-17 00:18:50 +08:00
|
|
|
<el-tooltip
|
2021-12-21 14:56:47 +08:00
|
|
|
class="box-item"
|
2021-09-17 00:18:50 +08:00
|
|
|
effect="dark"
|
|
|
|
content="Left Top prompts info"
|
|
|
|
placement="left-start"
|
|
|
|
>
|
2022-01-04 09:15:15 +08:00
|
|
|
<el-button class="item">left-start</el-button>
|
2021-09-17 00:18:50 +08:00
|
|
|
</el-tooltip>
|
|
|
|
<el-tooltip
|
2021-12-21 14:56:47 +08:00
|
|
|
class="box-item"
|
2021-09-17 00:18:50 +08:00
|
|
|
effect="dark"
|
2021-12-21 14:56:47 +08:00
|
|
|
content="Right Top prompts info"
|
|
|
|
placement="right-start"
|
2021-09-17 00:18:50 +08:00
|
|
|
>
|
2021-12-21 14:56:47 +08:00
|
|
|
<el-button>right-start</el-button>
|
2021-09-17 00:18:50 +08:00
|
|
|
</el-tooltip>
|
|
|
|
</div>
|
2021-12-21 14:56:47 +08:00
|
|
|
<div class="row">
|
2021-09-17 00:18:50 +08:00
|
|
|
<el-tooltip
|
2021-12-21 14:56:47 +08:00
|
|
|
class="box-item"
|
2021-09-17 00:18:50 +08:00
|
|
|
effect="dark"
|
2021-12-21 14:56:47 +08:00
|
|
|
content="Left Center prompts info"
|
|
|
|
placement="left"
|
2021-09-17 00:18:50 +08:00
|
|
|
>
|
2021-12-21 14:56:47 +08:00
|
|
|
<el-button>left</el-button>
|
2021-09-17 00:18:50 +08:00
|
|
|
</el-tooltip>
|
|
|
|
<el-tooltip
|
2021-12-21 14:56:47 +08:00
|
|
|
class="box-item"
|
2021-09-17 00:18:50 +08:00
|
|
|
effect="dark"
|
|
|
|
content="Right Center prompts info"
|
|
|
|
placement="right"
|
|
|
|
>
|
2022-01-04 09:15:15 +08:00
|
|
|
<el-button class="item">right</el-button>
|
2021-09-17 00:18:50 +08:00
|
|
|
</el-tooltip>
|
2021-12-21 14:56:47 +08:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<el-tooltip
|
|
|
|
class="box-item"
|
|
|
|
effect="dark"
|
|
|
|
content="Left Bottom prompts info"
|
|
|
|
placement="left-end"
|
|
|
|
>
|
|
|
|
<el-button>left-end</el-button>
|
|
|
|
</el-tooltip>
|
2021-09-17 00:18:50 +08:00
|
|
|
<el-tooltip
|
2021-12-21 14:56:47 +08:00
|
|
|
class="box-item"
|
2021-09-17 00:18:50 +08:00
|
|
|
effect="dark"
|
|
|
|
content="Right Bottom prompts info"
|
|
|
|
placement="right-end"
|
|
|
|
>
|
2022-01-04 09:15:15 +08:00
|
|
|
<el-button class="item">right-end</el-button>
|
2021-09-17 00:18:50 +08:00
|
|
|
</el-tooltip>
|
|
|
|
</div>
|
2021-12-21 14:56:47 +08:00
|
|
|
<div class="row center">
|
2021-09-17 00:18:50 +08:00
|
|
|
<el-tooltip
|
2021-12-21 14:56:47 +08:00
|
|
|
class="box-item"
|
2021-09-17 00:18:50 +08:00
|
|
|
effect="dark"
|
|
|
|
content="Bottom Left prompts info"
|
|
|
|
placement="bottom-start"
|
|
|
|
>
|
2022-01-04 09:15:15 +08:00
|
|
|
<el-button class="item">bottom-start</el-button>
|
2021-09-17 00:18:50 +08:00
|
|
|
</el-tooltip>
|
|
|
|
<el-tooltip
|
2021-12-21 14:56:47 +08:00
|
|
|
class="box-item"
|
2021-09-17 00:18:50 +08:00
|
|
|
effect="dark"
|
|
|
|
content="Bottom Center prompts info"
|
|
|
|
placement="bottom"
|
|
|
|
>
|
2022-01-04 09:15:15 +08:00
|
|
|
<el-button class="item">bottom</el-button>
|
2021-09-17 00:18:50 +08:00
|
|
|
</el-tooltip>
|
|
|
|
<el-tooltip
|
2021-12-21 14:56:47 +08:00
|
|
|
class="box-item"
|
2021-09-17 00:18:50 +08:00
|
|
|
effect="dark"
|
|
|
|
content="Bottom Right prompts info"
|
|
|
|
placement="bottom-end"
|
|
|
|
>
|
2022-01-04 09:15:15 +08:00
|
|
|
<el-button class="item">bottom-end</el-button>
|
2021-09-17 00:18:50 +08:00
|
|
|
</el-tooltip>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2021-12-21 14:56:47 +08:00
|
|
|
<style>
|
|
|
|
.tooltip-base-box {
|
|
|
|
width: 600px;
|
|
|
|
}
|
|
|
|
.tooltip-base-box .row {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
.tooltip-base-box .center {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
.tooltip-base-box .box-item {
|
|
|
|
width: 110px;
|
|
|
|
margin-top: 10px;
|
2021-09-17 00:18:50 +08:00
|
|
|
}
|
|
|
|
</style>
|