File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/vitepress-twoslash/src Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ const TwoslashFloatingVue = {
24
24
app . use ( FloatingVue , {
25
25
...options ,
26
26
themes : {
27
+ ...options . themes ,
27
28
'twoslash' : {
28
29
$extend : 'dropdown' ,
29
30
triggers : isMobile ? [ 'touch' ] : [ 'hover' , 'touch' ] ,
@@ -37,12 +38,14 @@ const TwoslashFloatingVue = {
37
38
flip : false ,
38
39
arrowPadding : 8 ,
39
40
autoBoundaryMaxSize : true ,
41
+ ...options . themes ?. twoslash ?? { } ,
40
42
} ,
41
43
'twoslash-query' : {
42
44
$extend : 'twoslash' ,
43
45
triggers : [ 'click' ] ,
44
46
popperTriggers : [ 'click' ] ,
45
47
autoHide : false ,
48
+ ...options . themes ?. [ 'twoslash-query' ] ?? { } ,
46
49
} ,
47
50
'twoslash-completion' : {
48
51
$extend : 'twoslash-query' ,
@@ -51,7 +54,9 @@ const TwoslashFloatingVue = {
51
54
autoHide : false ,
52
55
distance : 0 ,
53
56
arrowOverflow : true ,
57
+ ...options . themes ?. [ 'twoslash-completion' ] ?? { } ,
54
58
} ,
59
+ /** @deprecated */
55
60
...options . theme ,
56
61
} ,
57
62
} )
You can’t perform that action at this time.
0 commit comments