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
table 合并时无法使用插槽 #2631
Comments
遇到了同样的问题,官方给的demo里面 children 赋值是不是草率了?直接把标签给写进去了,然并卵。
|
children添加了个@click就报了如下语法错误:
就像 @asunaCC 提出的问题 目前可还有更好的解决方案吗,求指教,感谢! |
Render /JSX 都给你提示了,你应该去看一下怎么用吧,怎么就 template 用法,用到上面了... onClick 或者 { on: { click: () => {} }} |
@sendya 解决了,先来感谢你!主要还是自己太菜了。感觉自己前端的道路又长了。。。
methods中
查看了好多资料,帮助最大的是这个 https://www.runoob.com/react/react-event-handle.html |
children 里面的div怎么动态添加属性 我想加个id 用:id 或者 id=${}这样都不行 @sendya |
我知道了 这样id={} |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
多谢帮了大忙,真的吐槽官方例子深入定制一点就需要看源码和官方仓库github issues |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
undefined
Environment
windows10 Google开发者版本86.0.4214.2 vue: ^2.6.11
Reproduction link
https://www.antdv.com/components/table-cn/
Steps to reproduce
{{ text }} ---- {{ record }} } const columns = [ { title: "订单详情", dataIndex: "consigneeAddress", scopedSlots: { customRender: "consigneeAddress" }, customRender:(value, row, index) => { const obj = { children: value, attrs: {} }; obj.attrs.colSpan = 8; return obj; } }What is expected?
期望能够在使用单元格合并时同时使用插槽,或者在返回对象 children属性中使用HTML代码
What is actually happening?
无法使用插槽,HTML代码被渲染为字符串
The text was updated successfully, but these errors were encountered: