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

ysz-ui

v0.2.5

Published

这是一个基于`vite vue3`搭建的`PC端`组件库。它记录**日常开发**中遇到的需求组件,或是在**技术社区**中所遇到、值得去实现的组件。

Downloads

30

Readme

介绍

这是一个基于vite vue3搭建的PC端组件库。它记录日常开发中遇到的需求组件,或是在技术社区中所遇到、值得去实现的组件。

全局安装

安装命令: npm install ysz-ui -S

项目中引用(一次性引入)

main.js下,引入以下两行代码。

 // src/main.js
 import yszUI from "ysz-ui";
 import "ysz-ui/dist/style.css";
 import "ysz-ui/dist/iconfont.css";

 app.use(yszUI)

按需引入

  1. src目录下创建相关目录(如yszui)
  2. 在相关目录下,创建index.js
  3. index.js中引入需使用的组件。并以install作为函数表达式,作为对象的一员暴露出去。
  4. main.js中的Vue实例中使用它。

引用文件示例

// yszui/index.js
import { button, table } from 'ysz-ui'
const yszUI = {
  install: function (Vue) {
    Vue.use(button)
    Vue.use(table)
  }
}
export default yszUI

主文件示例

// src/main.js
import yszUI from "./yszui";
import { createApp} from "vue";
import App from "./App.vue";
const app = createApp(App);

app.use(yszUI);

项目地址

注意事项

该组件库仅用于个人学习,且处于开发阶段,切勿用于生产环境。