File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -209,10 +209,24 @@ const Tour = defineComponent({
209
209
rootClassName = { rootClassName }
210
210
/>
211
211
< Trigger
212
- builtinPlacements = { getPlacements ( arrowPointAtCenter . value ) }
213
212
{ ...restProps }
213
+ builtinPlacements = {
214
+ ! curStep . value . target
215
+ ? undefined
216
+ : restProps . builtinPlacements ?? getPlacements ( arrowPointAtCenter . value )
217
+ }
214
218
ref = { triggerRef }
215
- popupStyle = { curStep . value . style }
219
+ popupStyle = {
220
+ ! curStep . value . target
221
+ ? {
222
+ ...curStep . value . style ,
223
+ position : 'fixed' ,
224
+ left : CENTER_PLACEHOLDER . left ,
225
+ top : CENTER_PLACEHOLDER . top ,
226
+ transform : 'translate(-50%, -50%)' ,
227
+ }
228
+ : curStep . value . style
229
+ }
216
230
popupPlacement = { mergedPlacement . value }
217
231
popupVisible = { mergedOpen . value }
218
232
popupClassName = { classNames ( rootClassName , curStep . value . className ) }
You can’t perform that action at this time.
0 commit comments