vue iview render里面 没有双向绑定 renderHeader 要序列化 反序列 一下
2024-08-31 08:41:42
vue iview render里面 没有双向绑定 renderHeader 要序列化 反序列 一下
renderHeader: (h, params) => {
return [
h('RadioGroup', {
props: {
value: '3',
type: 'button'
},
on: {
'on-change': value => {
// params.index 行 params.column.key 列 this.tableData.some((item, index, arr) => {
item['rgOperation'] = value
})
let t = JSON.parse(JSON.stringify(this.tableData))
this.tableData = t
}
}
}, [
h('Radio', { props: { label: '1' } }, '覆盖'),
h('Radio', { props: { label: '2' } }, '追加'),
h('Radio', { props: { label: '3' } }, '忽略')
])
]
},
最新文章
- css中很有用的属性
- iOS 发送Email
- Struts2-tomcat报错:There is no Action mapped for namespace / and action
- TortoiseGIT
- linux 通用IO
- c中static作用
- ASP.NET为图片加上水印
- MyEclipse 2013 开发WebService
- Asp.Net Web Api 与 Andriod 接口对接开发经验,给小伙伴分享一下!
- SSD: Single Shot MultiBox Detector
- android_小总结_方法过时的兼容处理
- [PWA] 14. Loop cursor
- html-图片button,抓包---Shinepans
- Sonar——代码质量管理平台
- Hadoop学习笔记—5.自定义类型处理手机上网日志
- MyEclipse10.7使用egit托管项目到GitHub
- 初识 BFC、 IFC、GFC、FFC
- STM32学习笔记(二):GPIO口工作原理
- 牛客网数据库SQL实战(11-15)
- Django配置后台xadmin管理界面
热门文章
- Java中断机制
- vue 使用font-awesome 只需两步
- 【215】◀▶ IDL 文件操作说明
- git cherry-pick简介(转载)
- 51nod 1092【区间dp】
- Luogu P1069细胞分裂【分解质因数/数论】By cellur925
- scikit-learning教程(三)使用文本数据
- [BZOJ5120]无限之环
- 洛谷 P2398 GCD SUM || uva11417,uva11426,uva11424,洛谷P1390,洛谷P2257,洛谷P2568
- linux实现多台服务器文件同步