-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed82bfd
commit 9a29cbc
Showing
87 changed files
with
2,005 additions
and
1,790 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<template> | ||
<DocSectionText v-bind="$attrs"> | ||
<p>Icons can be displayed next to the labels instead of the default marker.</p> | ||
</DocSectionText> | ||
<div class="card"> | ||
<MeterGroup :value="value" /> | ||
</div> | ||
<DocSectionCode :code="code" /> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
value: [ | ||
{ label: 'Apps', color: '#34d399', value: 16, icon: 'pi pi-table' }, | ||
{ label: 'Messages', color: '#fbbf24', value: 8, icon: 'pi pi-inbox' }, | ||
{ label: 'Media', color: '#60a5fa', value: 24, icon: 'pi pi-image' }, | ||
{ label: 'System', color: '#c084fc', value: 10, icon: 'pi pi-cog' } | ||
], | ||
code: { | ||
basic: ` | ||
<MeterGroup :value="value" /> | ||
`, | ||
options: ` | ||
<template> | ||
<div class="card"> | ||
<MeterGroup :value="value" /> | ||
</div> | ||
</template> | ||
<script> | ||
export default { | ||
data() { | ||
return { | ||
value: [ | ||
{ label: 'Apps', color: '#34d399', value: 16, icon: 'pi pi-table' }, | ||
{ label: 'Messages', color: '#fbbf24', value: 8, icon: 'pi pi-inbox' }, | ||
{ label: 'Media', color: '#60a5fa', value: 24, icon: 'pi pi-image' }, | ||
{ label: 'System', color: '#c084fc', value: 10, icon: 'pi pi-cog' } | ||
] | ||
}; | ||
} | ||
}; | ||
<\/script> | ||
`, | ||
composition: ` | ||
<template> | ||
<div class="card"> | ||
<MeterGroup :value="value" /> | ||
</div> | ||
</template> | ||
<script setup> | ||
import { ref } from "vue"; | ||
const value = ref([ | ||
{ label: 'Apps', color: '#34d399', value: 16, icon: 'pi pi-table' }, | ||
{ label: 'Messages', color: '#fbbf24', value: 8, icon: 'pi pi-inbox' }, | ||
{ label: 'Media', color: '#60a5fa', value: 24, icon: 'pi pi-image' }, | ||
{ label: 'System', color: '#c084fc', value: 10, icon: 'pi pi-cog' } | ||
]); | ||
<\/script> | ||
` | ||
} | ||
}; | ||
} | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.