MeterGroup demo updates
parent
8274c1c936
commit
2f7ef11751
|
@ -12,11 +12,7 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
value: [
|
value: [{ label: 'Space used', value: 15 }],
|
||||||
{ color: '#239EF0', label: 'Mortgage', value: 25 },
|
|
||||||
{ color: '#FAA419', label: 'Loan', value: 15 },
|
|
||||||
{ color: '#EE5879', label: 'Credit Card', value: 20 }
|
|
||||||
],
|
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<MeterGroup :value="value" />
|
<MeterGroup :value="value" />
|
||||||
|
@ -32,11 +28,7 @@ export default {
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
value: [
|
value: [{ label: 'Space used', value: 15 }],
|
||||||
{ color: '#239EF0', label: 'Mortgage', value: 25 },
|
|
||||||
{ color: '#FAA419', label: 'Loan', value: 15 },
|
|
||||||
{ color: '#EE5879', label: 'Credit Card', value: 20 }
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -52,11 +44,7 @@ export default {
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
|
||||||
const value = ref([
|
const value = ref([{ label: 'Space used', value: 15 }]);
|
||||||
{ color: '#239EF0', label: 'Mortgage', value: 25 },
|
|
||||||
{ color: '#FAA419', label: 'Loan', value: 15 },
|
|
||||||
{ color: '#EE5879', label: 'Credit Card', value: 20 }
|
|
||||||
]);
|
|
||||||
<\/script>
|
<\/script>
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>
|
<p>
|
||||||
Default layout of MeterGroup is <i>horizontal</i>, and also <i>orientation</i> property can be set as <i>vertical</i>.In addition, position of the label can be changed using <i>labelPosition</i> property that the default value is
|
Default layout of MeterGroup is <i>horizontal</i>, and also <i>labelOrientation</i> property can be set as <i>vertical</i>.In addition, position of the label can be changed using <i>labelPosition</i> property that the default value is
|
||||||
<i>end</i> and also <i>start</i> option is available.
|
<i>end</i> and also <i>start</i> option is available.
|
||||||
</p>
|
</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<MeterGroup :value="value" labelOrientation="vertical" labelPosition="start" />
|
<MeterGroup :value="value" labelPosition="start" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -16,18 +16,19 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
value: [
|
value: [
|
||||||
{ color: '#239EF0', label: 'Mortgage', value: 25 },
|
{ label: 'Apps', value: 16, color: '#EB9A9C', icon: 'pi pi-cog' },
|
||||||
{ color: '#FAA419', label: 'Loan', value: 15 },
|
{ label: 'Messages', value: 8, color: '#FFCF91', icon: 'pi pi-envelope' },
|
||||||
{ color: '#EE5879', label: 'Credit Card', value: 20 }
|
{ label: 'Media', value: 24, color: '#93DEAC', icon: 'pi pi-image' },
|
||||||
|
{ label: 'System Data', value: 20, color: '#91cff8', icon: 'pi pi-database' }
|
||||||
],
|
],
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<MeterGroup :value="value" labelOrientation="vertical" labelPosition="start" />
|
<MeterGroup :value="value" labelPosition="start" />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<MeterGroup :value="value" labelOrientation="vertical" labelPosition="start" />
|
<MeterGroup :value="value" labelPosition="start" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -36,9 +37,10 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
value: [
|
value: [
|
||||||
{ color: '#239EF0', label: 'Mortgage', value: 25 },
|
{ label: 'Apps', value: 16, color: '#EB9A9C', icon: 'pi pi-cog' },
|
||||||
{ color: '#FAA419', label: 'Loan', value: 15 },
|
{ label: 'Messages', value: 8, color: '#FFCF91', icon: 'pi pi-envelope' },
|
||||||
{ color: '#EE5879', label: 'Credit Card', value: 20 }
|
{ label: 'Media', value: 24, color: '#93DEAC', icon: 'pi pi-image' },
|
||||||
|
{ label: 'System Data', value: 20, color: '#91cff8', icon: 'pi pi-database' }
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -48,7 +50,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<MeterGroup :value="value" labelOrientation="vertical" labelPosition="start" />
|
<MeterGroup :value="value" labelPosition="start" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -56,9 +58,10 @@ export default {
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
|
||||||
const value = ref([
|
const value = ref([
|
||||||
{ color: '#239EF0', label: 'Mortgage', value: 25 },
|
{ label: 'Apps', value: 16, color: '#EB9A9C', icon: 'pi pi-cog' },
|
||||||
{ color: '#FAA419', label: 'Loan', value: 15 },
|
{ label: 'Messages', value: 8, color: '#FFCF91', icon: 'pi pi-envelope' },
|
||||||
{ color: '#EE5879', label: 'Credit Card', value: 20 }
|
{ label: 'Media', value: 24, color: '#93DEAC', icon: 'pi pi-image' },
|
||||||
|
{ label: 'System Data', value: 20, color: '#91cff8', icon: 'pi pi-database' }
|
||||||
]);
|
]);
|
||||||
<\/script>
|
<\/script>
|
||||||
`
|
`
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
value: [{ label: 'Space used', value: 15 }],
|
value: [{ label: 'Space used', value: 15, color: '#FDBB74' }],
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<MeterGroup :value="value" :min="-50" :max="50" />
|
<MeterGroup :value="value" :min="-50" :max="50" />
|
||||||
|
|
|
@ -0,0 +1,66 @@
|
||||||
|
<template>
|
||||||
|
<DocSectionText v-bind="$attrs">
|
||||||
|
<p>MeterGroup is used with the <i>value</i> property.</p>
|
||||||
|
</DocSectionText>
|
||||||
|
<div class="card">
|
||||||
|
<MeterGroup :value="value" />
|
||||||
|
</div>
|
||||||
|
<DocSectionCode :code="code" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
value: [
|
||||||
|
{ color: '#239EF0', label: 'Mortgage', value: 25 },
|
||||||
|
{ color: '#FAA419', label: 'Loan', value: 15 },
|
||||||
|
{ color: '#EE5879', label: 'Credit Card', value: 20 }
|
||||||
|
],
|
||||||
|
code: {
|
||||||
|
basic: `
|
||||||
|
<MeterGroup :value="value" />
|
||||||
|
`,
|
||||||
|
options: `
|
||||||
|
<template>
|
||||||
|
<div class="card">
|
||||||
|
<MeterGroup :value="value" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
value: [
|
||||||
|
{ color: '#239EF0', label: 'Mortgage', value: 25 },
|
||||||
|
{ color: '#FAA419', label: 'Loan', value: 15 },
|
||||||
|
{ color: '#EE5879', label: 'Credit Card', value: 20 }
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
<\/script>
|
||||||
|
`,
|
||||||
|
composition: `
|
||||||
|
<template>
|
||||||
|
<div class="card">
|
||||||
|
<MeterGroup :value="value" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<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 }
|
||||||
|
]);
|
||||||
|
<\/script>
|
||||||
|
`
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Layout of the MeterGroup is configured with the <i>orientation</i> property that accepts <i>horizontal</i> and <i>vertical</i> as options.</p>
|
<p>Layout of the MeterGroup is configured with the <i>orientation</i> property that accepts <i>horizontal</i> and <i>vertical</i> as options.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex" style="height: 350px">
|
<div class="card flex justify-content-center" style="height: 350px">
|
||||||
<MeterGroup :value="value" orientation="vertical" />
|
<MeterGroup :value="value" orientation="vertical" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -23,7 +23,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex" style="height: 350px">
|
<div class="card flex justify-content-center" style="height: 350px">
|
||||||
<MeterGroup :value="value" orientation="vertical" />
|
<MeterGroup :value="value" orientation="vertical" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -44,7 +44,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex" style="height: 350px">
|
<div class="card flex justify-content-center" style="height: 350px">
|
||||||
<MeterGroup :value="value" orientation="vertical" />
|
<MeterGroup :value="value" orientation="vertical" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<script>
|
<script>
|
||||||
import AccessibilityDoc from '@/doc/metergroup/AccessibilityDoc.vue';
|
import AccessibilityDoc from '@/doc/metergroup/AccessibilityDoc.vue';
|
||||||
import BasicDoc from '@/doc/metergroup/BasicDoc.vue';
|
import BasicDoc from '@/doc/metergroup/BasicDoc.vue';
|
||||||
|
import MultipleDoc from '@/doc/metergroup/MultipleDoc.vue';
|
||||||
import ImportDoc from '@/doc/metergroup/ImportDoc.vue';
|
import ImportDoc from '@/doc/metergroup/ImportDoc.vue';
|
||||||
import VerticalDoc from '@/doc/metergroup/VerticalDoc.vue';
|
import VerticalDoc from '@/doc/metergroup/VerticalDoc.vue';
|
||||||
import LabelDoc from '@/doc/metergroup/LabelDoc.vue';
|
import LabelDoc from '@/doc/metergroup/LabelDoc.vue';
|
||||||
|
@ -28,15 +29,20 @@ export default {
|
||||||
component: BasicDoc
|
component: BasicDoc
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'vertical',
|
id: 'multiple',
|
||||||
label: 'Vertical',
|
label: 'Multiple',
|
||||||
component: VerticalDoc
|
component: MultipleDoc
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'label',
|
id: 'label',
|
||||||
label: 'Label',
|
label: 'Label',
|
||||||
component: LabelDoc
|
component: LabelDoc
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'vertical',
|
||||||
|
label: 'Vertical',
|
||||||
|
component: VerticalDoc
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'minmax',
|
id: 'minmax',
|
||||||
label: 'Min-Max',
|
label: 'Min-Max',
|
||||||
|
|
Loading…
Reference in New Issue