File tree 3 files changed +3
-5
lines changed
applet/src/modules/custom-inspector/components/timeline
3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ const state = useCustomInspectorState()
6
6
</script >
7
7
8
8
<template >
9
- <Timeline :layer-ids =" state.timelineLayerIds!" :doc-link =" state.homepage!" :plugin-id =" state.pluginId" />
9
+ <Timeline :layer-ids =" state.timelineLayerIds!" :doc-link =" state.homepage!" :plugin-id =" state.pluginId! " />
10
10
</template >
Original file line number Diff line number Diff line change @@ -27,8 +27,7 @@ const isDark = computed({
27
27
set : v => mode .value = v ? ' dark' : ' light' ,
28
28
})
29
29
30
- // @ts-expect-error: Transition API
31
- const isAppearanceTransition = document .startViewTransition
30
+ const isAppearanceTransition = !! document .startViewTransition
32
31
&& ! window .matchMedia (' (prefers-reduced-motion: reduce)' ).matches
33
32
/**
34
33
* Credit to [@hooray](https://github.com/hooray)
@@ -45,7 +44,6 @@ function toggle(event?: MouseEvent) {
45
44
Math .max (x , innerWidth - x ),
46
45
Math .max (y , innerHeight - y ),
47
46
)
48
- // @ts-expect-error: Transition API
49
47
const transition = document .startViewTransition (async () => {
50
48
isDark .value = ! isDark .value
51
49
await nextTick ()
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts" generic =" Value extends number | string , Label , M extends boolean " >
2
2
import type { ButtonProps } from ' ./Button.vue'
3
- import { VClosePopper as vClosePopper } from ' floating-vue'
3
+ import { vClosePopper } from ' floating-vue'
4
4
import { computed , useSlots } from ' vue'
5
5
import VueButton from ' ./Button.vue'
6
6
import VueDropdown from ' ./Dropdown.vue'
You can’t perform that action at this time.
0 commit comments