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

ea-up-common

v0.1.5

Published

EaWeb 公共组件UI模块

Readme

ea-up-common 公共模块


集成了管理页面、公共组件、Utils库、基础路由、基础store、框架布局的公共模板,各子项目都依赖于它。

可通过以下两种方式引用

  • 通过npm本地file引用的方式,将公共模块 ea-up-common 动态安装到各个子项目中, 进入到子项目的根目录运行 npm install ../ea-up-common,子项目的package.json文件中生成:"ea-up-common": "file:../ea-up-common"
    (需要确保ea-up-common和你的项目在统一层级路径下,修改ea-up-common中的相关代码,子项目会动态更新)
  • 通过npm包的形式引入,npm地址:https://www.npmjs.com/package/ea-up-common
    npm i ea-up-common
    通过命令:npm publish推送至npm库,需注意推送前先切换至官方镜像 npm config set registry https://registry.npmjs.org 查看npm当前镜像设置:npm config get registry

根目录下的js文件对外暴露集成的引用,主要包括:

| 名称 | 描述 | |---------------|---------------------------| | index.js | 组件及样式初始化 | | api.js | 项目公共API | | components.js | 项目公共组件 | | crud.js | 项目公用CRUD组件 | | crud.v2.js | 项目公用CRUD组件 2.0 (推荐) | | css.js | 项目公共CSS | | micro.js | 子项目公共微应用相关 | | mixins.js | 项目公共混入 | | routers.js | 项目公共路由数组 | | utils.js | 项目公共路由数组 | | setting.js | 项目公共参数配置 | | babel.js | Babel公共配置 |

使用方法 例:

import {XX} from 'ea-up-common/utils';

import {Echarts} from 'ea-up-common/components' ;

ea-up-common/src/components/EaLib 下封装了Ea开头的组件,大部分情况下可代替原先element ui中的相应组件,在项目中可直接使用 例:<ea-button/>