浏览代码

Table: support producer and style in column_options

master
Bing Sun 5 年前
父节点
当前提交
bfa117bb94
签署人:: sunb GPG 密钥 ID: F7795F8C590626AB
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      src/components/Table.js

+ 4
- 1
src/components/Table.js 查看文件

@@ -105,7 +105,10 @@ export default initial_vnode => {
if (typeof column.tag != 'undefined')
v = m(column.tag, v)

return m(`td${column.class || ''}`, v)
if (typeof column.producer == 'function')
v = column.producer(v)

return m(`td${column.class || ''}`, {style: column.style || undefined}, v)
})
]))) : m('', 'Empty')
]),


正在加载...
取消
保存