MeterGroup demo updates

This commit is contained in:
tugcekucukoglu 2024-01-12 12:53:18 +03:00
parent 8274c1c936
commit 2f7ef11751
6 changed files with 99 additions and 36 deletions

View file

@ -12,11 +12,7 @@
export default {
data() {
return {
value: [
{ color: '#239EF0', label: 'Mortgage', value: 25 },
{ color: '#FAA419', label: 'Loan', value: 15 },
{ color: '#EE5879', label: 'Credit Card', value: 20 }
],
value: [{ label: 'Space used', value: 15 }],
code: {
basic: `
<MeterGroup :value="value" />
@ -32,11 +28,7 @@ export default {
export default {
data() {
return {
value: [
{ color: '#239EF0', label: 'Mortgage', value: 25 },
{ color: '#FAA419', label: 'Loan', value: 15 },
{ color: '#EE5879', label: 'Credit Card', value: 20 }
]
value: [{ label: 'Space used', value: 15 }],
};
}
};
@ -52,11 +44,7 @@ export default {
<script setup>
import { ref } from "vue";
const value = ref([
{ color: '#239EF0', label: 'Mortgage', value: 25 },
{ color: '#FAA419', label: 'Loan', value: 15 },
{ color: '#EE5879', label: 'Credit Card', value: 20 }
]);
const value = ref([{ label: 'Space used', value: 15 }]);
<\/script>
`
}