Skip to content

My style does not work #12

@tatane616

Description

@tatane616

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions