mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 00:52:01 +00:00
fix(schema): remove defineModel
option as it is now stable (#25306)
This commit is contained in:
parent
ce7845cbcf
commit
040cd97c3c
@ -199,12 +199,11 @@ export default defineNuxtConfig({
|
||||
|
||||
### Enabling Experimental Vue Features
|
||||
|
||||
You may need to enable experimental features in Vue, such as `defineModel` or `propsDestructure`. Nuxt provides an easy way to do that in `nuxt.config.ts`, no matter which builder you are using:
|
||||
You may need to enable experimental features in Vue, such as `propsDestructure`. Nuxt provides an easy way to do that in `nuxt.config.ts`, no matter which builder you are using:
|
||||
|
||||
```ts [nuxt.config.ts]
|
||||
export default defineNuxtConfig({
|
||||
vue: {
|
||||
defineModel: true,
|
||||
propsDestructure: true
|
||||
}
|
||||
})
|
||||
|
@ -28,13 +28,6 @@ export default defineUntypedSchema({
|
||||
* @type {boolean}
|
||||
*/
|
||||
propsDestructure: false,
|
||||
|
||||
/**
|
||||
* Vue Experimental: Enable macro `defineModel`
|
||||
* @see [Vue RFC#503](https://github.com/vuejs/rfcs/discussions/503)
|
||||
* @type {boolean}
|
||||
*/
|
||||
defineModel: false
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -55,9 +55,6 @@ export default defineUntypedSchema({
|
||||
script: {
|
||||
propsDestructure: {
|
||||
$resolve: async (val, get) => val ?? Boolean((await get('vue')).propsDestructure)
|
||||
},
|
||||
defineModel: {
|
||||
$resolve: async (val, get) => val ?? Boolean((await get('vue')).defineModel)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -205,7 +205,6 @@ export default defineUntypedSchema({
|
||||
},
|
||||
compilerOptions: { $resolve: async (val, get) => val ?? (await get('vue.compilerOptions')) },
|
||||
propsDestructure: { $resolve: async (val, get) => val ?? Boolean(await get('vue.propsDestructure')) },
|
||||
defineModel: { $resolve: async (val, get) => val ?? Boolean(await get('vue.defineModel')) }
|
||||
},
|
||||
|
||||
css: {
|
||||
|
Loading…
Reference in New Issue
Block a user