File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
packages/vue-i18n-core/src/components Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
- import { Fragment , VNode } from 'vue'
1
+ import { Fragment } from 'vue'
2
2
3
3
import type { NamedValue } from '@intlify/core-base'
4
+ import type { VNode } from 'vue'
5
+
4
6
export function getInterpolateArg (
5
7
// eslint-disable-next-line @typescript-eslint/no-explicit-any
6
8
{ slots } : any , // SetupContext,
@@ -13,7 +15,11 @@ export function getInterpolateArg(
13
15
return ret . reduce ( ( slot : ( VNode | typeof Fragment ) [ ] , current : any ) => {
14
16
return [
15
17
...slot ,
16
- ...( current . type === Fragment ? current . children : [ current ] )
18
+ // prettier-ignore
19
+ ...( ! __BRIDGE__
20
+ ? current . type === Fragment ? current . children : [ current ]
21
+ : current . children ? current . children : [ current ]
22
+ )
17
23
]
18
24
} , [ ] )
19
25
} else {
You can’t perform that action at this time.
0 commit comments