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

zc-ui-component

v1.6.5

Published

zc-ui-component

Downloads

68

Readme

ZC UI

Github

组件列表

基础组件

表单组件

数据展示

反馈组件

安装

npm install zc-ui-component

使用

import { createApp } from 'vue'
import App from './App.vue'
import zcUIComponent from 'zc-ui-component'
import 'zc-ui-component/dist/zc-ui-component.css'

const app = createApp(App)
app.use(zcUIComponent)
app.mount('#app')

按需引入

import { createApp } from 'vue'
import App from './App.vue'
import { zcButton, zcInput } from 'zc-ui-component'
import 'zc-ui-component/dist/zc-ui-component.css'

const app = createApp(App)
app.component('zc-button', zcButton)
app.component('zc-input', zcInput)
app.mount('#app')

注册全局组件

import zcUIComponent, {
  zcMessage,
  zcToast
} from 'zc-ui-component'
import 'zc-ui-component/dist/zc-ui-component.css'

const app = createApp(App).use(zcUIComponent)

app.config.globalProperties.$toast = zcToast
app.config.globalProperties.$message = zcMessage

app.mount('#app')

// 在组件中使用
// const { proxy } = getCurrentInstance()
// proxy.$toast('这是一个提示')
// proxy.$message('这是一个消息')

注册指令

import zcUIComponent, {
  loadingDirective,
} from 'zc-ui-component'
import 'zc-ui-component/dist/zc-ui-component.css'

const app = createApp(App).use(zcUIComponent)

app.directive('loading', loadingDirective)
app.mount('#app')


// 在组件中使用
// <div v-loading="true">加载中的内容</div>

主题

:root {
  --main-color: #29996c;
  --main-font-color: #555987;
  --main-danger-color: #f52828;
  --main-warning-color: #ff8a00;
  --main-warning-icon-color: #f39159;
  --main-success-color: #23c987;
}

更新日志

  • 1.6.5

    • 增加select高度属性
    • 修复存在tip时input的高度bug
    • 修复pagination在total为0时的页码bug
  • 1.6.4

    • 整合组组件
    • 添加radio、switch、datepicker、tree、select、treeSelect组件
    • 重构scroll、tooltip、table组件
    • checkbox添加半选状态,兼容tree组件
  • 1.6.3

    • 添加formitem组件label文字对齐属性
    • 为messagebox添加可选的输入框,参数继承input,通过beforeclose: instance 返回值
    • 优化部分报错
  • 1.6.1

    • 对table-body高度调整进行优化
  • 1.6.0

    • 覆写zc-input单词模式的粘贴功能
  • 1.5.16

    • 全局loading可正确被卸载
  • 1.5.15

    • 单词计数逻辑修改
  • 1.5.14

    • 添加 Skeleton 骨架屏组件和 SkeletonItem 骨架元素组件
  • 1.5.13

    • 字体继承
  • 1.5.8

    • 修改loading加载方式
    • 调整button配置,添加type
    • 修复宽度充足时table列宽分配错误的问题
    • 添加image组件
  • 1.5.7

    • 处理Unable to preventDefault错误
  • 1.5.6

    • 尝试处理ssg时报错
  • 1.5.5

    • 调整dialog组件关闭按钮位置
    • input优化,替换可见图标
  • 1.5.4

    • 修复Form组件submit事件不触发的问题
  • 1.5.3

    • 对1.5.0版本trigger不触发change校验的问题补充修复
    • 添加Form组件enterSubmit属性,实现按下Enter键提交表单
  • 1.5.2

    • 修复Table表头滚动问题
    • 优化Dialog组件动画
    • 修复Form表单项禁用问题
  • 1.5.1 移除滚动组件无用属性

  • 1.5.0 修复表单验证问题

    • trigger设置为change时输入框没有正确触发验证
    • rule类型为对象时没有正确触发验证