-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
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;
}
Metadata
Metadata
Assignees
Labels
No labels