arco-design / arco-design-vue

A Vue.js 3 UI Library based on Arco Design
https://arco.design/vue
MIT License
2.74k stars 537 forks source link

input组件,使用input-attrs设置autocomplete无效 #2819

Open fkcoward opened 12 months ago

fkcoward commented 12 months ago

Basic Info

Steps to reproduce

<a-input v-model.trim="form.userDisplayName" :input-attrs="{ autocomplete: 'off' }" placeholder="请输入账号昵称" />

<a-input v-model.trim="form.userDisplayName" :input-attrs="{ autocomplete: fasle }" placeholder="请输入账号昵称" /> 都不生效,无法阻止浏览器自动填充,不过这是不是浏览器的问题?浏览器就会一致填充。

fkcoward commented 12 months ago
<a-input
            v-model.trim="form.userDisplayName"
            :input-attrs="{ autocomplete: 'off' }"
            placeholder="请输入账号昵称"
          />
fkcoward commented 12 months ago
<a-input
            v-model.trim="form.userDisplayName"
            :input-attrs="{ autocomplete: false }"
            placeholder="请输入账号昵称"
          />