瀏覽代碼

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')
]),


Loading…
取消
儲存