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
代码片段:
<s-select defaultValue="lucy" style="width: 120px;" on-change="handleChange"> <s-select-option value="jack"> <s-tooltip title="prompt text"> <span>Jack</span> </s-tooltip> </s-select-option> <s-select-option value="lucy"> <s-tooltip title="prompt text"> <span>Lucy</span> </s-tooltip> </s-select-option> </s-select>
在线示例:https://codesandbox.io/s/restless-frost-hcdt9v?file=/src/index.js
The text was updated successfully, but these errors were encountered:
不知道为啥 trigger 的 on-mouseenter 没有被触发,貌似也没有阻止冒泡行为
Sorry, something went wrong.
最终结论:其实是因为实际渲染是节点是被隐藏掉的,下拉的内容其实是一份拷贝,所以挂载的方法什么的都会失效。 代码:https://github.com/ecomfe/santd/blob/master/src/select/DropdownMenu.js#L24
san 不支持 jsx,按现在的设计思路,很难改造啊。感觉得改整个组件,换成 slot 方式来插入原组件示例
另外on-change 事件的option参数没有生效
No branches or pull requests
代码片段:
在线示例:https://codesandbox.io/s/restless-frost-hcdt9v?file=/src/index.js
The text was updated successfully, but these errors were encountered: