|
@@ -33,6 +33,7 @@ import { usePageVisibility } from "@vant/use";
|
|
|
import { initMidi } from "/src/helpers/midiPlay"
|
|
|
import TheAudio from "/src/components/the-audio"
|
|
|
import tickWav from "/src/assets/tick.mp3";
|
|
|
+import AuthorName from "../component/authorName"
|
|
|
import { initSmoothAnimation } from "./smoothAnimation"
|
|
|
|
|
|
const DelayCheck = defineAsyncComponent(() =>
|
|
@@ -220,11 +221,14 @@ export default defineComponent({
|
|
|
if (state.fingeringInfo.direction === "transverse") {
|
|
|
return {
|
|
|
container: {
|
|
|
- paddingBottom: state.fingeringInfo.height
|
|
|
+ paddingBottom: detailData.headerHide ? state.fingeringInfo.height : state.fingeringInfo.scaleData?.offset
|
|
|
},
|
|
|
- fingerBox: {
|
|
|
+ fingerBox: detailData.headerHide ? {
|
|
|
+ height: state.fingeringInfo.height
|
|
|
+ } : {
|
|
|
height: state.fingeringInfo.height,
|
|
|
- },
|
|
|
+ transform: `scale(${state.fingeringInfo.scaleData?.scale})`
|
|
|
+ }
|
|
|
};
|
|
|
} else {
|
|
|
console.log('指法',state.playBtnDirection,state.platform)
|
|
@@ -413,7 +417,7 @@ export default defineComponent({
|
|
|
}
|
|
|
<div
|
|
|
id="scrollContainer"
|
|
|
- style={{ ...fingerConfig.value.container, height: detailData.headerHide ? "100vh" : "" }}
|
|
|
+ style={{ ...fingerConfig.value.container }}
|
|
|
class={[styles.container, !state.setting.displayCursor && "hideCursor", browsInfo.xiaomi && styles.xiaomi, state.platform === IPlatform.PC && styles.pcContainer]}
|
|
|
onClick={(e: Event) => {
|
|
|
e.stopPropagation();
|
|
@@ -430,7 +434,10 @@ export default defineComponent({
|
|
|
<MusicScore
|
|
|
showPartNames={state.isCombineRender}
|
|
|
onRendered={handleRendered}
|
|
|
- />
|
|
|
+ >
|
|
|
+ {/* 旋律线关闭时候的 标题和作者 */}
|
|
|
+ <AuthorName></AuthorName>
|
|
|
+ </MusicScore>
|
|
|
}
|
|
|
|
|
|
{/* {
|
|
@@ -440,7 +447,7 @@ export default defineComponent({
|
|
|
|
|
|
{/* 指法 */}
|
|
|
{state.setting.displayFingering && state.fingeringInfo?.name && !state.isPreView && state.isShowFingering && (
|
|
|
- <div style={{ ...fingerConfig.value.fingerBox }}>
|
|
|
+ <div style={{ ...fingerConfig.value.fingerBox }} class={styles.fingeringCon}>
|
|
|
<Fingering
|
|
|
style={{
|
|
|
background: state.setting.camera ? `rgba(${state.setting.eyeProtection ? "253,244,229" : "255,255,255"} ,${state.setting.cameraOpacity / 100})` : "",
|