liushengqiang 1 year ago
parent
commit
727f5718ee
1 changed files with 2 additions and 7 deletions
  1. 2 7
      src/views/coursewarePlay/index.tsx

+ 2 - 7
src/views/coursewarePlay/index.tsx

@@ -732,13 +732,8 @@ export default defineComponent({
           >
             <div class={styles.wraps}>
               {data.itemList.map((m: any, mIndex: number) => {
-                const isRender = Math.abs(popupData.activeIndex - mIndex) < 3
-                const isEmtry = Math.abs(popupData.activeIndex - mIndex) > 2
-                // const isRender = Math.abs(popupData.activeIndex - mIndex) < 2;
-                //   const isEmtry = Math.abs(popupData.activeIndex - mIndex) > 4;
-                // if (isRender) {
-                //   m.isRender = true
-                // }
+                const isRender = Math.abs(popupData.activeIndex - mIndex) < 2
+                const isEmtry = popupData.activeIndex != mIndex
                 // 判断是否是当前选中的元素
                 const activeEle = popupData.activeIndex === mIndex ? true : false