
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@cyf-super/lazy-image
Advanced tools
npm i @cyf-super/react-lazy-image
或
yarn add @cyf-super/react-lazy-image
import { LazyImage } from '@cyf-super/react-lazy-image'
const myImg = () => {
return (
<LazyImage
placeholderSrc="https://images.pexels.com/photos/11586556/pexels-photo-11586556.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"
placeholderStyle={{ width: "100%" }}
placeholderClassName="placeholderClassName"
src={photo.download_url}
alt="myImg"
className="imageClassName"
style={{ width: "100%" }}
key={photo.id }
/>
)
}
placeholderSrc:默认背景图
placeholderStyle:背景图样式
placeholderClassName:背景图class类
alt:背景图别名
src:真实图片路径
imageClassName:真实图片class类
style:行内样式
安装依赖
yarn install
运行例子
yarn start
构建
yarn build
FAQs
image-lazy
The npm package @cyf-super/lazy-image receives a total of 5 weekly downloads. As such, @cyf-super/lazy-image popularity was classified as not popular.
We found that @cyf-super/lazy-image demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.