File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
packages/language-core/lib/plugins Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,13 @@ const plugin: VueLanguagePlugin = ctx => {
113
113
: formatBrackets . normal
114
114
) ;
115
115
}
116
+ else if ( prop . name === 'slot' ) {
117
+ addFormatCodes (
118
+ prop . exp . content ,
119
+ prop . exp . loc . start . offset ,
120
+ formatBrackets . params
121
+ ) ;
122
+ }
116
123
else {
117
124
addFormatCodes (
118
125
prop . exp . content ,
@@ -149,11 +156,11 @@ const plugin: VueLanguagePlugin = ctx => {
149
156
let start = leftExpressionRange . start ;
150
157
let end = source . loc . start . offset + source . content . length ;
151
158
while ( templateContent [ start - 1 ] === ' ' || templateContent [ start - 1 ] === '(' ) {
152
- start -- ;
153
- }
159
+ start -- ;
160
+ }
154
161
while ( templateContent [ end ] === ' ' || templateContent [ end ] === ')' ) {
155
- end ++ ;
156
- }
162
+ end ++ ;
163
+ }
157
164
addFormatCodes (
158
165
templateContent . slice ( start , end ) ,
159
166
start ,
You can’t perform that action at this time.
0 commit comments