update: vuejs-templates/webpack to v1.3.1

This commit is contained in:
xidedix
2018-04-05 18:59:29 +02:00
parent 6de23dce60
commit 123737e20c
78 changed files with 3075 additions and 2025 deletions
-1
View File
@@ -203,7 +203,6 @@
</div>
</div>
</div>
</b-col>
</b-row>
<b-row>
+81 -57
View File
@@ -113,7 +113,7 @@
<div class="text-muted text-uppercase font-weight-bold font-xs">Income</div>
</b-card-body>
<div slot="footer">
<a class="font-weight-bold font-xs btn-block text-muted" href="#">View More <i class="fa fa-angle-right float-right font-lg"></i></a>
<b-link class="font-weight-bold font-xs btn-block text-muted" href="#">View More <i class="fa fa-angle-right float-right font-lg"></i></b-link>
</div>
</b-card>
</b-col>
@@ -125,7 +125,7 @@
<div class="text-muted text-uppercase font-weight-bold font-xs">Income</div>
</b-card-body>
<div slot="footer">
<a class="font-weight-bold font-xs btn-block text-muted" href="#">View More <i class="fa fa-angle-right float-right font-lg"></i></a>
<b-link class="font-weight-bold font-xs btn-block text-muted" href="#">View More <i class="fa fa-angle-right float-right font-lg"></i></b-link>
</div>
</b-card>
</b-col>
@@ -137,7 +137,7 @@
<div class="text-muted text-uppercase font-weight-bold font-xs">Income</div>
</b-card-body>
<div slot="footer">
<a class="font-weight-bold font-xs btn-block text-muted" href="#">View More <i class="fa fa-angle-right float-right font-lg"></i></a>
<b-link class="font-weight-bold font-xs btn-block text-muted" href="#">View More <i class="fa fa-angle-right float-right font-lg"></i></b-link>
</div>
</b-card>
</b-col>
@@ -149,7 +149,7 @@
<div class="text-muted text-uppercase font-weight-bold font-xs">Income</div>
</b-card-body>
<div slot="footer">
<a class="font-weight-bold font-xs btn-block text-muted" href="#">View More <i class="fa fa-angle-right float-right font-lg"></i></a>
<b-link class="font-weight-bold font-xs btn-block text-muted" href="#">View More <i class="fa fa-angle-right float-right font-lg"></i></b-link>
</div>
</b-card>
</b-col>
@@ -230,64 +230,84 @@
</b-row><!--/.row-->
<b-row>
<b-col md="3" sm="6">
<div class="social-box facebook">
<i class="fa fa-facebook"></i>
<ul>
<li>
<strong>89k</strong>
<span>friends</span>
</li>
<li>
<strong>459</strong>
<span>feeds</span>
</li>
</ul>
</div><!--/social-box-->
<div class="brand-card">
<div class="brand-card-header bg-facebook">
<i class="fa fa-facebook"></i>
<div class="chart-wrapper">
<social-box-chart-example :data="[65, 59, 84, 84, 51, 55, 40]" height="100"/>
</div>
</div>
<div class="brand-card-body">
<div>
<div class="text-value">89k</div>
<div class="text-uppercase text-muted small">friends</div>
</div>
<div>
<div class="text-value">459</div>
<div class="text-uppercase text-muted small">feeds</div>
</div>
</div>
</div>
</b-col>
<b-col md="3" sm="6">
<div class="social-box twitter">
<i class="fa fa-twitter"></i>
<ul>
<li>
<strong>973k</strong>
<span>followers</span>
</li>
<li>
<strong>1.792</strong>
<span>tweets</span>
</li>
</ul>
</div><!--/social-box-->
<div class="brand-card">
<div class="brand-card-header bg-twitter">
<i class="fa fa-twitter"></i>
<div class="chart-wrapper">
<social-box-chart-example :data="[1, 13, 9, 17, 34, 41, 38]" height="100"/>
</div>
</div>
<div class="brand-card-body">
<div>
<div class="text-value">973k</div>
<div class="text-uppercase text-muted small">followers</div>
</div>
<div>
<div class="text-value">1.792</div>
<div class="text-uppercase text-muted small">tweets</div>
</div>
</div>
</div>
</b-col>
<b-col md="3" sm="6">
<div class="social-box linkedin">
<i class="fa fa-linkedin"></i>
<ul>
<li>
<strong>500+</strong>
<span>contacts</span>
</li>
<li>
<strong>292</strong>
<span>feeds</span>
</li>
</ul>
</div><!--/social-box-->
<div class="brand-card">
<div class="brand-card-header bg-linkedin">
<i class="fa fa-linkedin"></i>
<div class="chart-wrapper">
<social-box-chart-example :data="[78, 81, 80, 45, 34, 12, 40]" height="100"/>
</div>
</div>
<div class="brand-card-body">
<div>
<div class="text-value">500+</div>
<div class="text-uppercase text-muted small">contacts</div>
</div>
<div>
<div class="text-value">292</div>
<div class="text-uppercase text-muted small">feeds</div>
</div>
</div>
</div>
</b-col>
<b-col md="3" sm="6">
<div class="social-box google-plus">
<i class="fa fa-google-plus"></i>
<ul>
<li>
<strong>894</strong>
<span>followers</span>
</li>
<li>
<strong>92</strong>
<span>circles</span>
</li>
</ul>
</div><!--/social-box-->
<div class="brand-card">
<div class="brand-card-header bg-google-plus">
<i class="fa fa-google-plus"></i>
<div class="chart-wrapper">
<social-box-chart-example :data="[35, 23, 56, 22, 97, 23, 64]" height="100"/>
</div>
</div>
<div class="brand-card-body">
<div>
<div class="text-value">894</div>
<div class="text-uppercase text-muted small">followers</div>
</div>
<div>
<div class="text-value">92</div>
<div class="text-uppercase text-muted small">circles</div>
</div>
</div>
</div>
</b-col>
</b-row><!--/.row-->
<b-card-group class="mb-4">
@@ -390,7 +410,7 @@
</div>
<div class="h4 mb-0">972</div>
<small class="text-muted text-uppercase font-weight-bold">Comments</small>
<b-progress height={} class="progress-xs mt-3 mb-0"variant="info" :value="25"/>
<b-progress height={} class="progress-xs mt-3 mb-0" variant="info" :value="25"/>
</b-card>
</b-col>
</b-row><!--/.row-->
@@ -460,8 +480,12 @@
</template>
<script>
import SocialBoxChartExample from './dashboard/SocialBoxChartExample'
export default {
name: 'widgets',
components: {
SocialBoxChartExample
},
data () {
return {
msg: 'Widgets'
+15 -16
View File
@@ -23,22 +23,21 @@
</template>
<script>
export default {
name: 'breadcrumbs',
data () {
return {
items: [{
text: 'Admin',
href: '#'
}, {
text: 'Manage',
href: '#'
}, {
text: 'Library',
active: true
}]
}
export default {
name: 'breadcrumbs',
data () {
return {
items: [{
text: 'Admin',
href: '#'
}, {
text: 'Manage',
href: '#'
}, {
text: 'Library',
active: true
}]
}
}
}
</script>
+14 -15
View File
@@ -75,22 +75,21 @@
</template>
<script>
export default {
name: 'carousels',
data () {
return {
slide: 0,
sliding: null
}
export default {
name: 'carousels',
data () {
return {
slide: 0,
sliding: null
}
},
methods: {
onSlideStart (slide) {
this.sliding = true
},
methods: {
onSlideStart (slide) {
this.sliding = true
},
onSlideEnd (slide) {
this.sliding = false
}
onSlideEnd (slide) {
this.sliding = false
}
}
}
</script>
+7 -7
View File
@@ -176,12 +176,12 @@
</template>
<script>
export default {
name: 'collapses',
data () {
return {
showCollapse: true,
text: `
export default {
name: 'collapses',
data () {
return {
showCollapse: true,
text: `
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry
richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor
brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon
@@ -191,7 +191,7 @@
vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic
synth nesciunt you probably haven't heard of them accusamus labore VHS.
`
}
}
}
}
</script>
+3 -3
View File
@@ -74,9 +74,9 @@
</template>
<script>
export default {
name: 'jumbotrons'
}
export default {
name: 'jumbotrons'
}
</script>
<style scoped>
+3 -3
View File
@@ -245,9 +245,9 @@
</template>
<script>
export default {
name: 'list-groups'
}
export default {
name: 'list-groups'
}
</script>
<style scoped>
+3 -3
View File
@@ -157,9 +157,9 @@
</template>
<script>
export default {
name: 'navbars'
}
export default {
name: 'navbars'
}
</script>
<style scoped>
+3 -3
View File
@@ -120,9 +120,9 @@
</template>
<script>
export default {
name: 'navs'
}
export default {
name: 'navs'
}
</script>
<style scoped>
+11 -11
View File
@@ -82,19 +82,19 @@
</template>
<script>
export default {
name: 'paginations',
data () {
return {
currentPage: 3
}
},
methods: {
linkGen (pageNum) {
return '#page/' + pageNum + '/foobar'
}
export default {
name: 'paginations',
data () {
return {
currentPage: 3
}
},
methods: {
linkGen (pageNum) {
return '#page/' + pageNum + '/foobar'
}
}
}
</script>
<style scoped>
+25 -26
View File
@@ -178,33 +178,32 @@
</template>
<script>
export default {
name: 'popovers',
data () {
return {
placements: [
'topright', 'top', 'topleft',
'bottomright', 'bottom', 'bottomleft',
'righttop', 'right', 'lefttop',
'rightbottom', 'left', 'leftbottom'
],
show: false
}
export default {
name: 'popovers',
data () {
return {
placements: [
'topright', 'top', 'topleft',
'bottomright', 'bottom', 'bottomleft',
'righttop', 'right', 'lefttop',
'rightbottom', 'left', 'leftbottom'
],
show: false
}
},
methods: {
onOpen () {
this.$refs.popover1.$emit('open')
},
methods: {
onOpen () {
this.$refs.popover1.$emit('open')
},
onClose () {
this.$refs.popover1.$emit('close')
},
onEnable () {
this.$refs.popover2.$emit('enable')
},
onDisable () {
this.$refs.popover2.$emit('disable')
}
onClose () {
this.$refs.popover1.$emit('close')
},
onEnable () {
this.$refs.popover2.$emit('enable')
},
onDisable () {
this.$refs.popover2.$emit('disable')
}
}
}
</script>
+45 -45
View File
@@ -78,7 +78,7 @@
<i class="fa fa-align-justify"></i> <strong>Progress</strong> <small>variants</small>
</div>
<div>
<div v-for="bar in bars" class="row mb-1">
<div :key="index" v-for="(bar, index) in bars" class="row mb-1">
<div class="col-sm-2">{{ bar.variant }}:</div>
<div class="col-sm-10 pt-1">
<b-progress :value="bar.value"
@@ -133,12 +133,12 @@
<b-progress-bar variant="success" :value="values[1]"></b-progress-bar>
<b-progress-bar variant="info" :value="values[2]"></b-progress-bar>
</b-progress>
<b-progress show-progress :max="max3" class="mb-3"></b-progress-bar>
<b-progress show-progress :max="max3" class="mb-3">
<b-progress-bar variant="primary" :value="values[0]"></b-progress-bar>
<b-progress-bar variant="success" :value="values[1]"></b-progress-bar>
<b-progress-bar variant="info" :value="values[2]"></b-progress-bar>
</b-progress>
<b-progress show-value striped :max="max3" class="mb-3"></b-progress-bar>
<b-progress show-value striped :max="max3" class="mb-3">
<b-progress-bar variant="primary" :value="values[0]"></b-progress-bar>
<b-progress-bar variant="success" :value="values[1]"></b-progress-bar>
<b-progress-bar variant="info" :value="values[2]"></b-progress-bar>
@@ -155,50 +155,50 @@
</template>
<script>
export default {
name: 'progress-bars',
data () {
return {
counter: 45,
max: 100,
max2: 50,
value: 33.333333333,
value3: 75,
bars: [
{variant: 'success', value: 75},
{variant: 'info', value: 75},
{variant: 'warning', value: 75},
{variant: 'danger', value: 75},
{variant: 'primary', value: 75},
{variant: 'secondary', value: 75},
{variant: 'dark', value: 75}
],
timer: null,
striped: true,
animate: true,
max3: 100,
values: [ 15, 30, 20 ]
}
},
methods: {
clicked () {
this.counter = Math.random() * this.max
console.log('Change progress to ' +
Math.round(this.counter * 100) / 100)
}
},
mounted () {
this.timer = setInterval(() => {
this.bars.forEach(bar => {
bar.value = 25 + (Math.random() * 75)
})
}, 2000)
},
beforeDestroy () {
clearInterval(this.timer)
this.timer = null
export default {
name: 'progress-bars',
data () {
return {
counter: 45,
max: 100,
max2: 50,
value: 33.333333333,
value3: 75,
bars: [
{variant: 'success', value: 75},
{variant: 'info', value: 75},
{variant: 'warning', value: 75},
{variant: 'danger', value: 75},
{variant: 'primary', value: 75},
{variant: 'secondary', value: 75},
{variant: 'dark', value: 75}
],
timer: null,
striped: true,
animate: true,
max3: 100,
values: [ 15, 30, 20 ]
}
},
methods: {
clicked () {
this.counter = Math.random() * this.max
console.log('Change progress to ' +
Math.round(this.counter * 100) / 100)
}
},
mounted () {
this.timer = setInterval(() => {
this.bars.forEach(bar => {
bar.value = 25 + (Math.random() * 75)
})
}, 2000)
},
beforeDestroy () {
clearInterval(this.timer)
this.timer = null
}
}
</script>
<style scoped>
+25 -25
View File
@@ -308,32 +308,32 @@
</template>
<script>
import { Switch as cSwitch } from '../../components'
import { Switch as cSwitch } from '../../components'
export default {
name: 'switches',
components: {
cSwitch
},
computed: {
icon (icon) {
return icon
}
},
data: () => {
return {
fields: [
{key: 'size'},
{key: 'example'},
{key: 'css_class', label: 'CSS Class'}
],
items: [
{size: 'Large', example: {type: '3d', variant: 'primary', size: 'lg', checked: true}, css_class: 'Add following code <code>size="lg"</code>'},
{size: 'Normal', example: {type: '3d', variant: 'primary', size: '', checked: true}, css_class: '-'},
{size: 'Small', example: {type: '3d', variant: 'primary', size: 'sm', checked: true}, css_class: 'Add following code <code>size="sm"</code>'},
{size: 'Extra small', example: {type: '3d', variant: 'primary', size: 'xs', checked: true}, css_class: 'Add following code <code>size="xs"</code>'}
]
}
export default {
name: 'switches',
components: {
cSwitch
},
computed: {
icon (icon) {
return icon
}
},
data: () => {
return {
fields: [
{key: 'size'},
{key: 'example'},
{key: 'css_class', label: 'CSS Class'}
],
items: [
{size: 'Large', example: {type: '3d', variant: 'primary', size: 'lg', checked: true}, css_class: 'Add following code <code>size="lg"</code>'},
{size: 'Normal', example: {type: '3d', variant: 'primary', size: '', checked: true}, css_class: '-'},
{size: 'Small', example: {type: '3d', variant: 'primary', size: 'sm', checked: true}, css_class: 'Add following code <code>size="sm"</code>'},
{size: 'Extra small', example: {type: '3d', variant: 'primary', size: 'xs', checked: true}, css_class: 'Add following code <code>size="xs"</code>'}
]
}
}
}
</script>
+85 -85
View File
@@ -12,98 +12,98 @@
</template>
<script>
/**
/**
* Randomize array element order in-place.
* Using Durstenfeld shuffle algorithm.
*/
const shuffleArray = (array) => {
for (let i = array.length - 1; i > 0; i--) {
let j = Math.floor(Math.random() * (i + 1))
let temp = array[i]
array[i] = array[j]
array[j] = temp
}
return array
const shuffleArray = (array) => {
for (let i = array.length - 1; i > 0; i--) {
let j = Math.floor(Math.random() * (i + 1))
let temp = array[i]
array[i] = array[j]
array[j] = temp
}
return array
}
export default {
name: 'c-table',
props: {
caption: {
type: String,
default: 'Table'
},
hover: {
type: Boolean,
default: false
},
striped: {
type: Boolean,
default: false
},
bordered: {
type: Boolean,
default: false
},
small: {
type: Boolean,
default: false
},
fixed: {
type: Boolean,
default: false
}
export default {
name: 'c-table',
props: {
caption: {
type: String,
default: 'Table'
},
data: () => {
return {
items: shuffleArray([
{username: 'Samppa Nori', registered: '2012/01/01', role: 'Member', status: 'Active'},
{username: 'Estavan Lykos', registered: '2012/02/01', role: 'Staff', status: 'Banned'},
{username: 'Chetan Mohamed', registered: '2012/02/01', role: 'Admin', status: 'Inactive'},
{username: 'Derick Maximinus', registered: '2012/03/01', role: 'Member', status: 'Pending'},
{username: 'Friderik Dávid', registered: '2012/01/21', role: 'Staff', status: 'Active'},
{username: 'Yiorgos Avraamu', registered: '2012/01/01', role: 'Member', status: 'Active'},
{username: 'Avram Tarasios', registered: '2012/02/01', role: 'Staff', status: 'Banned'},
{username: 'Quintin Ed', registered: '2012/02/01', role: 'Admin', status: 'Inactive'},
{username: 'Enéas Kwadwo', registered: '2012/03/01', role: 'Member', status: 'Pending'},
{username: 'Agapetus Tadeáš', registered: '2012/01/21', role: 'Staff', status: 'Active'},
{username: 'Carwyn Fachtna', registered: '2012/01/01', role: 'Member', status: 'Active'},
{username: 'Nehemiah Tatius', registered: '2012/02/01', role: 'Staff', status: 'Banned'},
{username: 'Ebbe Gemariah', registered: '2012/02/01', role: 'Admin', status: 'Inactive'},
{username: 'Eustorgios Amulius', registered: '2012/03/01', role: 'Member', status: 'Pending'},
{username: 'Leopold Gáspár', registered: '2012/01/21', role: 'Staff', status: 'Active'},
{username: 'Pompeius René', registered: '2012/01/01', role: 'Member', status: 'Active'},
{username: 'Paĉjo Jadon', registered: '2012/02/01', role: 'Staff', status: 'Banned'},
{username: 'Micheal Mercurius', registered: '2012/02/01', role: 'Admin', status: 'Inactive'},
{username: 'Ganesha Dubhghall', registered: '2012/03/01', role: 'Member', status: 'Pending'},
{username: 'Hiroto Šimun', registered: '2012/01/21', role: 'Staff', status: 'Active'},
{username: 'Vishnu Serghei', registered: '2012/01/01', role: 'Member', status: 'Active'},
{username: 'Zbyněk Phoibos', registered: '2012/02/01', role: 'Staff', status: 'Banned'},
{username: 'Einar Randall', registered: '2012/02/01', role: 'Admin', status: 'Inactive'},
{username: 'Félix Troels', registered: '2012/03/21', role: 'Staff', status: 'Active'},
{username: 'Aulus Agmundr', registered: '2012/01/01', role: 'Member', status: 'Pending'}
]),
fields: [
{key: 'username'},
{key: 'registered'},
{key: 'role'},
{key: 'status'}
],
currentPage: 1,
perPage: 5,
totalRows: 0
}
hover: {
type: Boolean,
default: false
},
methods: {
getBadge (status) {
return status === 'Active' ? 'success'
: status === 'Inactive' ? 'secondary'
: status === 'Pending' ? 'warning'
: status === 'Banned' ? 'danger' : 'primary'
},
getRowCount (items) {
return items.length
}
striped: {
type: Boolean,
default: false
},
bordered: {
type: Boolean,
default: false
},
small: {
type: Boolean,
default: false
},
fixed: {
type: Boolean,
default: false
}
},
data: () => {
return {
items: shuffleArray([
{username: 'Samppa Nori', registered: '2012/01/01', role: 'Member', status: 'Active'},
{username: 'Estavan Lykos', registered: '2012/02/01', role: 'Staff', status: 'Banned'},
{username: 'Chetan Mohamed', registered: '2012/02/01', role: 'Admin', status: 'Inactive'},
{username: 'Derick Maximinus', registered: '2012/03/01', role: 'Member', status: 'Pending'},
{username: 'Friderik Dávid', registered: '2012/01/21', role: 'Staff', status: 'Active'},
{username: 'Yiorgos Avraamu', registered: '2012/01/01', role: 'Member', status: 'Active'},
{username: 'Avram Tarasios', registered: '2012/02/01', role: 'Staff', status: 'Banned'},
{username: 'Quintin Ed', registered: '2012/02/01', role: 'Admin', status: 'Inactive'},
{username: 'Enéas Kwadwo', registered: '2012/03/01', role: 'Member', status: 'Pending'},
{username: 'Agapetus Tadeáš', registered: '2012/01/21', role: 'Staff', status: 'Active'},
{username: 'Carwyn Fachtna', registered: '2012/01/01', role: 'Member', status: 'Active'},
{username: 'Nehemiah Tatius', registered: '2012/02/01', role: 'Staff', status: 'Banned'},
{username: 'Ebbe Gemariah', registered: '2012/02/01', role: 'Admin', status: 'Inactive'},
{username: 'Eustorgios Amulius', registered: '2012/03/01', role: 'Member', status: 'Pending'},
{username: 'Leopold Gáspár', registered: '2012/01/21', role: 'Staff', status: 'Active'},
{username: 'Pompeius René', registered: '2012/01/01', role: 'Member', status: 'Active'},
{username: 'Paĉjo Jadon', registered: '2012/02/01', role: 'Staff', status: 'Banned'},
{username: 'Micheal Mercurius', registered: '2012/02/01', role: 'Admin', status: 'Inactive'},
{username: 'Ganesha Dubhghall', registered: '2012/03/01', role: 'Member', status: 'Pending'},
{username: 'Hiroto Šimun', registered: '2012/01/21', role: 'Staff', status: 'Active'},
{username: 'Vishnu Serghei', registered: '2012/01/01', role: 'Member', status: 'Active'},
{username: 'Zbyněk Phoibos', registered: '2012/02/01', role: 'Staff', status: 'Banned'},
{username: 'Einar Randall', registered: '2012/02/01', role: 'Admin', status: 'Inactive'},
{username: 'Félix Troels', registered: '2012/03/21', role: 'Staff', status: 'Active'},
{username: 'Aulus Agmundr', registered: '2012/01/01', role: 'Member', status: 'Pending'}
]),
fields: [
{key: 'username'},
{key: 'registered'},
{key: 'role'},
{key: 'status'}
],
currentPage: 1,
perPage: 5,
totalRows: 0
}
},
methods: {
getBadge (status) {
return status === 'Active' ? 'success'
: status === 'Inactive' ? 'secondary'
: status === 'Pending' ? 'warning'
: status === 'Banned' ? 'danger' : 'primary'
},
getRowCount (items) {
return items.length
}
}
}
</script>
+5 -5
View File
@@ -31,10 +31,10 @@
</template>
<script>
import cTable from './Table.vue'
import cTable from './Table.vue'
export default {
name: 'tables',
components: {cTable}
}
export default {
name: 'tables',
components: {cTable}
}
</script>
+20 -20
View File
@@ -117,30 +117,30 @@
</template>
<script>
export default {
name: 'tooltips',
data () {
return {
show: true,
disabled: false
}
export default {
name: 'tooltips',
data () {
return {
show: true,
disabled: false
}
},
methods: {
onOpen () {
this.$refs.tooltip.$emit('open')
},
methods: {
onOpen () {
this.$refs.tooltip.$emit('open')
},
onClose () {
this.$refs.tooltip.$emit('close')
},
disableByRef () {
if (this.disabled) {
this.$refs.tooltip2.$emit('enable')
} else {
this.$refs.tooltip2.$emit('disable')
}
onClose () {
this.$refs.tooltip.$emit('close')
},
disableByRef () {
if (this.disabled) {
this.$refs.tooltip2.$emit('enable')
} else {
this.$refs.tooltip2.$emit('disable')
}
}
}
}
</script>
<style scoped>
+3 -4
View File
@@ -190,8 +190,7 @@
</template>
<script>
export default {
name: 'button-groups'
}
export default {
name: 'button-groups'
}
</script>
+3 -3
View File
@@ -232,7 +232,7 @@
</template>
<script>
export default {
name: 'dropdowns'
}
export default {
name: 'dropdowns'
}
</script>
+18 -18
View File
@@ -69,7 +69,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i>Alerts</strong>
<i class="fa fa-align-justify"></i>Alerts
<small>with additional content</small>
</div>
<b-alert show variant="success">
@@ -91,7 +91,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i>Alerts</strong>
<i class="fa fa-align-justify"></i>Alerts
<small>dismissible</small>
</div>
<div>
@@ -113,7 +113,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i>Alerts</strong>
<i class="fa fa-align-justify"></i>Alerts
<small>auto dismissible</small>
</div>
<div>
@@ -148,22 +148,22 @@
</template>
<script>
export default {
name: 'alerts',
data () {
return {
dismissSecs: 10,
dismissCountDown: 0,
showDismissibleAlert: false
}
export default {
name: 'alerts',
data () {
return {
dismissSecs: 10,
dismissCountDown: 0,
showDismissibleAlert: false
}
},
methods: {
countDownChanged (dismissCountDown) {
this.dismissCountDown = dismissCountDown
},
methods: {
countDownChanged (dismissCountDown) {
this.dismissCountDown = dismissCountDown
},
showAlert () {
this.dismissCountDown = this.dismissSecs
}
showAlert () {
this.dismissCountDown = this.dismissSecs
}
}
}
</script>
+34
View File
@@ -0,0 +1,34 @@
<template>
<div class={classes}>
<div class={classCardHeader}>
<i class={icon}></i>
{children}
</div>
<div class={classCardBody}>
<div>
<div class="text-value">{vals[1]}</div>
<div class="text-uppercase text-muted small">{keys[1]}</div>
</div>
<div>
<div class="text-value">{vals[2]}</div>
<div class="text-uppercase text-muted small">{keys[2]}</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'Widget03',
props: {
value: {
type: Boolean,
default: true
}
}
}
</script>
<style scoped>
</style>