Files

32 lines
543 B
Vue

<template>
<div class="demo">
<div class="box">
<center-tips />
</div>
<div class="box">
<center-tips content="暂无权限查看该内容" />
</div>
<div class="box">
<center-tips>使用默认插槽自定义提示</center-tips>
</div>
</div>
</template>
<script lang="ts" setup>
import { CenterTips } from "timi-web";
</script>
<style lang="less" scoped>
.demo {
.box {
margin-bottom: 1rem;
border: 1px dashed var(--vp-c-divider);
border-radius: .5rem;
&:last-child {
margin-bottom: 0;
}
}
}
</style>