Skip to content
Snippets Groups Projects
Commit a2466fa0 authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

re meta#60 bruker <q> for sitatdelen av eksempler

parent c00a1e82
No related branches found
No related tags found
No related merge requests found
<template>
<li :class="body.type_"><!--
<li :is="tag" :class="body.type_"><!--
--><span :is="item.tag || 'span'" v-for="(item, index) in assemble_text"
:class="item.type"
:key="index"><!--
......@@ -19,7 +19,11 @@ import languages from '../utils/languages.js'
export default {
name: 'DefElement',
props: {
body: Object
body: Object,
tag: {
type: String,
default: 'li'
}
},
computed: {
unparsed: function(){
......
......@@ -68,7 +68,7 @@ var Definition = {
export default Definition
</script>
<style>
li.quote {
q {
font-style: italic;
}
......
<template>
<li class="example">
<ul>
<DefElement :body="body.quote" :class="'quote'" @article-click="article_link_click" />
<DefElement :body="body.explanation" v-if="body.explanation" @article-click="article_link_click" />
</ul>
<DefElement tag="q" :body="body.quote" @article-click="article_link_click" /> -
<DefElement tag="span" :body="body.explanation" v-if="body.explanation && body.explanation.content.length" @article-click="article_link_click" />
</li>
</template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment