2024-01-11 13:46:09 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>Boundaries are configured with the <i>min</i> and <i>max</i> values whose defaults are 0 and 100 respectively.</p>
|
|
|
|
</DocSectionText>
|
|
|
|
<div class="card">
|
2024-02-04 16:11:37 +00:00
|
|
|
<MeterGroup :value="value" :max="200" />
|
2024-01-11 13:46:09 +00:00
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
2024-01-12 12:26:52 +00:00
|
|
|
value: [
|
2024-02-04 16:11:37 +00:00
|
|
|
{ label: 'Apps', color: '#34d399', value: 16 },
|
|
|
|
{ label: 'Messages', color: '#fbbf24', value: 8 },
|
|
|
|
{ label: 'Media', color: '#60a5fa', value: 24 },
|
|
|
|
{ label: 'System', color: '#c084fc', value: 10 }
|
2024-01-12 12:26:52 +00:00
|
|
|
],
|
2024-01-11 13:46:09 +00:00
|
|
|
code: {
|
|
|
|
basic: `
|
2024-02-04 16:11:37 +00:00
|
|
|
<MeterGroup :value="value" :max="200" />
|
2024-01-11 13:46:09 +00:00
|
|
|
`,
|
|
|
|
options: `
|
|
|
|
<template>
|
|
|
|
<div class="card">
|
2024-02-04 16:11:37 +00:00
|
|
|
<MeterGroup :value="value" :max="200" />
|
2024-01-11 13:46:09 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
2024-01-12 12:26:52 +00:00
|
|
|
value: [
|
2024-02-04 16:11:37 +00:00
|
|
|
{ label: 'Apps', color: '#34d399', value: 16 },
|
|
|
|
{ label: 'Messages', color: '#fbbf24', value: 8 },
|
|
|
|
{ label: 'Media', color: '#60a5fa', value: 24 },
|
|
|
|
{ label: 'System', color: '#c084fc', value: 10 }
|
2024-01-12 12:26:52 +00:00
|
|
|
],
|
2024-01-11 13:46:09 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
<\/script>
|
|
|
|
`,
|
|
|
|
composition: `
|
|
|
|
<template>
|
|
|
|
<div class="card">
|
2024-02-04 16:11:37 +00:00
|
|
|
<MeterGroup :value="value" :max="200" />
|
2024-01-11 13:46:09 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
2024-01-12 12:26:52 +00:00
|
|
|
const value = ref([
|
2024-02-04 16:11:37 +00:00
|
|
|
{ label: 'Apps', color: '#34d399', value: 16 },
|
|
|
|
{ label: 'Messages', color: '#fbbf24', value: 8 },
|
|
|
|
{ label: 'Media', color: '#60a5fa', value: 24 },
|
|
|
|
{ label: 'System', color: '#c084fc', value: 10 }
|
2024-01-12 12:26:52 +00:00
|
|
|
]);
|
2024-01-11 13:46:09 +00:00
|
|
|
<\/script>
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|