ソースを参照

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


読み込み中…
キャンセル
保存