mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 07:18:04 +08:00
33 lines
488 B
Vue
33 lines
488 B
Vue
<template>
|
|
<span class="text-label" :class="{ bold, italic }">
|
|
<slot></slot>
|
|
</span>
|
|
</template>
|
|
|
|
<style lang="scss">
|
|
.text-label {
|
|
white-space: nowrap;
|
|
line-height: 18px;
|
|
|
|
&.bold {
|
|
font-weight: bold;
|
|
}
|
|
|
|
&.italic {
|
|
font-style: italic;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from "vue";
|
|
|
|
export default defineComponent({
|
|
components: {},
|
|
props: {
|
|
bold: { type: Boolean, default: false },
|
|
italic: { type: Boolean, default: false },
|
|
},
|
|
});
|
|
</script>
|