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 🙏

© 2024 – Pkg Stats / Ryan Hefner

ppui2023

v1.0.4

Published

ui components library for vue3

Downloads

1

Readme

PP-UI

特性

  • 使用Vue3进行封装

支持环境

  • Vue 3 (3.2.45)

| Google Chrome | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | 109.0.5414.120 (正式版本)(64 位) |

安装

使用 npm 安装

$ npm install ppui2023 --save

在main.js中引入

import { createApp } from 'vue'
import App from './App.vue'
import ppui from "ppui2023"
import 'ppui2023/dist/ppui2023.css'
const app  = createApp(App)
app.use(ppui)
app.mount('#app')

如果你的网络环境不佳,推荐使用 cnpm

链接

组件总览


1. button 按钮

基本使用

<template>
    <pp-button type="primary" @click="clickHandle">
        click me
    <pp-button/>
<template/>
function clickHandle () {
    console.log('clicked')
}

配合字体图标库进行使用

关于图标的使用可以参考下方图标模块
<template>
    <pp-button type="success" icon="pp-icon-check">
        click me
    </pp-button>
<template/>

API

通过设置 Button 的属性来产生不同的按钮样式,
按钮的属性说明如下:

| 属性 | 说明 | 类型 | 默认值 | | :------: | :----------------: | :--------------------------------------------------------------------------: | :-----: | | type | 设置按钮类型 | primary ghost dashed link text default | default | | icon | 设置按钮的图标类型 | Class | - | | plain | 朴素模式 | Boolean | false | | round | 设置圆形按钮 | Boolean | false | | disabled | 禁用 | Boolean | false | | loading | 加载中(暂未完成) | Boolean | false |


2.字体图标

一共收录了525个图标基本满足各方面需求
字体图标库解决方案是使用了iconfont的 antdesign整套字体标库 

基本使用

例如使用这个对勾图标:

<template>
    <i class="pp-icon-check"></i>
<template/>

具体所有的图标类名以及展示请访问: 传送门

power by


3. dialog 对话框

利用vue3新特性v-model进行双向数据绑定

Alt

基本使用

<template>
    <pp-button type="success" @click="showDialog">
        show dialog
    </pp-button>
    <!-- 请注意:v-model之后需要写上visible用以通知组件内部 -->
    <pp-dialog v-model:visible="show" title="标题">
        hi,我是一段内容
  </pp-dialog>
<template/>
<script setup>
import { ref } from "vue";

let show = ref(true);

function showDialog() {
  show.value = !show.value;
}

</script>

如果对v-model有疑问请点击:传送门

API

| 属性 | 说明 | 类型 | 默认值 | | :-----: | :----------------: | :-------------------------------------: | :----: | | title | 设置对话框的标题 | String | - | | visible | 显示&隐藏 | Boolean | false | | width | 设置对话框宽度 | String | "50%" | | top | 设置距离顶部的高度 | String | “15vh” |


4. input 输入框


最终解释权归作者所有