debian-mirror-gitlab/app/assets/javascripts/code_navigation/components/doc_line.vue

24 lines
388 B
Vue
Raw Normal View History

2020-06-23 00:09:42 +05:30
<script>
export default {
props: {
language: {
type: String,
required: true,
},
tokens: {
type: Array,
required: true,
},
},
};
</script>
<template>
<span class="line" :lang="language">
<span v-for="(token, tokenIndex) in tokens" :key="tokenIndex" :class="token.class">{{
token.value
}}</span>
2022-01-26 12:08:38 +05:30
<br />
2020-06-23 00:09:42 +05:30
</span>
</template>