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' } }, '忽略')
])
]
},
---------------------------------------------
生活的意义并不是与他人争高下,而在于享受努力实现目标的过程,结果是对自己行动的嘉奖。
↑面的话,越看越不痛快,应该这么说:
生活的意义就是你自己知道你要做什么,明确目标。没有目标,后面都是瞎扯!
新博客 https://www.VuejsDev.com 用于梳理知识点