-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
12 changed files
with
7,236 additions
and
6,826 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -117,7 +117,7 @@ | |
} | ||
.container { | ||
padding: 16px; | ||
height: 90vh; | ||
height: 88vh; | ||
} | ||
.mb-12 { | ||
margin-bottom: 12px; | ||
|
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,68 @@ | ||
<template> | ||
<q-card flat bordered v-if="$props.loading" class="col-grow q-ma-sm"> | ||
<q-item> | ||
<q-item-section avatar> | ||
<q-avatar> | ||
<q-skeleton type="QAvatar" size="38px" /> | ||
</q-avatar> | ||
</q-item-section> | ||
|
||
<q-item-section> | ||
<q-item-label class="card-value"> | ||
<q-skeleton type="text" /> | ||
</q-item-label> | ||
<q-item-label class="card-caption"> | ||
<q-skeleton type="text" /> | ||
</q-item-label> | ||
</q-item-section> | ||
</q-item> | ||
</q-card> | ||
<q-card | ||
v-if="!$props.loading" | ||
flat | ||
bordered | ||
:class="`${$props.class} col-grow q-ma-sm`" | ||
style="height: 73px" | ||
> | ||
<q-item> | ||
<q-item-section avatar> | ||
<q-avatar> | ||
<q-icon :name="$props.icon" size="42px" /> | ||
</q-avatar> | ||
</q-item-section> | ||
|
||
<q-item-section> | ||
<q-item-label class="card-value">{{ $props.value }}</q-item-label> | ||
<q-item-label class="card-caption">{{ $props.caption }}</q-item-label> | ||
</q-item-section> | ||
</q-item> | ||
</q-card> | ||
</template> | ||
|
||
<style lang="css" scoped> | ||
.card-value { | ||
font-size: 28px; | ||
} | ||
</style> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
export default defineComponent({ | ||
name: 'DCardComponent', | ||
props: { | ||
icon: String, | ||
class: String, | ||
value: String, | ||
caption: String, | ||
loading: { | ||
type: Boolean, | ||
default: true, | ||
}, | ||
}, | ||
setup() { | ||
return {}; | ||
}, | ||
}); | ||
</script> |
Oops, something went wrong.