Ver código fonte

Table: support producer and style in column_options

master
Bing Sun 5 anos atrás
pai
commit
bfa117bb94
Acessado por: sunb ID da chave GPG: F7795F8C590626AB
1 arquivos alterados com 4 adições e 1 exclusões
  1. +4
    -1
      src/components/Table.js

+ 4
- 1
src/components/Table.js Ver arquivo

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


Carregando…
Cancelar
Salvar