优化计算速度及界面
This commit is contained in:
@@ -21,9 +21,9 @@ export default defineComponent({
|
||||
setup(props) {
|
||||
const modelValue = useVModel(props, 'modelValue')
|
||||
return () => (
|
||||
<div class="flex min-w-80px h-20px border-1 border-solid border-[#5b472a] rounded-[2px] bg-[#000000]">
|
||||
<div class="flex min-w-80px h-15px border-1 border-solid border-[#5b472a] rounded-[2px] bg-[#000000] px-2px">
|
||||
<input
|
||||
class="flex-1 border-none w-full outline-none h-auto line-height-100% text-[#937639] m-0 bg-[#000000]"
|
||||
class="flex-1 border-none w-full outline-none h-auto line-height-100% text-[#ffe2ac] m-0 bg-[#000000]"
|
||||
type={props.type}
|
||||
v-model={modelValue.value}
|
||||
/>
|
||||
@@ -56,14 +56,14 @@ input::-webkit-inner-spin-button {
|
||||
.input-number-upper {
|
||||
background-image: url('@/assets/img/icon/input_upper.png');
|
||||
background-size: 8px auto;
|
||||
background-position: bottom 1px right 2px;
|
||||
background-position: bottom 1px center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.input-number-lower {
|
||||
background-image: url('@/assets/img/icon/input_lower.png');
|
||||
background-size: 8px auto;
|
||||
background-position: top 1px right 2px;
|
||||
background-position: top 1px center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user