vue3-sfc-loader icon indicating copy to clipboard operation
vue3-sfc-loader copied to clipboard

css in jsx not scoped

Open mustapha-wang opened this issue 11 months ago • 0 comments

if use jsx,the scoped css not applied.

<script setup lang="jsx">
  console.log('sfc setup');
  const My=function(){return(
    <>
      <span class='red'>red</span>
      <h1>china,shanghai</h1>
    </>
  )}
</script>

<template>
  <My />
</template>

<style scoped>
  h1{
    font-size: large;
    color:red;
  }
  .red{
    color:red;
  }
</style>
`

mustapha-wang avatar Mar 13 '24 06:03 mustapha-wang