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

clock-ui

v0.0.5

Published

一个简单好用的ui

Readme

Clock-UI - 一个简单好用的 UI 框架

Build Status

npm

介绍

Clock UI 是一款简单好用的 UI 框架,它基于 Vue.js 搭建,提供了按钮、输入框、栅格布局、弹出信息、分组标签、气泡卡片、折叠面板等多个组件

这套框架在 PC 或 移动端平台均能很好地适配,并且提供了响应式布局的解决方案,在不同分辨率下均有良好的稳定性和视觉表现

您可以查看 GitHub 上的源代码,或者浏览一下我的 这篇博客,里面记录着框架的设计思路以及如何解决各种难题的

话不多说,你可以 直接体验一下这套框架,这篇文档会引导你一步一步地操作

安装

使用 npm 或 yarn 安装

你可以在使用 parcel、webpack、vue-cli 等工具搭建的项目中,通过 yarn 或 npm 来安装 Clock-UI, 我们推荐优先使用 yarn 安装

yarn add clock-ui
npm i clock-ui -S

按需引入

首先,在你的项目的入口文件中 (这可能是 main.js 或其他 JavaScript 文件) 引入 Vue、Clock-UI, 并按需引入相应的组件并注册

import {CloButton} from 'clock-ui'

// 全局注册
Vue.component(CloButton.name, CloButton)

// 在组件内注册
export default {
  component: {
    'c-button': CloButton
  }
}

注意: 弹出信息组件的引入方式有些不同,因为它是以插件方式提供的,详细用法请查阅相关章节

快速上手

当你安装好 Clock-UI 套件后,你可以在 CSS 中将 box-sizing 指定为 border-box, 这样可以带来更为一致的体验,因为 Clock-UI 的套件中所有的 CSS 样式都是基于 border-box 设计的

*{ box-sizing: border-box; }
*::before,*::after{ box-sizing: border-box; }

Hello World

<template>
  <div class="global">
    <c-popover position="left">
      <template v-slot:content>
        <div>Hellow World</div>
      </template>
      <c-button>click me</c-button>
    </c-popover>
  </div>
</template>

<script>
  import { CloButton, CloPopover } from 'clock-ui'

  export default {
    name: "app",
    components: {
      'c-button': CloButton,
      'c-popover': CloPopover
    }
  }
</script>

<style scoped>
  .global {
    margin: 100px;
  }
</style>

你可以在 clock-ui/src 文件夹中查看源代码,定制自己喜欢的样式