zn-admin-vue3-wcs/src/views/member/user/components/card-title.vue
绮梦 10d9f11fba 增加用户详情页以及 签到、积分等用户详情下的子tab页。
增加 用户、签到、积分 接口的VO,方便在组件中使用。
2023-08-22 16:14:25 +08:00

37 lines
644 B
Vue

<script lang="ts" setup>
import { defineComponent } from 'vue'
defineComponent({
name: 'CardTitle'
})
const { title } = defineProps({
title: {
type: String,
required: true
}
})
</script>
<template>
<span class="card-title">{{ title }}</span>
</template>
<style scoped lang="scss">
.card-title {
font-size: 14px;
font-weight: 600;
&::before {
content: '';
display: inline-block;
width: 3px;
height: 14px;
//background-color: #105cfb;
background: var(--el-color-primary);
position: relative;
left: -5px;
top: 8px;
border-radius: 5px;
transform: translateY(-50%);
}
}
</style>