I use previewTemplate
, and want to use some styles.
Inline CSS is work normally, but CSS in <style> block does not work.
<script>
...
data() {
return {
...
options: {
previewTemplate: this.template(),
}
};
},
methods: {
template() {
return `
<div class="preview__card">
...
</div>
`;
},
},
...
</script>
...
<style lang="scss" scoped>
.preview__card {
background-color: red;
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4