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

fh-ui

v1.0.11

Published

Vue + ElementUi后台管理系统通用组件

Downloads

8

Readme

fh-ui

Vue + ElementUi 后台管理系统通用组件 参考文档

What is it

  • 封装常用业务组件,eg:通用查询、表格、各种按钮操作...
  • 使开发人员更关注数据交互,不必在意通用组件的封装
  • 持续完善中...

Features

  • 通用查询组件优化
  • 通用操作按钮组件
  • 脚手架?
  • more...

Q&A

  • 工程代码太混乱?

不要在意细节~ -_-!! 刚起步,待优化的点还很多~~

快速开始

使用之前

有必要了解Vue基础知识哦,假设你已经用过Vue,并掌握如下内容。

  • Vue组件
  • 单文件组件
  • props
  • slot
  • events $emit @click

fh-ui是基于element-ui进行的开发,所以你需要提前安装element-ui,安装方法请参照element-ui官方文档

引入 fh-ui

一般在 webpack 入口页面 main.js 中如下配置:

import Vue from 'vue'
import Element from 'element-ui';
import FHUi from 'fh-ui';
import 'element-ui/lib/theme-chalk/index.css';
import 'fh-ui/lib/static/style.min.css';
import App from './App';
import router from './router';

Vue.use(Element);
Vue.use(FHUi);

Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
});

按需引入

由于babel策略调整,暂时没有实现按需引入的方式,后期做好调研之后会进行按需引入的尝试。

特别提醒

你需要导入fh-ui的样式,即在 main.js 或根组件执行 import fh-ui/lib/static/style.min.css,该文件包含了对element-ui的自定义样式优化,所以请保证它是在引入element-ui的样式文件之后引入的。