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

g-ui-plus

v0.6.8

Published

标准UI组件库

Downloads

286

Readme

快速上手

g-ui-plus 基于vue3 + vite5 + typeScript5 + Element-plus + Echarts5 封装的标准UI组件。

安装

yarn add g-ui-plus -S
或者
npm install g-ui-plus -S

全局使用

前提条件:使用项目必须全局注册 Element-plus 组件库

// main.ts
import { createApp } from "vue"
import App from "./App.vue"
import ElementPlus from "element-plus"
import "element-plus/dist/index.css"
// element-plus图标
import * as ElementPlusIconsVue from "@element-plus/icons-vue"
import GuiPlus from "g-ui-plus"
import "g-ui-plus/lib/style.css"
const app = createApp(App)
// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// 注册ElementPlus
app.use(ElementPlus)
// 注册GuiPlus
app.use(GuiPlus)
app.mount("#app")

按需引入

// 在main.ts中按下引入
import 'g-ui-plus/lib/style.css'
// 单个.vue文件引入
<script setup lang="ts">
  import {GButton} from "g-ui-plus"
</script>

组件清单

图表类

| 组件名 | 说明 | | -------------- | -------- | | GChart | 基础图表 | | GBar | 柱状图 | | GLine | 折线图 | | GFoldingPillar | 折柱图 | | GPie | 饼图 | | GRadar | 雷达图 | | GFunnel | 漏斗图 | | GMap | 地图 |

baiduMap类

| 组件名 | 说明 | | -------- | ------ | | GHeatMap | 热力图 |

非标类

| 组件名 | 说明 | | ---------------- | -------------------- | | GText | 文字(指标) | | GRingText | 文字(环图/进度条) | | GBox | 内容块 | | GRanking | 排行榜 | | GReserve | 预实对比(+达成率) | | GMilepost | 项目/分期计划/里程碑 | | GNodeachievement | 节点达成 | | GGridTable | 常用报表 |

标准UI类(Element-plus)

| 组件名 | 说明 | | ----------- | ---------- | | GRow | 布局 | | GButton | 按钮 | | GInput | 输入框 | | GRadio | 单选框 | | GCheckbox | 多选框 | | GDatePicker | 日期选择器 | | GForm | 表单 | | GSwitch | 开关 | | GUpload | 上传 | | GCard | 卡片 | | GCarousel | 跑马灯 | | GSelect | 选择器 | | GCascader | 级联选择器 | | GPagination | 分页 | | GProgress | 进度条 | | GTable | 表格 | | GTag | 标签 | | GTree | 树形控件 | | GTreeSelect | 树形选择 | | GTabs | 标签页 | | GDialog | 对话框 | | GTooltip | 文字提示 | | GWatermark | 水印 |

函数清单

| 函数名 | 说明 | 参数 | | -------- | ------------------------------------ | --------------------------------------------------------------------------------------- | | setTheme | 设置主题 | theme主题名称,isDark是否暗黑主题 | | Local | window.localStorage 浏览器永久缓存 | set 设置永久缓存,get 获取永久缓存,remove 移除永久缓存,clear 移除全部永久缓存 | | Session | window.sessionStorage 浏览器临时缓存 | set 设置临时缓存,get 获取临时缓存,remove 移除临时缓存,clear 移除全部临时缓存 |