|
@@ -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
|
|
|
|