Refactor on ColumnToggler demo
parent
10726918f6
commit
e20a6964f3
|
@ -16,7 +16,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<Column field="vin" header="Vin" />
|
||||
<Column v-for="col of selectedColumns" :field="col.field" :header="col.header" :key="col.field"></Column>
|
||||
<Column v-for="(col, index) of selectedColumns" :field="col.field" :header="col.header" :key="col.field + '_' + index"></Column>
|
||||
</DataTable>
|
||||
</div>
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<Column field="vin" header="Vin" />
|
||||
<Column v-for="col of selectedColumns" :field="col.field" :header="col.header" :key="col.field"></Column>
|
||||
<Column v-for="(col, index) of selectedColumns" :field="col.field" :header="col.header" :key="col.field + '_' + index"></Column>
|
||||
</DataTable>
|
||||
</template>
|
||||
</CodeHighlight>
|
||||
|
|
Loading…
Reference in New Issue