From eb2ed1001f4efa94117497be3b4dd9c95d8242f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Fri, 6 May 2022 14:52:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84(input):=20=E4=BF=AE=E6=AD=A3=20inp?= =?UTF-8?q?ut=20=E7=BB=84=E4=BB=B6=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/input/index.vue | 4 ++-- package/component/src/component/inputNumber/index.vue | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package/component/src/component/input/index.vue b/package/component/src/component/input/index.vue index 4ce51c2d..a8523e21 100644 --- a/package/component/src/component/input/index.vue +++ b/package/component/src/component/input/index.vue @@ -31,7 +31,7 @@ const props = withDefaults(defineProps(), { readonly: false, allowClear: false, autofocus: false, - autocomplete: false + autocomplete: false, }); const emit = defineEmits([ @@ -78,13 +78,13 @@ const onBlur = () => { :placeholder="placeholder" :autofocus="autofocus" :autocomplete="autocomplete" + :readonly="readonly" :class="{ 'layui-disabled': disabled }" class="layui-input" @input="onInput" @focus="onFocus" @blur="onBlur" @change="onChange" - :readonly="props.readonly" /> diff --git a/package/component/src/component/inputNumber/index.vue b/package/component/src/component/inputNumber/index.vue index e5920f56..698e5ff3 100644 --- a/package/component/src/component/inputNumber/index.vue +++ b/package/component/src/component/inputNumber/index.vue @@ -5,10 +5,10 @@ export default {