-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
see #26 * dark theme * new internal layout
- Loading branch information
Showing
5 changed files
with
141 additions
and
55 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 |
---|---|---|
@@ -1,34 +1,52 @@ | ||
<template> | ||
<VbDemo> | ||
<VbCard> | ||
Default container | ||
Default | ||
</VbCard> | ||
<VbCard no-padding> | ||
No padding | ||
</VbCard> | ||
<VbCard dashed> | ||
Dashed | ||
</VbCard> | ||
<VbCard title="With title"> | ||
With title | ||
<VbCard title="Title"> | ||
Content | ||
</VbCard> | ||
<VbCard title="With title" refresh> | ||
<VbCard no-padding title="No padding + title"> | ||
Content | ||
</VbCard> | ||
<VbCard title="Title" refresh> | ||
|
||
With title and refresh | ||
</VbCard> | ||
<VbCard refresh height="100px" width="300px"> | ||
<div style="background-color: #1fc8db; height: 100%; width: 150px">With refresh</div> | ||
<VbCard refresh> | ||
<div style="background-color: #1fc8db; height: 100%; width: 150px">Refresh (<RefreshCounter/>)</div> | ||
</VbCard> | ||
<VbCard height="100px" width="150px"> | ||
150x100 | ||
</VbCard> | ||
<VbCard title="Dark" dark refresh dashed> | ||
<span style="color: white">Content</span> | ||
</VbCard> | ||
<VbCard title="Color" refresh color="orange"> | ||
Content | ||
</VbCard> | ||
<VbCard title="Dark + color" dark refresh color="orange"> | ||
<span style="color: white">Content</span> | ||
</VbCard> | ||
</VbDemo> | ||
</template> | ||
|
||
<script> | ||
import VbDemo from './VbDemo' | ||
import VbCard from './VbCard' | ||
import RefreshCounter from './__demo__/RefreshCounter' | ||
export default { | ||
components: { | ||
RefreshCounter, | ||
VbCard, | ||
VbDemo, | ||
} | ||
}, | ||
} | ||
</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
21 changes: 21 additions & 0 deletions
21
packages/vue-book/src/components/Exposed/__demo__/RefreshCounter.vue
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,21 @@ | ||
<template> | ||
<span class="RefreshCounter"> | ||
{{refreshCounter}} | ||
</span> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Vue } from 'vue-property-decorator' | ||
let refreshCounter = 0 | ||
@Component({}) | ||
export default class RefreshCounter extends Vue { | ||
created() { | ||
console.log('created') | ||
} | ||
get refreshCounter () { | ||
return ++refreshCounter | ||
} | ||
} | ||
</script> |