-
Notifications
You must be signed in to change notification settings - Fork 10
提问 #1
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
Comments
有具体的例子吗?可以写一个代码片段出来看看~ 比如你的如果是三阶联动,你使用defaultValue的话,格式就是三个对象组成的数组:[{}, {}, {}]。 |
@wangxinyugithub 你如果想指定默认选择项,defaultValue和defaultIndex是二选一的。也就是你可以使用defaultIndex来指定默认选择项;你也可以用你上图中的salaryValue这个数组来指定默认选择项,但是还需要指定defaultValueUniqueField=“name”。你看解决了你的问题吗?我的两个示例中都是用的defaultValue和defaultValueUniqueField,没有用到defaultIndex。
|
@wangxinyugithub 这个我暂时判断不出来,你看这样行不行,你打开微信开发者工具,点击项目下面的新建代码片段,你把这个问题复现出来写个demo,然后分享连接给我?这样更直接一些,我帮你看一下问题。 |
大佬 我这边电脑有点不方便 这样可以吗 组件就是直接引用你写的那个组件 什么也没改 我把数据直接给你吧你直接用就好 辛苦大佬啦 |
@wangxinyugithub 不好意思,这是一个bug,你可以从这里下载最新的代码重新试一下~ https://github.com/IceApriler/miniprogram-picker/releases |
@wangxinyugithub 最后问题解决了吗?😀 |
defaultValue设置默认值时 第一阶只能放两个对象,超多两个对象,defaultValue中的默认值就不能正确索引位置,为什么?求大佬解答
The text was updated successfully, but these errors were encountered: