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 🙏

© 2025 – Pkg Stats / Ryan Hefner

prove-ui

v1.0.1

Published

An ui for vue.js

Downloads

11

Readme

prove-ui

An ui depend on vue

兼容性

  • 支持所有的现代浏览器和 IE9+。

  • 对于 IE 系列浏览器,需要提供 babel-polyfill 的支持。

快速上手

你可以引入整个 prove-ui,或是根据需要仅引入部分组件。

完整引入 prove-ui

# vue项目中添加依赖
yarn add prove-ui
// 在入口文件中使用
import Vue from 'vue'
import ProUi from 'prove-ui'
import 'prove-ui/lib/theme-default/index.css'

Vue.use(ProUi)

那么接下来即可在 Vue 挂载的节点下使用该 ui 组件了

按需引入(推荐)

目前按需引入不能和其他 ui 框架共存

# vue项目中添加依赖
yarn add prove-ui

# 添加 babel-plugin-component
yarn add babel-plugin-component -D

安装完 prove-uibabel-plugin-component 后,在.babelrc中添加配置:

{
  plugins: [
    [
      'component',
      {
        libraryName: 'prove-ui',
        styleLibraryName: 'theme-default'
      }
    ]
  ]
}

接下来,如果你只希望引入部分组件,比如 ButtonSelect,那么需要在 main.js 中写入以下内容:

import Vue from 'vue'
import { Button, Select } from 'prove-ui'
import App from './App.vue'

Vue.use(Button)
Vue.use(Select)

new Vue({
  el: '#app',
  render: h => h(App)
})

使用姿势

引入 ui 组件后并通过vue注册组件后,在vue挂载的节点下即可使用组件。 组件以pr-为前缀的命名方式。

// main.js
import Vue from 'vue'
import ProUi from 'prove-ui'
import 'prove-ui/lib/theme-default/index.css'

import App fromm './App.vue'
// 全局注册
Vue.use(ProUi)

new Vue({
  el: '#app',
  render: h => h(App)
})
// App.vue
<template>
  <div id="app">
    <pr-button type="primary">按钮</pr-button>
    <pr-input v-model="value" placeholder="请输入..." />
  </div>
</template>