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
+1 -8
View File
@@ -1,13 +1,6 @@
<script>
import { Line, mixins } from 'vue-chartjs';
function resolve_data (set, index) {
const keys = typeof index === 'string' ? index.split ('/') : index;
const data = set[keys[0]];
if (keys.length === 1)
return data;
return resolve_data (data, keys.slice (1));
}
import { resolve_data } from '../helper';
export default {
extends: Line,