lex 1 rok pred
rodič
commit
30f99c773c
1 zmenil súbory, kde vykonal 24 pridanie a 24 odobranie
  1. 24 24
      src/views/tempo-practice/index.tsx

+ 24 - 24
src/views/tempo-practice/index.tsx

@@ -374,30 +374,30 @@ export default defineComponent({
                         state.settingStatus && styles.disabledChange
                       ]}
                       // draggable={true}
-                      onDragenter={(e: any) => {
-                        e.preventDefault();
-                      }}
-                      onDragover={(e: any) => {
-                        e.preventDefault();
-                      }}
-                      onDrop={(e: any) => {
-                        let dropItem = e.dataTransfer.getData('text');
-                        dropItem = dropItem ? JSON.parse(dropItem) : {};
-                        // 判断是否有数据
-                        if (dropItem.url) {
-                          handleStop();
-                          setting_modal.scorePart.forEach(
-                            (part: Array<any>, ci: number) => {
-                              part.forEach((child: any, cj: number) => {
-                                if (i === ci && jIndex === cj) {
-                                  child.url = dropItem.url;
-                                  child.index = dropItem.index;
-                                }
-                              });
-                            }
-                          );
-                        }
-                      }}
+                      // onDragenter={(e: any) => {
+                      //   e.preventDefault();
+                      // }}
+                      // onDragover={(e: any) => {
+                      //   e.preventDefault();
+                      // }}
+                      // onDrop={(e: any) => {
+                      //   let dropItem = e.dataTransfer.getData('text');
+                      //   dropItem = dropItem ? JSON.parse(dropItem) : {};
+                      //   // 判断是否有数据
+                      //   if (dropItem.url) {
+                      //     handleStop();
+                      //     setting_modal.scorePart.forEach(
+                      //       (part: Array<any>, ci: number) => {
+                      //         part.forEach((child: any, cj: number) => {
+                      //           if (i === ci && jIndex === cj) {
+                      //             child.url = dropItem.url;
+                      //             child.index = dropItem.index;
+                      //           }
+                      //         });
+                      //       }
+                      //     );
+                      //   }
+                      // }}
                       onClick={(e: any) => {
                         e.stopPropagation();
                         // 编辑时可以操作