dynamic config

This commit is contained in:
2020-07-31 20:46:10 +02:00
parent 9ec6440dc7
commit 63978a522c
8 changed files with 125 additions and 39 deletions
+5 -2
View File
@@ -11,7 +11,7 @@
<td
v-for="(col,c_key) of columns"
:key="c_key"
v-text="item[col]"
v-text="resolve_data(item,col)"
/>
</tr>
</table>
@@ -19,6 +19,8 @@
</template>
<script>
import { resolve_data } from '../helper';
export default {
props: {
items: {
@@ -29,7 +31,8 @@ export default {
type: Array,
required: true
}
}
},
methods: { resolve_data }
};
</script>