npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

asai-vue-host-popbox

v0.2.10

Published

asai for you

Readme

asai-vue-host-popbox — 弹窗/弹出层系统

包信息

| 建议 npm 名 | 入口文件 | $fn / 注入键 | 类型 | |------------|---------|-------------|------| | @estun/asai-vue-host-popbox | src/components/index.ts | —($global.pop 状态) | Host |

概述

asai-vue-host-popbox轻量级弹窗系统,提供模态弹窗、侧边栏、确认框、密码确认与消息队列,状态集中管理于 $global.pop

集成方式

// monorepo — webclient/src/utils/index.ts
import AsaiVueHostPopbox from '../plugs/asai-vue-host-popbox/src/components/index';
// import '/node_modules/asai-vue-host-popbox/dist/asai-vue-host-popbox.css';
// npm
// import AsaiVueHostPopbox from '@estun/asai-vue-host-popbox';

app.use(AsaiVueHostPopbox, lib);
$global.pop['mypop'].stat = 1; // 打开
$global.msg.fn({ type: 'ok', con: '操作成功', time: 3000 });

独立性约束

  • 禁止 cross-import 其它 plugs/*
  • 拖拽依赖 v-drag 指令(host-directives),通过模板/runtime 使用,不 import 指令包源码。

主要 API / 导出

| 组件 | 说明 | |------|------| | PopBox | 模态弹窗(mask + drag bar + slot) | | PopMod | 侧边栏面板 | | PopBoxConfirm / PopBoxConfirmPass | 确认 / 密码确认 | | PopMsgOneByOne | 消息队列 | | PopTipConfirm | 提示确认(插槽) |

控制: $global.pop[id].stat(0=关, 1=开)、.fn 确认回调、.passconfirm 密码。

性能说明

  • 组件 lazy 注册;弹窗内容 <KeepAlive> 缓存状态。
  • onUnmounted 自动清理 $global.pop[id],避免泄漏。

peerDependencies 建议

{
  "peerDependencies": {
    "vue": "^3.4.0",
    "@estun/asai-vue-host": "^1.0.0",
    "@estun/asai-vue-host-directives": "^1.0.0"
  }
}

PopBox Props

| 参数 | 说明 | |------|------| | ujt | 全局上下文 | | id | 弹窗唯一标识 | | full | 全屏模式 | | maskstyle / popstyle | 样式 |

PopMod 默认样式

右侧 180px 面板,点击遮罩关闭(stat = 0)。

PopMsgOneByOne

$global.msg.fn({ type: 'ok', con: '内容', tit: '标题', time: 3000 });
  • 启动从 localStorage 恢复;去重;最多缓存 100 条
  • pagehide / visibilitychange 强制 flush

文件结构

asai-vue-host-popbox/
├── src/components/asui/pop/
│   ├── PopBox.vue / PopMod.vue
│   └── components/PopBoxMask.vue …
└── README.md