|
@@ -48,7 +48,7 @@ export default defineComponent({
|
|
|
};
|
|
|
const getFingeringData = async () => {
|
|
|
const subject: any = data.subject + (data.viewIndex === 0 ? "" : data.viewIndex);
|
|
|
- console.log("🚀 ~ subject:", subject)
|
|
|
+ console.log("🚀 ~ subject:", subject);
|
|
|
fingerData.subject = await getFingeringConfig(subject);
|
|
|
};
|
|
|
const getSounFonts = () => {
|
|
@@ -170,40 +170,40 @@ export default defineComponent({
|
|
|
{/* <Button>
|
|
|
<Icon name="arrow-left" />
|
|
|
</Button> */}
|
|
|
- <div class={styles.noteBox}>
|
|
|
- {data.notes.map((note: IFIGNER_INSTRUMENT_Note) => {
|
|
|
- const steps = new Array(Math.abs(note.step)).fill(1);
|
|
|
- return (
|
|
|
- <div
|
|
|
- draggable={false}
|
|
|
- class={styles.note}
|
|
|
- onKeydown={() => noteClick(note, "start")}
|
|
|
- onKeyup={() => noteClick(note, "start")}
|
|
|
- onMouseleave={() => noteClick(note, "stop")}
|
|
|
- onTouchstart={() => noteClick(note, "start")}
|
|
|
- onTouchend={() => noteClick(note, "stop")}
|
|
|
- onTouchcancel={() => noteClick(note, "stop")}
|
|
|
- >
|
|
|
- {data.realKey === note.realKey ? (
|
|
|
- <img draggable={false} src={icons.icon_btn_ylow} />
|
|
|
- ) : (
|
|
|
- <img draggable={false} src={icons.icon_btn_blue} />
|
|
|
- )}
|
|
|
+ <div class={styles.noteContent}>
|
|
|
+ <div class={styles.noteBox}>
|
|
|
+ {data.notes.map((note: IFIGNER_INSTRUMENT_Note) => {
|
|
|
+ const steps = new Array(Math.abs(note.step)).fill(1);
|
|
|
+ return (
|
|
|
+ <div
|
|
|
+ draggable={false}
|
|
|
+ class={styles.note}
|
|
|
+ onKeydown={() => noteClick(note, "start")}
|
|
|
+ onKeyup={() => noteClick(note, "start")}
|
|
|
+ onMouseleave={() => noteClick(note, "stop")}
|
|
|
+ onTouchstart={() => noteClick(note, "start")}
|
|
|
+ onTouchend={() => noteClick(note, "stop")}
|
|
|
+ onTouchcancel={() => noteClick(note, "stop")}
|
|
|
+ >
|
|
|
+ {data.realKey === note.realKey ? (
|
|
|
+ <img draggable={false} src={icons.icon_btn_ylow} />
|
|
|
+ ) : (
|
|
|
+ <img draggable={false} src={icons.icon_btn_blue} />
|
|
|
+ )}
|
|
|
|
|
|
- <div class={[styles.noteKey, data.realKey === note.realKey && styles.keyActive]}>
|
|
|
- {note.step > 0 ? steps.map((n) => <span class={styles.dot}></span>) : null}
|
|
|
+ <div class={[styles.noteKey, data.realKey === note.realKey && styles.keyActive]}>
|
|
|
+ {note.step > 0 ? steps.map((n) => <span class={styles.dot}></span>) : null}
|
|
|
|
|
|
- <div class={styles.noteName}>
|
|
|
- <sup>
|
|
|
- {note.mark && (note.mark === "rise" ? "#" : "b")}
|
|
|
- </sup>
|
|
|
- {note.key}
|
|
|
+ <div class={styles.noteName}>
|
|
|
+ <sup>{note.mark && (note.mark === "rise" ? "#" : "b")}</sup>
|
|
|
+ {note.key}
|
|
|
+ </div>
|
|
|
+ {note.step < 0 ? steps.map((n) => <span class={styles.dot}></span>) : null}
|
|
|
</div>
|
|
|
- {note.step < 0 ? steps.map((n) => <span class={styles.dot}></span>) : null}
|
|
|
</div>
|
|
|
- </div>
|
|
|
- );
|
|
|
- })}
|
|
|
+ );
|
|
|
+ })}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
{/* <Button size="small" >
|
|
|
<Icon name="arrow" />
|