Auto Commit

上级 9fe893ff
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
" "
></div> ></div>
<div class="text-warpper"></div> <div class="text-warpper"></div>
<div class="text">{{ per }}%</div> <div class="text">{{ per }}</div>
</div> </div>
</div> </div>
<div class="bottom-box"> <div class="bottom-box">
...@@ -39,11 +39,11 @@ const props = defineProps({ ...@@ -39,11 +39,11 @@ const props = defineProps({
}, },
per: { per: {
type: Number, type: Number,
default: 75, default: 66.66,
}, },
fontSize: { fontSize: {
type: Number, type: Number,
default: 12, default: 20,
}, },
}); });
const { title, per } = toRefs(props); const { title, per } = toRefs(props);
...@@ -58,7 +58,7 @@ watch( ...@@ -58,7 +58,7 @@ watch(
onMounted(() => { onMounted(() => {
changeper(); changeper();
}); });
let ran = ref(Math.floor(Math.random() * 100) + per.value); let ran = ref(Math.floor(Math.random() * 100));
const changeper = () => { const changeper = () => {
let p = per.value; let p = per.value;
let deg = (180 * p) / 100 - 90; let deg = (180 * p) / 100 - 90;
...@@ -81,15 +81,15 @@ const changeper = () => { ...@@ -81,15 +81,15 @@ const changeper = () => {
</script> </script>
<style lang="css" scoped> <style lang="css" scoped>
.das-warpper { .das-warpper {
height: 75px; height: 160px;
overflow: hidden; overflow: hidden;
} }
.das { .das {
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
width: 130px; width: 330px;
height: 130px; height: 330px;
border: 1px dashed #1a75bf; border: 1px dashed #1a75bf;
border-radius: 100%; border-radius: 100%;
display: flex; display: flex;
...@@ -152,8 +152,8 @@ const changeper = () => { ...@@ -152,8 +152,8 @@ const changeper = () => {
.das .text { .das .text {
position: absolute; position: absolute;
top: 30%; top: 20%;
font-size: 30px; font-size: 50px;
font-weight: bold; font-weight: bold;
z-index: 300; z-index: 300;
} }
...@@ -163,36 +163,40 @@ const changeper = () => { ...@@ -163,36 +163,40 @@ const changeper = () => {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-top: 3px; /* margin-top: 3px; */
position: relative;
top: -20px;
} }
.bottom-box .left-gradient { .bottom-box .left-gradient {
width: 20px; width: 50px;
height: 5px; height: 10px;
background: linear-gradient(to left, #1c81cf, transparent); background: linear-gradient(to left, #1c81cf, transparent);
} }
.bottom-box .right-gradient { .bottom-box .right-gradient {
width: 20px; width: 50px;
height: 5px; height: 10px;
background: linear-gradient(to right, #1c81cf, transparent); background: linear-gradient(to right, #1c81cf, transparent);
} }
.bottom-box .title { .bottom-box .title {
border-radius: 5px; border-radius: 5px;
font-size: 12px;
text-align: center; text-align: center;
margin: 0px 4px; margin: 0px 4px;
font-size: 22px;
} }
.layout { .layout {
background-color: #032468; background-color: #032468;
color: #fff; color: #fff;
width: 150px; /* width: 150px; */
position: relative; position: relative;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding: 20px;
} }
</style> </style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册