|
@@ -71,7 +71,6 @@ export default defineComponent({
|
|
|
};
|
|
|
|
|
|
const setState = (data: any, index: number) => {
|
|
|
- state.scrollContainer = "scrollContainer";
|
|
|
state.appName = "COLEXIU";
|
|
|
state.detailId = data.id;
|
|
|
state.xmlUrl = data.xmlFileUrl;
|
|
@@ -123,7 +122,7 @@ export default defineComponent({
|
|
|
Promise.all([sysMusicScoreAccompanimentQueryPage(query.id)]).then((values) => {
|
|
|
getMusicInfo(values[0]);
|
|
|
});
|
|
|
- api_setEventTracking()
|
|
|
+ api_setEventTracking();
|
|
|
});
|
|
|
|
|
|
/** 渲染完成 */
|
|
@@ -144,7 +143,7 @@ export default defineComponent({
|
|
|
const beatLengthInMilliseconds = osmd?.Sheet?.SheetPlaybackSetting?.beatLengthInMilliseconds || (60 / bpm) * 1000;
|
|
|
handleInitTick(beatLengthInMilliseconds, osmd?.Sheet?.SheetPlaybackSetting?.Rhythm?.Numerator || 4);
|
|
|
}
|
|
|
- api_cloudLoading()
|
|
|
+ api_cloudLoading();
|
|
|
};
|
|
|
/** 指法配置 */
|
|
|
const fingerConfig = computed<any>(() => {
|
|
@@ -184,13 +183,9 @@ export default defineComponent({
|
|
|
() => state.setting.displayFingering,
|
|
|
() => {
|
|
|
if (state.fingeringInfo.direction === "vertical") {
|
|
|
- if (state.setting.displayFingering) {
|
|
|
- document.getElementById("musicAndSelection")?.style.removeProperty("--music-zoom");
|
|
|
- } else {
|
|
|
- nextTick(() => {
|
|
|
- resetMusicScore();
|
|
|
- });
|
|
|
- }
|
|
|
+ nextTick(() => {
|
|
|
+ resetMusicScore();
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
);
|
|
@@ -210,7 +205,7 @@ export default defineComponent({
|
|
|
return () => (
|
|
|
<div
|
|
|
class={[styles.detail, state.setting.eyeProtection && "eyeProtection"]}
|
|
|
- style={{ paddingLeft: detailData.paddingLeft, opacity: state.setting.camera ? `${state.setting.cameraOpacity / 100}` : ''}}
|
|
|
+ style={{ paddingLeft: detailData.paddingLeft, opacity: state.setting.camera ? `${state.setting.cameraOpacity / 100}` : "" }}
|
|
|
>
|
|
|
{!state.musicRendered && (
|
|
|
<div class={styles.skeleton}>
|
|
@@ -222,7 +217,7 @@ export default defineComponent({
|
|
|
</div>
|
|
|
<div
|
|
|
id="scrollContainer"
|
|
|
- style={{ ...fingerConfig.value.container }}
|
|
|
+ style={{ ...fingerConfig.value.container, height: detailData.headerHide ? "100vh" : "" }}
|
|
|
class={[styles.container, !state.setting.displayCursor && "hideCursor"]}
|
|
|
onClick={(e: Event) => {
|
|
|
if (state.playState === "play") {
|