fix: hide columns when applicable, for simple grid table element
This commit is contained in:
parent
9435baebef
commit
81fa500fb0
|
@ -2,6 +2,7 @@
|
|||
<${b}-table :data="gridContext['${grid.key}'].data">
|
||||
|
||||
% for column in grid.get_vue_columns():
|
||||
% if not column['hidden']:
|
||||
<${b}-table-column field="${column['field']}"
|
||||
label="${column['label']}"
|
||||
v-slot="props"
|
||||
|
@ -14,6 +15,7 @@
|
|||
<span v-html="props.row.${column['field']}"></span>
|
||||
% endif
|
||||
</${b}-table-column>
|
||||
% endif
|
||||
% endfor
|
||||
|
||||
% if grid.actions:
|
||||
|
|
Loading…
Reference in a new issue