@spscommerce/positioning
Service for positioning dropdown/popup elements.
Installation
npm install --save @spscommerce/positioning
Peer Dependencies
| Package | Version |
|---|---|
| @spscommerce/utils | ^1.1.0 |
| eventemitter3 | ^3.1.0 |
| intersection-observer | ^0.5.1 |
Service for positioning dropdown/popup elements.
Service for positioning dropdown/popup elements.
npm install --save @spscommerce/positioning
| Package | Version |
|---|---|
| @spscommerce/utils | ^1.1.0 |
| eventemitter3 | ^3.1.0 |
| intersection-observer | ^0.5.1 |
@spscommerce/positioning 共发布 903 个版本,首次发布于 2020/07/11;过去 12 个月发布了 137 个版本。
| 版本 | 发布日期 | 距今 |
|---|---|---|
8.56.21latest | 2026/11/02 | 1 天前 |
0.0.0-20261102.125400-5ba06bda0rc | 2026/11/02 | 1 天前 |
0.0.0-20261029.210602-4f1f878c5 | 2026/10/30 | 4 天前 |
0.0.0-20261028.134446-0e0de448b | 2026/10/28 | 5 天前 |
8.56.20 | 2026/10/28 | 6 天前 |
0.0.0-20261028.060008-920d0837e | 2026/10/28 | 6 天前 |
用于定位下拉/弹出元素的服务。
在项目目录运行 npm install @spscommerce/positioning,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@spscommerce/utils(^7.0.0 || ^8.0.0 || ^9.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。
支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。
同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。
@spscommerce/positioning 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。
最新版本 8.56.21 发布于 2026/11/02(1 天前);至今共发布 903 个版本,其中过去 12 个月发布了 137 个;首次发布于 2020/07/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。