Merge pull request #9337 from dataease/pr@dev-v2_st

fix(数据大屏): 缩放组件数位器样式优化
This commit is contained in:
dataeaseShu 2024-04-25 15:28:51 +08:00 committed by GitHub
commit df537a4daa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,21 +103,19 @@ onUnmounted(() => {
<template> <template>
<el-row class="custom-main"> <el-row class="custom-main">
<div class="scale-area"> <div class="scale-area">
<el-input <el-input-number
@keydown.stop @keydown.stop
@keyup.stop @keyup.stop
type="number"
size="small"
effect="dark"
v-model="scale" v-model="scale"
effect="dark"
:min="10" :min="10"
:max="200" :max="200"
:controls="false" size="small"
controls-position="right"
@change="handleScaleChange()" @change="handleScaleChange()"
class="scale-input-number" class="scale-input-number"
> />
<template #suffix> % </template>
</el-input>
<el-icon @click="scaleDecrease(1)" class="hover-icon-custom" style="margin-right: 12px"> <el-icon @click="scaleDecrease(1)" class="hover-icon-custom" style="margin-right: 12px">
<Icon name="dv-min"></Icon <Icon name="dv-min"></Icon
></el-icon> ></el-icon>
@ -160,16 +158,19 @@ onUnmounted(() => {
} }
.scale-input-number { .scale-input-number {
height: 28px; height: 24px;
width: 80px !important; line-height: 24px;
width: 80px;
margin-right: 16px; margin-right: 16px;
input {
-webkit-appearance: none;
-moz-appearance: textfield;
&::-webkit-inner-spin-button, :deep(.ed-input__wrapper) {
&::-webkit-outer-spin-button { position: relative;
-webkit-appearance: none; padding: 0 38px 0 8px;
&::after {
position: absolute;
content: '%';
right: 27px;
top: 1px;
} }
} }
} }