theatre/docs/.vuepress/components/KeyboardShortcut.vue
2021-09-04 15:44:31 +02:00

39 lines
644 B
Vue

<template>
<span class="wrapper">
<span class="chosen-platform">{{isMac ? 'mac' : 'pc'}}</span>
{{textForChosenPlatform}}
</span>
</template>
<script lang="ts">
import Vue from "vue";
export default Vue.extend({
props: {
mac: String,
pc: String
},
beforeMount() {},
computed: {
textForChosenPlatform() {
return this.isMac ? this.mac : this.pc;
}
},
data(opts) {
const isMac = true;
return { isMac };
}
});
</script>
<style scoped>
.wrapper {
background: #f3f3f3;
padding: 0 5px;
position: relative;
}
.chosen-platform {
font-size: 0.7em;
font-variant: small-caps;
}
</style>