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