File tree Expand file tree Collapse file tree 5 files changed +15
-4
lines changed Expand file tree Collapse file tree 5 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @vue-macros/volar ' : minor
3+ ---
4+
5+ ⚠️ BREAKING: rename ` shortVmodelPrefix ` to ` shortVmodel.prefix `
Original file line number Diff line number Diff line change @@ -144,7 +144,9 @@ npm i -D @vue-macros/volar
144144 " @vue-macros/volar/short-vmodel"
145145 ],
146146 // `shortVmodel` 特性的 prefix
147- " shortVmodelPrefix" : " $"
147+ " shortVmodel" : {
148+ " prefix" : " $"
149+ }
148150 }
149151}
150152```
Original file line number Diff line number Diff line change @@ -96,7 +96,9 @@ export default defineConfig({
9696 // ...
9797 ],
9898 // prefix
99- "shortVmodelPrefix": "$"
99+ "shortVmodel": {
100+ "prefix": "$"
101+ }
100102 }
101103}
102104```
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const plugin: VueLanguagePlugin = ({ vueCompilerOptions }) => {
99 options . nodeTransforms ||= [ ]
1010 options . nodeTransforms . push (
1111 transformShortVmodel ( {
12- prefix : ( vueCompilerOptions as any ) ?. shortVmodelPrefix ?? '$' ,
12+ prefix : ( vueCompilerOptions as any ) ?. shortVmodel ?. prefix ?? '$' ,
1313 } )
1414 )
1515 return options
Original file line number Diff line number Diff line change 1818 " @vue-macros/volar/define-model" ,
1919 " @vue-macros/volar/short-vmodel"
2020 ],
21- "shortVmodelPrefix" : " $"
21+ "shortVmodel" : {
22+ "prefix" : " $"
23+ }
2224 },
2325 "include" : [" src" , " *" ]
2426}
You can’t perform that action at this time.
0 commit comments