set dashdot data to the new type

This commit is contained in:
ajnart
2023-01-11 08:44:48 +09:00
parent 833d12eff4
commit 1d0f89cd9c

View File

@@ -28,7 +28,14 @@ const definition = defineWidget({
graphs: {
type: 'multi-select',
defaultValue: ['cpu', 'memory'],
data: ['cpu', 'memory', 'storage', 'network', 'gpu'],
data: [
// ['cpu', 'memory', 'storage', 'network', 'gpu'], into { label, value }
{ label: 'CPU', value: 'cpu' },
{ label: 'Memory', value: 'memory' },
{ label: 'Storage', value: 'storage' },
{ label: 'Network', value: 'network' },
{ label: 'GPU', value: 'gpu' },
],
},
url: {
type: 'text',