Skip to content
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

sub component lost style (without data-v-xxxxxxxx attribute ) when I use style scoped #2002

Open
yokefellow opened this issue Oct 4, 2022 · 2 comments

Comments

@yokefellow
Copy link

yokefellow commented Oct 4, 2022

Version

15.10.0

Reproduction link

codesandbox.io

Steps to reproduce

<template>
  Please see the reproduction link above for details
</template>
<script>
export default {
  name: "VuetifyDemo",
  data: () => ({
    show: false,
  }),
};
</script>
<style scoped src="vuetify/dist/vuetify.min.css">
</style>
<style lang="stylus" scoped></style>

What is expected?

Components can be displayed normally when I import without using global styles.
I am using vuetify to complete some functions of vuepress, but reset.css is included in vuetify.min.css, I don't want them to affect other styles, so I choose partial import.

What is actually happening?

When component is rendered, v-img (.v-image div) has no data-v-xxxxxxxx attribute. When I remove the scoped setting, it displays fine, but it also means that other styles of vuepress are polluted.
image

When I manually add the data-v-xxxxxxxx attribute in the browser developer tools, the display is normal, now I want to know how to achieve it by code
image

@conarti
Copy link

conarti commented Nov 1, 2022

I got same problem today

@didagu
Copy link

didagu commented Jun 23, 2023

is there any fix for this yet ? @conarti @yokefellow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants