2018-09-13 12:01:50 +03:00
|
|
|
<template>
|
|
|
|
<button class="nrvgflfuaxwgkxoynpnumyookecqrrvh" @click="toggle">{{ value ? '%i18n:@hide%' : '%i18n:@show%' }}</button>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
props: {
|
|
|
|
value: {
|
|
|
|
type: Boolean,
|
|
|
|
required: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
toggle() {
|
|
|
|
this.$emit('input', !this.value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
2018-09-26 20:02:07 +03:00
|
|
|
.nrvgflfuaxwgkxoynpnumyookecqrrvh
|
2018-09-13 12:01:50 +03:00
|
|
|
display inline-block
|
|
|
|
padding 4px 8px
|
|
|
|
font-size 0.7em
|
2018-09-26 20:02:07 +03:00
|
|
|
color var(--cwButtonFg)
|
|
|
|
background var(--cwButtonBg)
|
2018-09-13 12:01:50 +03:00
|
|
|
border-radius 2px
|
|
|
|
cursor pointer
|
|
|
|
user-select none
|
|
|
|
|
|
|
|
&:hover
|
2018-09-26 20:02:07 +03:00
|
|
|
background var(--cwButtonHoverBg)
|
2018-09-13 12:01:50 +03:00
|
|
|
|
|
|
|
</style>
|