Skip to content

edge case for highlight in vue setup #4589

New issue

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

Closed
Simon-He95 opened this issue Jul 17, 2024 · 1 comment
Closed

edge case for highlight in vue setup #4589

Simon-He95 opened this issue Jul 17, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@Simon-He95
Copy link
Contributor

Vue - Official extension or vue-tsc version

latest

VSCode version

latest

Vue version

latest

TypeScript version

latest

System Info

No response

Steps to reproduce

image

code

<script setup lang="ts">
type IType = Record<string,string>
</script>
<template>
  <div id='app'>
    <div class="list1" fw600 font-size-10 color-red>
      <div class="item" mb-5>item1</div>
      <div class="item" mb-5>item2</div>
      <div class="item" mb-5>item3</div>
    </div>
    <div class="list2">
      <div class="item">item1</div>
      <div class="item">item2</div>
      <div class="item">item3</div>
    </div>
    <i fw-500 font-size-6>list2的样式写在了Custom css中</i>
    <br />
    <i fw-500 font-size-6>注释掉 config 中important:'#app',list2的样式才会生效</i>
  </div>
</template>
<style scoped>
/* Write custom CSS here, and transformer support. For example: */
.list2 {
  @apply fw600 font-size-10 color-red;
}

.list2 > .item {
  @apply mb-5;
}
</style>

What is expected?

when setup last with type xxx, will lead to highlight collapse

What is actually happening?

when setup last with type xxx, will lead to highlight collapse

Link to minimal reproduction

No response

Any additional comments?

No response

@so1ve
Copy link
Member

so1ve commented Jul 17, 2024

Duplicate of #2060

@so1ve so1ve marked this as a duplicate of #2060 Jul 17, 2024
@so1ve so1ve closed this as not planned Won't fix, can't repro, duplicate, stale Jul 17, 2024
@so1ve so1ve added duplicate This issue or pull request already exists and removed pending triage labels Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants