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

@94ai-plus/nf-radio-group

v1.0.0

Published

Vue 3 single/multiple segmented radio group with Element Plus tooltips

Readme

@94ai-plus/nf-radio-group

HomePage

官网 · 项目仓库

Vue 3 按钮选择器,支持单选/多选、局部/全局禁用、三种尺寸、双主题和 Element Plus Tooltip。

import NfRadioGroup from '@94ai-plus/nf-radio-group'
import 'element-plus/dist/index.css'
import '@94ai-plus/nf-theme-chalk/nf-radio-group.css'

app.use(NfRadioGroup)
<script setup>
import { ref } from 'vue'
const value = ref(1)
const groups = [{ name: '今日', value: 1 }, { name: '按周', value: 2, tip: '最近四周' }]
</script>

<template>
  <nf-radio-group v-model:value="value" :groups="groups" @change="({ index, value }) => console.log(index, value)" />
</template>

保留旧 16 个属性、update:value、change({ index, value }) 和 content 插槽。Vue 2 的 :value.sync 改为 v-model:value;亦支持普通 v-model(modelValue 优先),同时发送两种更新事件。多选值使用数组,change 的 value 始终是本次点击项,不是整个数组;组件为受控组件,不修改传入数组。content 插槽新增 { item, index } 参数,仍可无参数使用。

openDelay 映射 showAfter,visibleArrow 映射 showArrow;旧 hideAfter 保留自动关闭语义,映射 autoClose(从显示起计时),鼠标移出关闭延时为 200ms。popperOptions 默认仍为 { boundariesElement: 'body', gpuAcceleration: false },这两项适配为 Popper 2 modifiers,显式现代 modifiers 优先;其他 Popper 1 配置请改写为 Popper 2 配置。

修复禁用项仍可点击、multiple 未传数组时异常/字符串匹配的问题。选项使用原生按钮,支持 Enter/空格;方向键和 Home/End 跳过禁用项(单选同时选中,多选仅移动焦点)。业务名称和提示直接使用输入内容,不自动翻译。

支持 SSR:首屏保留原生按钮,挂载后再创建 Tooltip 浮层,避免静态文档未注入 Teleport 目标内容导致水合异常。尊重应用提供的 Element Plus ID 配置,未提供时使用 Vue 3.5 useId 派生当前子树的稳定配置。

全局默认配置

通过总包的 NfConfigProvider 的 nfRadioGroup 配置项设置默认属性。支持响应式更新和嵌套继承,优先级为组件显式属性 → 最近一层配置 → 外层配置 → 组件原有默认值。undefined 继续继承,false、0 和空字符串保留;按属性合并,数组、对象和函数整体替换,不深度合并。初始化选项仍按组件原有生命周期生效,事件、插槽和原生 attributes 在组件上设置,必填业务数据仍需显式提供。详见全局配置文档。

Contributors

感谢每一位参与项目建设的贡献者!

最近三个月的贡献者气泡图

最近三个月的贡献者头像墙(使用姓名首字母)

以上为随本版本发布的贡献者统计快照,统计日期与分支见图中说明;仅统计 Git 非合并提交,头像使用姓名首字母,不是 GitLab 个人照片。

License

本项目采用 MIT License 开源许可。

Copyright (c) 2026-present Jiahe Zou, 94 Intelligent Technology Co., Ltd.