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 {