We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use previewTemplate, and want to use some styles. Inline CSS is work normally, but CSS in <style> block does not work.
previewTemplate
<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; }
The text was updated successfully, but these errors were encountered:
This problem was due to scoped style. It worked well without scope
scoped
Sorry, something went wrong.
@tatane616 This saved my day.
You can also use /deep/ before css class in scoped, like this:
/deep/
<style lang="scss" scoped> /deep/.dz-message { font-size: 20px; } </style>
No branches or pull requests
I use
previewTemplate
, and want to use some styles.Inline CSS is work normally, but CSS in <style> block does not work.
The text was updated successfully, but these errors were encountered: