From a580cafe59a8f067cc6f011193952367beadcb2f Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Fri, 22 Apr 2022 18:16:06 +0800 Subject: [PATCH] 地址组件,增加智能地址识别功能 --- forms/input/CInput.vue | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/forms/input/CInput.vue b/forms/input/CInput.vue index 74d986e..ca251f7 100644 --- a/forms/input/CInput.vue +++ b/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() { -- Gitblit v1.9.1