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

select组件如果不给默认值的时候,选项弹出后,直接点确定无法选择第一个值 #2

Open
zhangweida1995 opened this issue May 31, 2020 · 0 comments

Comments

@zhangweida1995
Copy link

<cl-select mode="selector" v-model="form.type" :options="options"></cl-select> form={ type:'', //type没有默认值 } options = [ { label:'选项一', value:'11111' } ]
如果没有默认值,并且直接选择第一个选项的时候,change事件中的value参数则是-1。
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant