Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a-input-password 组件所有的事件和双向绑定都没有效果 #1306

Closed
1 task
xiaohuwei opened this issue Oct 17, 2019 · 6 comments
Closed
1 task
Labels

Comments

@xiaohuwei
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.4.0

Environment

谷歌 MacOS

Reproduction link

https://vue.ant.design/components/input-cn/

Steps to reproduce

正常引用 全部失效

What is expected?

得到解决

What is actually happening?

业务无法进行!!!!

@sendya
Copy link
Member

sendya commented Oct 17, 2019

能提供一个复现吗?谢谢

@xiaohuwei
Copy link
Author

<template>
  <div class="hello">
<a-input v-model="username" placeholder="Basic usage" />
<a-input-password  v-model="password" placeholder="input password" @change='change' />
 <a-button @click='login' type="primary">Login</a-button>
  </div>
</template>

<script>
    export default {
        name: 'HelloWorld',
        props: {
            msg: String
        },
        data() {
            return {
                username: '',
                password: ''
            }
        },
        methods:{
          login(){
           console.log(this.username,this.password)
          },
          change(){
            console.log(88888)
          }
        },
    }
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>

在线的组件都不能加载 直接给您代码吧

@sendya
Copy link
Member

sendya commented Oct 17, 2019

https://codesandbox.io/s/vue-antd-template-r65mh password 框确实有问题。

你可以先用 input 自己加 suffix 来实现 input-password 功能

@xiaohuwei
Copy link
Author

好的 希望及早修复!!!😁

@hellodr333
Copy link

我也是碰到这个问题,想要一个密码框的效果,版本升级到了1.4.0,没想到,没法双向绑定,还没有解决这个问题么?

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants