Commit dc1d6968 authored by Damon's avatar Damon

步进器样式调整

parent 881b1ab3
......@@ -11,9 +11,7 @@
<input :disabled="disabledInput || disabled" :cursor-spacing="getCursorSpacing" :class="{ 'u-input-disabled': disabled }"
v-model="inputVal" class="u-number-input" @blur="onBlur" @focus="onFocus"
type="number" :style="{
color: color,
fontSize: size + 'rpx',
background: bgColor,
height: inputHeight + 'rpx',
width: inputWidth + 'rpx'
}" />
......@@ -66,7 +64,7 @@
// 背景颜色
bgColor: {
type: String,
default: '#F2F3F5'
default: '#2272FF'
},
// 最小值
min: {
......@@ -96,7 +94,7 @@
// 加减图标的颜色
color: {
type: String,
default: '#323233'
default: '#fff'
},
// input宽度,单位rpx
inputWidth: {
......@@ -341,14 +339,13 @@
@include vue-flex;
justify-content: center;
align-items: center;
border-radius: 8rpx;
}
.u-icon-plus {
border-radius: 0 8rpx 8rpx 0;
}
.u-icon-minus {
border-radius: 8rpx 0 0 8rpx;
}
.u-icon-disabled {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment