Commit 41918ed85652ab1d21c66c3d308d377bf5d182ea

Authored by 梁灏
1 parent dd037d90

update Input

examples/routers/input.vue
1 1 <template>
2 2 <div style="width: 100px;">
3   - <Input v-model="value1" size="large" placeholder="large size"></Input>
  3 + <Input autocomplete="on" v-model="value1" size="large" placeholder="large size"></Input>
4 4 <br>
5 5 <Input v-model="value2" placeholder="default size"></Input>
6 6 <br>
... ...
src/components/input/input.vue
... ... @@ -115,7 +115,9 @@
115 115 default: false
116 116 },
117 117 autocomplete: {
118   - type: String,
  118 + validator (value) {
  119 + return oneOf(value, ['on', 'off']);
  120 + },
119 121 default: 'off'
120 122 }
121 123 },
... ...