htmlBox.vue
408 Bytes
<template>
<div class="html-box" v-if="htmls">
<div class="box">
<div class="html" v-html="htmls"></div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
}
},
props: ["htmls"],
methods: {
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style rel="stylesheet/less" lang="less" scoped>
@import './htmlBox';
</style>