mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 11:08:00 +08:00
fix: password add focus blur methods #1485
This commit is contained in:
parent
d294328319
commit
843d9dc82f
@ -31,6 +31,12 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
focus() {
|
||||
this.$refs.input.focus();
|
||||
},
|
||||
blur() {
|
||||
this.$refs.input.blur();
|
||||
},
|
||||
onChange() {
|
||||
this.setState({
|
||||
visible: !this.visible,
|
||||
@ -85,6 +91,7 @@ export default {
|
||||
type: this.visible ? 'text' : 'password',
|
||||
},
|
||||
class: inputClassName,
|
||||
ref: 'input',
|
||||
on: this.$listeners,
|
||||
};
|
||||
return <Input {...inputProps} />;
|
||||
|
Loading…
Reference in New Issue
Block a user