diff --git a/src/components/ConfigEditor.vue b/src/components/ConfigEditor.vue new file mode 100644 index 0000000..f4e6b27 --- /dev/null +++ b/src/components/ConfigEditor.vue @@ -0,0 +1,82 @@ + + + + + diff --git a/src/template.js b/src/template.js new file mode 100644 index 0000000..98df67e --- /dev/null +++ b/src/template.js @@ -0,0 +1,34 @@ +export default { + type: 'array', + child: { + type: 'object', + properties: [ + { + type: 'string', + name: 'type' + }, + { + name: 'columns', + type: 'array', + child: { type: 'string' } + }, + { + name: 'x', + type: 'string' + }, + { + name: 'y', + type: 'array', + child: { + type: 'object', + properties: [ + { type: 'string', name: 'label' }, + { type: 'string', name: 'field' }, + { type: 'string', name: 'color' }, + { type: 'string', name: 'fill' } + ] + } + } + ] + } +}; diff --git a/src/views/AppView.vue b/src/views/AppView.vue index 0fb3874..491e962 100644 --- a/src/views/AppView.vue +++ b/src/views/AppView.vue @@ -2,9 +2,12 @@
-