32 lines
677 B
Vue
32 lines
677 B
Vue
|
|
<template>
|
||
|
|
<ChartCard margin="0 0 30rpx 0" title="安全工时">
|
||
|
|
<view class="safe-hours">
|
||
|
|
<text>9024145</text><text>万</text>
|
||
|
|
</view>
|
||
|
|
</ChartCard>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script setup>
|
||
|
|
import ChartCard from '@/components/chartCard.vue'
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style lang="scss">
|
||
|
|
.safe-hours {
|
||
|
|
padding: 0 40rpx 0 120rpx;
|
||
|
|
width: 100%;
|
||
|
|
text-align: left;
|
||
|
|
overflow: hidden;
|
||
|
|
|
||
|
|
>text {
|
||
|
|
font-weight: 700;
|
||
|
|
font-size: 52rpx;
|
||
|
|
background: linear-gradient(180deg, #2573cb, #50c2ff);
|
||
|
|
-webkit-background-clip: text;
|
||
|
|
/* 兼容Safari浏览器 */
|
||
|
|
background-clip: text;
|
||
|
|
color: transparent;
|
||
|
|
/* 文字透明,显示背景渐变 */
|
||
|
|
letter-spacing: 10rpx;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</style>
|