-
Notifications
You must be signed in to change notification settings - Fork 23
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
If the two selection boxes have hierarchical relationships, how to get them linked #6
Comments
Sorry, There is no such feature for the time being, if you add cascade function , please pull a request, Thanks ! |
I want to set multiple custom properties ,Please tell me how to do it |
Hi @huyinxuan : |
ok , start for you , and you can add some api , For example provide choise fucntion . now i will get all data for dome . is very bad , then have time can push some code |
@Janking 尴尬 还以为你是老外呢 大概就是说 想增加一个 按状态选择的function咯 可以根据某个value 直接 设置选择状态 不需要再去拿到整个数据 设置它的selected状态 |
@huyinxuan 你的意思是提供一个value值,可以触发选中麽?例如这样: choose('a') ? |
@Janking 是的 |
@huyinxuan 好的,你的建议很棒,这个周末会更新 |
@huyinxuan 你好,请问你需要扩展自定义属性的用途是什么? |
@huyinxuan 已更新版本 |
@Janking 自定义属性的目的 就是在一个下拉在复杂场景中 一个value字段难以应付 后续判断场景 在配置中 传进去很多数据 但是你那边其实只会展示出 name 和 id =》 文本 和 data-value |
@huyinxuan 你试试从choice函数的第二个参数中获取,如果还满足不了你的需求,我就去修改一下正则 |
@Janking 啊 有两个参数? 我都不知道 你这边没注明啊 我都是把 e 和 this 自己传进去当参数来使的 两个参数是传递什么的? |
@huyinxuan 你可以在回调函数中打印一下this和arguments,😁 |
@Janking 嗯 目前我一些操作是这么做的 不过因为是 clone的 dom 所以this指向 和 我 设置自定义属性的节点 有不一样的 地方 492326552 你加下我qq 详聊 |
If you have this function, please tell me. If not, I will add myself. thanks in advance.
The text was updated successfully, but these errors were encountered: