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

ant中获取select下拉选中的option的多个数据 - 阿piu~ต - 博客园 #203

Open
xiaodongxier opened this issue Aug 30, 2023 · 0 comments

Comments

@xiaodongxier
Copy link
Owner

ant中获取select下拉选中的option的多个数据

其中用了v-for的:key和:value属性一致有一个就可以了,否则会报错,但是我们可能还要获取选中的option中的其他值,怎么办呢,

      在上任意绑定一个键值对,如下图:code可以任意取名,可以等于整条option数据,或则其中一个数据,

从ant提供了@chang(value,option)或@select(value,option)方法中option参数获取,code在option.data.attrs.code中。

绑定:code,[code]可以自定义

获取code绑定的值option.data.attrs.code

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