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

chlui

v0.0.10

Published

A Vue.js project

Downloads

4

Readme

chl-ui 参照element ui 写的vue ui 框架 小demo

使用

npm install chlui -s 

第一引入使用

引入全局样式

main.js文件    	import 'chlui/dist/chlui.css'

按需引入组件(已完成以下组件,文档尚未完成,参数可参考elementui,大同小异)

import {
	Input,
	Button, 
	Collapse, 
	Icon,
	Toast,
    TabBody,
    TabItem, 
    TabPane,
    Tab,
    Form,
    Formitem,
    Carousel,
    Carouselitem
} from 'chl-ui'
<template>
    <c-button type='info' @click="btn_click">按钮</c-button>
</template>
<script>
import {Button} from 'chlui'
    export default {
        name:"user",
        components:{
            'c-button':Button
        },
        methods:{
            btn_click(){
                
            }
        }
    }
</script>

组件设计的思想包括单数据流/ eventBus事件中心,核心动作是组件通信,会涉及到的vue api包括

  • $childrem : 获取当前组件子组件
  • $parent: 获取当前组件父组件
  • $refs: 获取当前组件某个组件或者dom
  • $el: 组件的根dom结点
  • provide && inject: 简单的来说就是在父组件中通过provider来提供变量,然后在子组件中通过inject来注入变量。 需要注意的是这里不论子组件有多深,只要调用了inject那么就可以注入provider中的数据。而不是局限于只能从当前父组件的prop属性来获取数据。
  • $on: 组件监听自定义事件
  • $emit: 组件触发自定义事件
  • .sync:语法糖,父组件监听到子组件修改props的意图后父组件修改传入的props

组件参数文档

1.Button

配置| | | | | | ---|---|---|---|---|---|--- type(string)类型 | primary | info | success | warning | danger | (Boolean)disabled禁用 | true / flase | loading(Boolean) | | loading | true / flase | icon(string)图标 | 看icon详情 | iconPosition(string)图标位置 | left / right |

2.input

配置| |
---|---|---|---|---|---|--- icon(string)图标 | | |
value(string)绑定值 | | disabled(Boolean)是否点击 | | readonly(Boolean只读 | true / flase | error(string)错误 | | placeholder(string)空白值| |

添加时间

Modal --2020-05-18