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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@skit/x.naive-ui

v0.18.0

Published

一个对 Naive-UI 组件库的扩展,使 DataTable/Dropdown/Menu/Select/Tree 等组件支持插槽模板式的写法。An extension to Naive-UI component library, that enables slots and template style API for DataTable/Dropdown/Menu/Select/Tree.

Downloads

79

Readme

NPM Version NPM Download License


简介

Naive-UI 是一个流行的 Vue 3 组件库。

官方团队出于可维护性的考虑,没有提供 DataTableDropdownMenuSelectCascaderTreeTreeSelect 等组件的 Slot 插槽或 Template 模板式的写法支持。

以下是 GitHub 上的一些相关 Issues:

本项目旨在为上述问题提供解决方案。

🚀 已加入 Awesome Naive-UI 系列。


特性

  • 与 Naive-UI 组件几乎完全一致的 API(最新适配版本:v2.40.1)。只需在原来的组件名前增加 x- 前缀(例如:<n-data-table><x-n-data-table>)。
  • 配合 vue-tsc,在模板中使用插槽也可享受到 TypeScript 的类型约束。
  • DataTable:提供了列头单元格展开行的作用域插槽写法支持。
  • DataTable:提供了总结栏的模板写法支持(即在模板中定义 columnssummary prop)。
  • Dropdown:提供了菜单项图标的作用域插槽写法支持。
  • Dropdown:提供了菜单项菜单分组的模板写法支持(即在模板中定义 options prop)。
  • Menu:提供了菜单项的模板写法支持(即在模板中定义 options prop)。
  • Menu:提供了菜单项图标的作用域插槽写法支持。
  • Select:提供了选项选项组的模板写法支持(即在模板中定义 options prop)。
  • Select:提供了选项标签的作用域插槽写法支持。
  • Popselect:提供了选项选项组的模板写法支持(即在模板中定义 options prop)。
  • Popselect:提供了选项的作用域插槽写法支持。
  • Cascader:提供了选项的作用域插槽写法支持。
  • Tree:提供了数据项开关图标的作用域插槽写法支持。
  • TreeSelect:提供了数据项标签开关图标的作用域插槽写法支持。
  • Button:提供了当仅有图标时显示为正方形的样式效果。

使用手册

点此查看


示例项目

你可以运行 Demo 来查看更多内容。

> pnpm install    # 安装依赖
> pnpm run build  # 构建项目
> pnpm run demo   # 运行示例,访问 http://localhost:8888/