Skip to content

input标签设置readonly不生效 #3276

@DuskHonor

Description

@DuskHonor

NutUI 包名

@nutui/nutui-taro

NutUI 版本号

3.3.8

平台

h5

重现链接

重现步骤

代码部分(未做任何其他处理):
<input class="nut-input-text" @click="buyShow" placeholder="请选择车次" type="text" v-model="commuteForm.trainNumber" readonly/>
<nut-picker :columns="columns" title="班车车次" v-model:visible="buyShowFlag" @confirm="buyConfirm" />

从截图可以看到,readonly属性并未渲染到input元素上,而是处理到了上层的taro-input-core元素上,但产品的示例可以看到readonly属性是在input元素上的
Image
Image

期望的结果是什么?

正常设置只读属性

实际的结果是什么?

未正常设置只读属性

环境信息

No response

其他补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions