
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
@fekit/lazyload
Advanced tools
页面滚动时监听指定图片到指定位置时等懒加载,配合 @fekit/inview 可以实现超棒的用户体验!

https://plugins.fekit.cn/@fekit/lazyload/#/demo
npm i @fekit/lazyload
or
yarn add @fekit/lazyload
<template>
<div class="scroll flex-block nt-ms nx-sl" mcui-scroll=":y" ref="demoRef" style="overflow-y: scroll">
<div class="virtual-home-footer">
<ul mcui-cards="@a" mcui-row="space mob-24 pad-12 dpc-8">
<li v-for="(item, idx) in list" :key="idx">
<div>
<div mcui-cover="" class="pr">
<div class="full n-ms b-solid b-line b-xs bg-weak">
<img class="full lazyload" v-if="item.type === 'img'" src="" :data-src="item.path + '&id' + idx" />
<iframe class="full lazyload" v-if="item.type === 'web'" src="" :data-src="item.path" frameborder="0"></iframe>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
</template>
<script setup lang="ts">
import { onMounted, ref } from 'vue';
import LazyLoad from '@/npm/src';
import { nextTick } from 'vue';
const list = [
{
type: 'img',
path: 'https://ai.fekit.cn/gan/image?s=512',
},
{
type: 'img',
path: 'https://ai.fekit.cn/gan/image?s=512',
},
{
type: 'img',
path: 'https://ai.fekit.cn/gan/image?s=512',
},
{
type: 'img',
path: 'https://ai.fekit.cn/gan/image?s=512',
},
{
type: 'img',
path: 'https://ai.fekit.cn/gan/image?s=512',
},
{
type: 'img',
path: 'https://ai.fekit.cn/gan/image?s=512',
},
{
type: 'img',
path: 'https://ai.fekit.cn/gan/image?s=512',
},
{
type: 'img',
path: 'https://ai.fekit.cn/gan/image?s=512',
},
{
type: 'img',
path: 'https://ai.fekit.cn/gan/image?s=512',
},
{
type: 'img',
path: 'https://ai.fekit.cn/gan/image?s=512',
},
{
type: 'img',
path: 'https://ai.fekit.cn/gan/image?s=512',
},
{
type: 'img',
path: 'https://ai.fekit.cn/gan/image?s=512',
},
{
type: 'img',
path: 'https://ai.fekit.cn/gan/image?s=512',
},
{
type: 'img',
path: 'https://ai.fekit.cn/gan/image?s=512',
},
{
type: 'img',
path: 'https://ai.fekit.cn/gan/image?s=512',
},
{
type: 'web',
path: 'https://baidu.com',
},
{
type: 'web',
path: 'https://taobao.com',
},
];
const ex: any = ref(null);
onMounted(() => {
nextTick(() => {
ex.value = new LazyLoad({ el: '.lazyload', area: '.scroll' });
});
});
</script>
v1.3.3
整理文档
v1.1.0
实现了核心功能
FAQs
页面滚动时监听指定图片到指定位置时等懒加载,配合 @fekit/inview 可以实现超棒的用户体验!
We found that @fekit/lazyload demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.