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,10 +46,18 @@ placeholder: String, // 输入框单位 unit: String, // 只读模式 readOnly: { type: Boolean, default: false, }, }, computed: { value() { return (itemRes.formData[itemRes.name] || '').replace(/[\n\r]/g, ''); return (this.itemRes.formData[this.itemRes.name] || '').replace( /[\n\r]/g, '' ); }, }, methods: {