File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
packages/vue-i18n-core/src/components Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -136,9 +136,9 @@ export const Translation = /* #__PURE__*/ defineComponent({
136
136
options
137
137
)
138
138
const assignedAttrs = assign ( { } , attrs )
139
- return isString ( props . tag ) || isObject ( props . tag )
140
- ? h ( props . tag , assignedAttrs , children )
141
- : h ( Fragment , assignedAttrs , children )
139
+ const tag =
140
+ isString ( props . tag ) || isObject ( props . tag ) ? props . tag : Fragment
141
+ return h ( tag , assignedAttrs , children )
142
142
}
143
143
}
144
144
} )
Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ export function renderFormatter<
91
91
}
92
92
93
93
const assignedAttrs = assign ( { } , attrs )
94
- return isString ( props . tag ) || isObject ( props . tag )
95
- ? h ( props . tag , assignedAttrs , children )
96
- : h ( Fragment , assignedAttrs , children )
94
+ const tag =
95
+ isString ( props . tag ) || isObject ( props . tag ) ? props . tag : Fragment
96
+ return h ( tag , assignedAttrs , children )
97
97
}
98
98
}
You can’t perform that action at this time.
0 commit comments