File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
packages/language-core/lib/utils Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change
1
+ import { camelize } from '@vue/shared' ;
1
2
import type * as ts from 'typescript' ;
2
3
import * as path from 'path-browserify' ;
3
4
import type { RawVueCompilerOptions , VueCompilerOptions , VueLanguagePlugin } from '../types' ;
@@ -243,15 +244,17 @@ export function resolveVueCompilerOptions(vueOptions: Partial<VueCompilerOptions
243
244
experimentalResolveStyleCssClasses : vueOptions . experimentalResolveStyleCssClasses ?? 'scoped' ,
244
245
// https://github.com/vuejs/vue-next/blob/master/packages/compiler-dom/src/transforms/vModel.ts#L49-L51
245
246
// https://vuejs.org/guide/essentials/forms.html#form-input-bindings
246
- experimentalModelPropName : vueOptions . experimentalModelPropName ?? {
247
- '' : {
248
- input : true
249
- } ,
250
- value : {
251
- input : { type : 'text' } ,
252
- textarea : true ,
253
- select : true
247
+ experimentalModelPropName : Object . fromEntries ( Object . entries (
248
+ vueOptions . experimentalModelPropName ?? {
249
+ '' : {
250
+ input : true
251
+ } ,
252
+ value : {
253
+ input : { type : 'text' } ,
254
+ textarea : true ,
255
+ select : true
256
+ }
254
257
}
255
- } ,
258
+ ) . map ( ( [ k , v ] ) => [ camelize ( k ) , v ] ) ) ,
256
259
} ;
257
260
}
You can’t perform that action at this time.
0 commit comments