fix
This commit is contained in:
parent
207c7c3ba9
commit
a8223d110b
@ -8,7 +8,12 @@
|
||||
:key="key"
|
||||
>{{value}}</th>
|
||||
</tr>
|
||||
<Item v-for="(row,rowKey) in json.data" :key=rowKey :data=row :hidden=json.hidden></Item>
|
||||
<tr v-for="(row,rowKey) in json.data" :key=rowKey>
|
||||
<td
|
||||
v-for="(value,key) in row.filter((val,ind)=>!json.hidden.includes(ind))"
|
||||
:key="key"
|
||||
>{{value}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
|
@ -1,21 +0,0 @@
|
||||
<template>
|
||||
<tr id="item">
|
||||
<td
|
||||
v-for="(value,key) in data.filter((val,ind)=>!hidden.includes(ind))"
|
||||
:key="key"
|
||||
>{{value}}</td>
|
||||
</tr>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "Item",
|
||||
properties: {
|
||||
data: Object,
|
||||
hidden: Array
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
Loading…
x
Reference in New Issue
Block a user