forked from github/dataease
Merge pull request #9337 from dataease/pr@dev-v2_st
fix(数据大屏): 缩放组件数位器样式优化
This commit is contained in:
commit
df537a4daa
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user