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

@melt-js/comps-vue2-ele

v2026.11.8-2

Published

可供`hel-micro`消费的远程vue组件示例

Readme

远程vue组件示例

可供hel-micro消费的远程vue组件示例

导出组件

| 导出 | 说明 | | --- | --- | | App / HelloWorld | 模板自带的示例组件 | | TierRanking | 从夯到拉排行榜(拖拽排序、上传图片、IndexedDB 持久化、导出图片) | | TcClamp | 多行文本截断;原实现 el-tooltip / tc-button / resize-detector 分别换成内置 tooltip(深色气泡 + 箭头,支持 placement / tip-width)/ 原生 button / ResizeObserver | | TcBlock | 面板容器:title / rightTool 插槽、最小化、浏览器全屏、shadow | | TcMore | 折叠容器:title / tool 插槽,grid 过渡展开 | | TcIcon | 图标包装:name 透传任意图标类名,glyph 直接写字形 | | TcButton / TcButtonGroup | 按钮 / 按钮组,保留 forceEnabled + TcDialog 强制启用逻辑 | | TcSelect | 下拉选择:原生 select,providers = { id, text, value } | | TcRadio / TcRadioButton / TcRadioGroup | 单选 / 分段按钮 / 单选组,原生 radio 实现 | | TcDialog | 弹窗:visible.sync、title、width / height、loading、footer 插槽、标题栏拖拽(draggable 默认开),事件与 el-dialog 对齐 | | TcLoading | 19 种纯 CSS loading(loader-01 ~ loader-19) | | TcLetterAvatar | 字母头像(username / initials / size / rounded / src) |

以上 Tc* 组件均提取自 think-vuele 的 packages/*,不依赖 element-ui:原来的 el-button / el-select / el-radio-* / el-dialog / el-collapse 等全部换成原生实现,el-icon-* 换成内置字符 / 图标类名。与上游行为的差异见各组件源码头部注释。

消费方用法见 ../demo-vue2-ele:每个组件一个导航 tab(#/tc-clamp、#/tc-block、#/tc-more、#/tc-icon、#/tc-button、#/tc-select、#/tc-radio、#/tc-dialog、#/tc-loading、#/tc-letter-avatar),另有「远程组件」「排行榜」示例。

发布远程组件

  1. 先修改 package.json 里的 version 字段
  2. 在 comps-vue2-ele 目录执行:
pnpm publish:stage

该命令等价于 pnpm run build && npx -y npm@11 stage publish,即先构建产物(hel_dist / hel_proxy / hel_proxy_es)再上传到 npm 的暂存区(staged publish)。

  1. 到 npmjs.com 的包页面(或 Access Tokens 下方的 staged 列表)完成 2FA 审批,审批通过后版本才正式上线。

仓库里的 .npmrc 默认 registry 是 npmmirror 镜像(只读),发布目标由 package.json 的 publishConfig.registry 指定为 https://registry.npmjs.org。