forms/input/CInput.vue | ●●●●● patch | view | raw | blame | history | |
forms/input/cInput.scss | ●●●●● patch | view | raw | blame | history |
forms/input/CInput.vue
@@ -6,7 +6,7 @@ <template> <view class="c-input" :class="unit?'c-input-unit':''" :class="[unit?'c-input-unit':'', readOnly ? 'read-only':'']" > <AtInput :name="itemRes.name" @@ -46,6 +46,11 @@ placeholder: String, // 输入框单位 unit: String, // 只读模式 readOnly: { type: Boolean, default: false, }, }, computed: { value() { forms/input/cInput.scss
@@ -6,6 +6,10 @@ @import "../../common/sassMixin"; .c-input { &.read-only { pointer-events: none; background-color: #fafafa; } .at-input__icon { display: none; }