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> <template>
<li :class="body.type_"><!-- <li :is="tag" :class="body.type_"><!--
--><span :is="item.tag || 'span'" v-for="(item, index) in assemble_text" --><span :is="item.tag || 'span'" v-for="(item, index) in assemble_text"
:class="item.type" :class="item.type"
:key="index"><!-- :key="index"><!--
...@@ -19,7 +19,11 @@ import languages from '../utils/languages.js' ...@@ -19,7 +19,11 @@ import languages from '../utils/languages.js'
export default { export default {
name: 'DefElement', name: 'DefElement',
props: { props: {
body: Object body: Object,
tag: {
type: String,
default: 'li'
}
}, },
computed: { computed: {
unparsed: function(){ unparsed: function(){
......
...@@ -68,7 +68,7 @@ var Definition = { ...@@ -68,7 +68,7 @@ var Definition = {
export default Definition export default Definition
</script> </script>
<style> <style>
li.quote { q {
font-style: italic; font-style: italic;
} }
......
<template> <template>
<li class="example"> <li class="example">
<ul> <DefElement tag="q" :body="body.quote" @article-click="article_link_click" /> -
<DefElement :body="body.quote" :class="'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" />
<DefElement :body="body.explanation" v-if="body.explanation" @article-click="article_link_click" />
</ul>
</li> </li>
</template> </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