
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@heisea/affix
Advanced tools
将页面元素钉在可视范围。
v0.0.1
进行开发
npm start
打包出生产版本 commonjs 版本
npm run build:common
npm version <newversion> | major | minor | patch]
npm publish
npm i @heisea/affix
Vue.use(Affix);
1.当组件使用
<template>
<bk-affix :offset-top="top" /></bk-affix>
</template>
<script>
export default {
data() {
return {
top: 10
};
}
};
</script>
| 属性名 | 类型 | 说明 | 默认值 |
|---|---|---|---|
| offsetBottom | number | 距离窗口底部达到指定偏移量后触发 | |
| offsetTop | number | 距离窗口顶部达到指定偏移量后触发 | |
| target | () => HTMLElement | 设置 Affix 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数 | () => HTMLElement |
| 事件名称 | 描述 |
|---|---|
| change | 固定状态改变时触发的回调函数 |
FAQs
The npm package @heisea/affix receives a total of 1 weekly downloads. As such, @heisea/affix popularity was classified as not popular.
We found that @heisea/affix 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
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

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.