优化列表滚动性能

This commit is contained in:
lyswhut
2021-12-23 10:37:51 +08:00
parent e337f7121b
commit 217ff27e72
5 changed files with 13 additions and 9 deletions
@@ -1,5 +1,5 @@
<template>
<component :is="containerEl" :class="containerClass" ref="dom_scrollContainer" style="height: 100%; overflow: auto; position: relative; display: block;">
<component :is="containerEl" :class="containerClass" ref="dom_scrollContainer" style="height: 100%; overflow: auto; position: relative; display: block; contain: strict;">
<component :is="contentEl" :class="contentClass" :style="contentStyle">
<div v-for="item in views" :key="item.key" :style="item.style">
<slot name="default" v-bind="{ item: item.item, index: item.index }" />