File tree 4 files changed +53
-15
lines changed
4 files changed +53
-15
lines changed Original file line number Diff line number Diff line change
1
+ import IconCopy from '~/assets/icons/control-copy.svg?component'
2
+ import IconCut from '~/assets/icons/control-cut.svg?component'
3
+ import IconDelete from '~/assets/icons/control-delete.svg?component'
4
+ import IconNext from '~/assets/icons/control-next.svg?component'
5
+ import IconPause from '~/assets/icons/control-pause.svg?component'
6
+ import IconPlay from '~/assets/icons/control-play.svg?component'
7
+ import IconPrev from '~/assets/icons/control-prev.svg?component'
8
+ import IconRedo from '~/assets/icons/control-redo.svg?component'
9
+ import IconUndo from '~/assets/icons/control-undo.svg?component'
10
+ import IconZoomin from '~/assets/icons/control-zoomin.svg?component'
11
+ import IconZoomout from '~/assets/icons/control-zoomout.svg?component'
12
+ import IconZoomToFit from '~/assets/icons/control-zoomtofit.svg?component'
13
+ import IconExport from '~/assets/icons/icon-export.svg?component'
14
+ import IconGithub from '~/assets/icons/icon-github.svg?component'
15
+ import IconMusic from '~/assets/icons/icon-music.svg?component'
16
+ import IconText from '~/assets/icons/icon-text.svg?component'
17
+ import IconVideo from '~/assets/icons/icon-video.svg?component'
18
+
19
+ export {
20
+ IconExport ,
21
+ IconGithub ,
22
+ IconMusic ,
23
+ IconText ,
24
+ IconVideo ,
25
+ IconCopy ,
26
+ IconCut ,
27
+ IconDelete ,
28
+ IconNext ,
29
+ IconPause ,
30
+ IconPlay ,
31
+ IconPrev ,
32
+ IconRedo ,
33
+ IconUndo ,
34
+ IconZoomin ,
35
+ IconZoomout ,
36
+ IconZoomToFit
37
+ }
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
import TrackList from ' ./TrackList.vue'
3
3
import { storeToRefs } from ' pinia'
4
- import IconCopy from ' ~/assets/icons/control-copy.svg?component'
5
- import IconCut from ' ~/assets/icons/control-cut.svg?component'
6
- import IconDelete from ' ~/assets/icons/control-delete.svg?component'
7
- import IconNext from ' ~/assets/icons/control-next.svg?component'
8
- import IconPause from ' ~/assets/icons/control-pause.svg?component'
9
- import IconPlay from ' ~/assets/icons/control-play.svg?component'
10
- import IconPrev from ' ~/assets/icons/control-prev.svg?component'
11
- import IconRedo from ' ~/assets/icons/control-redo.svg?component'
12
- import IconUndo from ' ~/assets/icons/control-undo.svg?component'
13
- import IconZoomin from ' ~/assets/icons/control-zoomin.svg?component'
14
- import IconZoomout from ' ~/assets/icons/control-zoomout.svg?component'
15
- import IconZoomToFit from ' ~/assets/icons/control-zoomtofit.svg?component'
4
+ import {
5
+ IconCopy ,
6
+ IconCut ,
7
+ IconDelete ,
8
+ IconNext ,
9
+ IconPause ,
10
+ IconPlay ,
11
+ IconPrev ,
12
+ IconRedo ,
13
+ IconUndo ,
14
+ IconZoomToFit ,
15
+ IconZoomin ,
16
+ IconZoomout
17
+ } from ' ~/assets/icons/index'
16
18
import { usePlayerStore } from ' ~/stores/player'
17
19
import { formatSeconds } from ' ~/utils/index'
18
20
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const usePlayerStore = defineStore('playerStore', () => {
9
9
playStatus . value = state === undefined ? ! playStatus . value : state
10
10
}
11
11
// 播放列表
12
- const playList = ref ( [ ] )
12
+ const playList = ref < string [ ] > ( [ ] )
13
13
// 轨道数
14
14
const trackCount = computed ( ( ) => playList . value . length )
15
15
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
import { onMounted } from ' vue'
3
- import IconExport from ' ~/assets/icons/icon-export.svg?component'
4
- import IconGithub from ' ~/assets/icons/icon-github.svg?component'
3
+ import { IconExport , IconGithub } from ' ~/assets/icons/index'
5
4
import BottomPanel from ' ~/components/bottom-panel/BottomPanel.vue'
6
5
import LeftPanel from ' ~/components/left-panel/LeftPanel.vue'
7
6
import CanvasPlayer from ' ~/components/player/CanvasPlayer.vue'
You can’t perform that action at this time.
0 commit comments