2018-10-26 01:37:30 +02:00
|
|
|
<template>
|
|
|
|
<div class="ymxyweixqwsxauxldgpvecjepnwxbylu" :class="{ warn }">
|
|
|
|
<i v-if="warn">%fa:exclamation-triangle%</i>
|
2018-10-31 10:07:00 +01:00
|
|
|
<i v-else>%fa:info-circle%</i>
|
2018-10-26 01:37:30 +02:00
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
export default Vue.extend({
|
|
|
|
props: {
|
|
|
|
warn: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
.ymxyweixqwsxauxldgpvecjepnwxbylu
|
|
|
|
margin 16px 0
|
|
|
|
padding 16px
|
|
|
|
font-size 90%
|
2018-10-31 10:07:00 +01:00
|
|
|
background var(--infoBg)
|
|
|
|
color var(--infoFg)
|
2018-10-26 01:37:30 +02:00
|
|
|
|
|
|
|
&.warn
|
|
|
|
background var(--infoWarnBg)
|
|
|
|
color var(--infoWarnFg)
|
2018-10-31 10:07:00 +01:00
|
|
|
|
|
|
|
&:first-child
|
|
|
|
margin-top 0
|
|
|
|
|
|
|
|
&:last-child
|
|
|
|
margin-bottom 0
|
|
|
|
|
|
|
|
> i
|
|
|
|
margin-right 4px
|
|
|
|
|
2018-10-26 01:37:30 +02:00
|
|
|
</style>
|