Newer
Older
<fetch-wiki-main-page>
<template slot-scope="{response, loading}">
<div v-if="loading || response === null">
<base-spinner />
</div>
</vue-markdown>
</div>
</slot>
</template>
</fetch-wiki-main-page>
import FetchWikiMainPage from '@/components/DDCODE/fetchWikiMainPage';
import VueMarkdown from 'vue-markdown'
import BaseSpinner from './UI/BaseSpinner.vue';
const _ = require('lodash')
export default {
name: 'EncycloPage',
components: {
FetchWikiMainPage, VueMarkdown,
BaseSpinner
},
props: {
msg: String
},
data() {
return {
url: document.location.protocol + '//wiki.ddcode.org/',
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
isDev: process.env.NODE_ENV === 'development'
}
},
computed: {
},
methods: {
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style>
@import url('~@/assets/bootstrap.css');
.main {
margin: 1.5rem;
}
h3 {
margin: 40px 0 0;
}
a {
color: #42b983;
}
ul.a {
list-style-type: disc;
list-style-position: inside;
}
input[type="radio"] {
margin: 2px;
}
.radio-label {
margin-left: 0px;
margin-right: 5px;
}
</style>