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

@micl/ui

v0.0.6

Published

一组基于 **Vue 3 + TypeScript** 的通用 UI 组件,适用于后台管理系统与业务中台,强调:

Readme

@micl/ui Vue UI Components

一组基于 Vue 3 + TypeScript 的通用 UI 组件,适用于后台管理系统与业务中台,强调:

  • 简洁 API
  • 强类型声明(*.d.ts
  • 事件驱动
  • 插槽可扩展

📦 导出组件

import {
  MiResponsiveTable,
  MiPagination,
  MiInput,
  MiTextarea
} from '@micl/ui';

📄 MiPagination 分页组件

Props

| 参数 | 类型 | 说明 | |----|----|----| | total | number | 数据总数 | | totalPages | number | 总页数 | | currentPage | number | 当前页 | | pageSize | number | 每页条数 | | pageSizeOptions | unknown[] | 可选分页大小 | | visibleRange | number | 显示页码范围 |

Events

| 事件名 | 说明 | |----|----| | page-change | 页码变更 | | page-size-change | 每页条数变更 |

使用示例

<MiPagination
  :total="100"
  :current-page="1"
  :page-size="10"
  @page-change="onPageChange"
/>

📊 MiResponsiveTable 响应式表格

支持:

  • 响应式布局
  • 动态列插槽
  • 勾选模式
  • 无限滚动

Props

| 参数 | 类型 | 说明 | |----|----|----| | data | unknown[] | 表格数据 | | headers | unknown[] | 表头配置 | | noMore | boolean | 是否无更多数据 | | checkable | boolean | 是否可勾选 | | infiniteScroll | boolean | 是否启用无限滚动 |

Events

| 事件名 | 说明 | |----|----| | selected | 行选择事件 | | load-more | 触发加载更多 |

插槽

动态列插槽:

<template #col_name="{ row, rowIndex }">
  {{ row.name }}
</template>

✏️ MiInput 输入框

Props

| 参数 | 类型 | 说明 | |----|----|----| | modelValue | string | 绑定值 | | size | string | 尺寸 | | placeholder | string | 占位文本 |

Events

| 事件名 | 说明 | |----|----| | update:modelValue | 值变更 |

示例

<MiInput v-model="username" placeholder="请输入用户名" />

📝 MiTextarea 多行文本

Props

| 参数 | 类型 | 说明 | |----|----|----| | modelValue | string | 绑定值 | | rows | number | 行数 | | maxlength | string | number | 最大长度 | | showWordLimit | boolean | 是否显示字数限制 |

Events

| 事件名 | 说明 | |----|----|----| | update:modelValue | 内容变更 |

示例

<MiTextarea
  v-model="content"
  :rows="4"
  show-word-limit
/>

✅ 适用场景

  • 后台管理系统
  • 表格 + 分页列表页
  • 表单输入场景
  • 响应式 Web 应用

📄 License

MIT