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

asoui

v1.0.2

Published

It is a ui project basing on vue3 & vite & typescrpit & naiveUI & vxe-table

Downloads

2

Readme

asoui

概要

  • 基于Vue 3 + Typescript + Vite
  • 集成 pinia + naiveUI + vxtTable

使用

  • 集成 基础样式
  • 默认集成了 pinia、vxtTable
  • pinia、按需引入的 组件 、Plugins 直接从 asoui 中读取
  • utils 从 asoui/utils 中获得
  • 路由工具 从 asoui/routerUtils 中获得

初始化

import App from './App.vue'
import asoui, { AppProvider } from 'asoui'
import 'asoui/css/base.css'
import 'asoui/css/plugins.scss'
import 'asoui/css/transition.css'

createApp(AppProvider).mount('#appProvider', true);
createApp(App).use(asoui).mount('#app', true);

组件调用


import { post,pop, popType } from "asoui";

...

import { post, SoGridProps } from 'asoui';

包括组件

  • AppProvider : 基础驱动
  • Authorized : 权限组件
  • Chart : 可视化 echarts包装
  • Icon : icon组件
  • SoGrid : grid组件
  • Row : 行组件
  • SoForm : 表单组件
  • Item : 表单项组件
  • Txt : 输入框组件
  • Num : 数值组件
  • CityDrop : 省市下拉框
  • DropGrid : 下拉 grid
  • Editor : UeEditor,没有集成资源
  • Submit : 提交按钮组件
  • Btn : 按钮
  • Iframe : Iframe页面组件
  • LoadingComponent : Loading页面组件

Plugins

  • http axios分装,http/get/post 方法
  • vxtTable 配置及扩展
  • 权限指令
  • pop组件封装
  • 表单验证封装
  • 其他普通方法
  • globalProperties : 绑定 $http / $get / $post / $getParent / $getPage / $pop 到全局this上

Utils工具方法

  • auth 权限函数
  • calculate 增强版数学计算
  • db 本地存储工具函数
  • debounce 防抖函数
  • fmtData 格式化数据
  • fmtDate 格式化日期
  • fmtNumber 格式化数值
  • fmtString 格式化字符串
  • getComponentName 获取组件名称
  • getIdcardInfo 获取身份证信息
  • getScreenType 获取屏幕类型
  • is 类型判断函数
  • md5 md5加密处理
  • uuid 生成uuid函数

路由工具函数