|
@@ -6,6 +6,7 @@ import TheCreate from "./component/the-create";
|
|
|
import { storeData } from "/src/store";
|
|
|
import { api_musicSheetCreationPage, api_musicSheetCreationRemove } from "../api";
|
|
|
import { useRouter } from "vue-router";
|
|
|
+import ABCJS from "abcjs";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: "Create",
|
|
@@ -77,7 +78,9 @@ export default defineComponent({
|
|
|
"*"
|
|
|
);
|
|
|
};
|
|
|
-
|
|
|
+ const productSvg = (abc: string, id: string) => {
|
|
|
+ const a = ABCJS.renderAbc(id, abc, {selectTypes: false});
|
|
|
+ };
|
|
|
return () => (
|
|
|
<div class={styles.wrap}>
|
|
|
<NSpace size={18}>
|
|
@@ -86,9 +89,17 @@ export default defineComponent({
|
|
|
<div>新建乐谱</div>
|
|
|
</div>
|
|
|
|
|
|
- {data.list.map((item) => (
|
|
|
+ {data.list.map((item, index: number) => (
|
|
|
<div class={styles.item} onClick={() => handleOpenNotaion(item)}>
|
|
|
- <div class={styles.imgBox}>{/* <img src={getImage("icon_29.png")} /> */}</div>
|
|
|
+ <div class={styles.imgBox} id={"item_" + index}>
|
|
|
+ <img
|
|
|
+ style={{ display: "none" }}
|
|
|
+ src={getImage("icon_29.png")}
|
|
|
+ onLoad={() => {
|
|
|
+ productSvg(item.creationConfig, "item_" + index);
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
<div class={styles.itemBottom}>
|
|
|
<div class={styles.bottombox}>
|
|
|
<div class={styles.bottomLeft}>
|