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

picker 能否直接指定 depth? #10

Closed
larryli opened this issue Dec 12, 2016 · 1 comment
Closed

picker 能否直接指定 depth? #10

larryli opened this issue Dec 12, 2016 · 1 comment

Comments

@larryli
Copy link

larryli commented Dec 12, 2016

直接:

 weui.picker(items, {
     onChange: function (result) {
         console.log(result)
     },
     onConfirm: function (result) {
         console.log(result)
     },
     id: 'doubleLinePicker',
     depth: 3
);

如果有指定的 options('depth') 就无须使用 util.depthOf()
这样城市选择就可以去掉蛋疼的“北京市/北京/朝阳区”这样的数据设计。

@BearJ
Copy link
Collaborator

BearJ commented Dec 12, 2016

@larryli 谢谢你的建议,我们在下个版本优化。

BearJ pushed a commit that referenced this issue Dec 13, 2016
@BearJ BearJ closed this as completed Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants