Explorar el Código

Table: support producer and style in column_options

master
Bing Sun hace 5 años
padre
commit
bfa117bb94
Firmado por: sunb ID de clave GPG: F7795F8C590626AB
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. +4
    -1
      src/components/Table.js

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

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


Cargando…
Cancelar
Guardar