2024-01-11 13:46:09 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2024-01-18 12:55:13 +00:00
|
|
|
<p>MeterGroup requires <i>value</i> as the data to display.</p>
|
2024-01-11 13:46:09 +00:00
|
|
|
</DocSectionText>
|
|
|
|
<div class="card">
|
|
|
|
<MeterGroup :value="value" />
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
2024-01-12 09:53:18 +00:00
|
|
|
value: [{ label: 'Space used', value: 15 }],
|
2024-01-11 13:46:09 +00:00
|
|
|
code: {
|
|
|
|
basic: `
|
|
|
|
<MeterGroup :value="value" />
|
|
|
|
`,
|
|
|
|
options: `
|
|
|
|
<template>
|
|
|
|
<div class="card">
|
|
|
|
<MeterGroup :value="value" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
2024-01-12 09:53:18 +00:00
|
|
|
value: [{ label: 'Space used', value: 15 }],
|
2024-01-11 13:46:09 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
<\/script>
|
|
|
|
`,
|
|
|
|
composition: `
|
|
|
|
<template>
|
|
|
|
<div class="card">
|
|
|
|
<MeterGroup :value="value" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
2024-01-12 09:53:18 +00:00
|
|
|
const value = ref([{ label: 'Space used', value: 15 }]);
|
2024-01-11 13:46:09 +00:00
|
|
|
<\/script>
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|