| | |
| | | this.modelValue === 0 || |
| | | this.modelValue === '' |
| | | ) { |
| | | this.val = this.modelValue; |
| | | this.val = this.modelValue; |
| | | } else { |
| | | // fix by ht 如果初始值为null,则input报错,待框架修复 |
| | | this.val = ''; |
| | |
| | | } |
| | | if (this.errMsg) this.errMsg = ''; |
| | | this.val = value; |
| | | // TODO 兼容 vue2 |
| | | this.$emit('input', value); |
| | | // TODO 兼容 vue3 |
| | | this.$emit('update:modelValue', value); |
| | | |
| | | // fix by ht input 修改一定要放在 update:modelvalue 后面,避免在input中修改值,导致 v-model 不生效 |
| | | // TODO 兼容 vue2 |
| | | this.$emit('input', value); |
| | | }, |
| | | |
| | | /** |
| | |
| | | line-height: 1; |
| | | font-size: 14px; |
| | | height: 35px; |
| | | // min-height: 36px; |
| | | |
| | | /*ifdef H5*/ |
| | | & ::-ms-reveal { |
| | | display: none; |
| | | } |
| | | |
| | | & ::-ms-clear { |
| | | display: none; |
| | | } |
| | | |
| | | & ::-o-clear { |
| | | display: none; |
| | | } |
| | | |
| | | /*endif*/ |
| | | } |
| | | |
| | | .uni-easyinput__placeholder-class { |
| | |
| | | font-size: 12px; |
| | | } |
| | | } |
| | | </style> |
| | | </style> |