We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
使用Selector组件的时候, 发现官方提供的Demo中的list使用的是key和value的json, 请问如果是后台返回的其他字符串, 如果自定义识别呢.
官方Demo代码:
list: [{key: 'gd', value: '广东'}, {key: 'gx', value: '广西'}],
但是我需要解析自定义后台接口的代码, 如下:
list2: [ { activityDefID: "name", activityInstDesc: "", activityInstID: 4410, activityInstName: "jingdong", },{ activityDefID: "name2", activityInstDesc: "", activityInstID: 4420, activityInstName: "taobao", },{ activityDefID: "name3", activityInstDesc: "", activityInstID: 4430, activityInstName: "alibaba", } ]
发现官方demo中, 必须在json中提供key:"", value:"" , 这样下拉框才能选择, 请问如果是上诉的list2应该如何识别呢.
<group title="with placeholder"> <selector placeholder="请选择省份" v-model="demo01" title="省份" name="district" :options="list" @on-change="onChange"></selector> </group>
The text was updated successfully, but these errors were encountered:
自行转换数据为组件需要的格式吧。
Sorry, something went wrong.
这个肯定是自已改数据了。
selector: add prop:value-map for automatically transform API data #2139
2fecc53
@airyland 其他控件有考虑通知改一下不? 👍
No branches or pull requests
使用Selector组件的时候, 发现官方提供的Demo中的list使用的是key和value的json, 请问如果是后台返回的其他字符串, 如果自定义识别呢.
官方Demo代码:
但是我需要解析自定义后台接口的代码, 如下:
发现官方demo中, 必须在json中提供key:"", value:"" , 这样下拉框才能选择, 请问如果是上诉的list2应该如何识别呢.
The text was updated successfully, but these errors were encountered: