Skip to content
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
589 changes: 32 additions & 557 deletions packages/docs/src/pages/en/getting-started/upgrade-guide.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/vuetify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"lint:fix": "concurrently -n \"tsc,eslint\" \"tsgo -p tsconfig.checks.json --noEmit --pretty\" \"eslint --fix src\""
},
"dependencies": {
"@vuetify/v0": "^0.1.5"
"@vuetify/v0": "^0.2.0"
},
"devDependencies": {
"@date-io/core": "3.2.0",
Expand Down
33 changes: 22 additions & 11 deletions packages/vuetify/src/components/VThemeProvider/VThemeProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// Styles
import './VThemeProvider.sass'

// Components
import { Theme } from '@vuetify/v0/components'

// Composables
import { makeComponentProps } from '@/composables/component'
import { makeTagProps } from '@/composables/tag'
Expand All @@ -26,19 +29,27 @@ export const VThemeProvider = genericComponent()({
const { themeClasses } = provideTheme(props)

return () => {
if (!props.withBackground) return slots.default?.()
if (!props.withBackground) {
return (
<Theme theme={ props.theme } renderless>
{ slots.default?.() }
</Theme>
)
}

return (
<props.tag
class={[
'v-theme-provider',
themeClasses.value,
props.class,
]}
style={ props.style }
>
{ slots.default?.() }
</props.tag>
<Theme theme={ props.theme } renderless>
<props.tag
class={[
'v-theme-provider',
themeClasses.value,
props.class,
]}
style={ props.style }
>
{ slots.default?.() }
</props.tag>
</Theme>
)
}
},
Expand Down
Loading
Loading