|
@@ -1,10 +1,11 @@
|
|
|
/**
|
|
|
* 一行谱动画
|
|
|
*/
|
|
|
-import { watch, ref, Ref } from "vue"
|
|
|
+import { watch, ref, Ref, h, render } from "vue"
|
|
|
import { getAudioCurrentTime } from "/src/view/audio-list"
|
|
|
import state from "/src/state"
|
|
|
import "./index.less"
|
|
|
+import Bird from "./bird"
|
|
|
|
|
|
type pointsPosType = { x: number; y: number; MeasureNumberXML: number }[]
|
|
|
type smoothAnimationType = {
|
|
@@ -301,6 +302,8 @@ function createSmoothAnimation() {
|
|
|
const smoothBotDom = document.createElement("div")
|
|
|
smoothBotDom.className = "smoothBot"
|
|
|
smoothAnimationState.smoothBotDom = smoothBotDom
|
|
|
+ // 添加小鸟
|
|
|
+ render(h(Bird), smoothBotDom)
|
|
|
smoothAnimationConDom.appendChild(smoothCanvasDom)
|
|
|
smoothAnimationConDom.appendChild(smoothBotDom)
|
|
|
smoothAnimationBoxDom.appendChild(smoothAnimationConDom)
|