Add "data-based" command doc framework basics

This commit is contained in:
Ske 2020-06-10 23:19:43 +02:00
parent cca287d3e3
commit 321f4d7d25
10 changed files with 166 additions and 5 deletions

View file

@ -1,6 +1,7 @@
<template>
<p class="command-example">
<span class="bot-prefix">pk;</span><slot></slot>
<span class="example-comment" v-if="comment">// {{ comment }}</span>
</p>
</template>
@ -8,8 +9,8 @@
.command-example {
font-size: $exampleFontSize;
font-family: $exampleFontFamily;
color: $exampleTextColor;
background-color: $exampleBgColor;
border-radius: 6px;
@ -20,4 +21,15 @@
.bot-prefix {
color: $examplePrefixColor;
}
</style>
.example-comment {
color: $exampleCommentColor;
float: right;
}
</style>
<script>
export default {
props: ["comment"]
}
</script>