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

f-ui

v0.0.12

Published

Mobile UI elements for vue.js

Downloads

317

Readme

F-UI

开头

f-ui此项目是基于elemefemint-ui来搭建的项目,后续本人会持续的维护改进.

可能会出现的问题

f-ui尽可能使用yarn进行安装,npm下会出现一些问题。

技术体系

f-ui是基于vue2.0

* js方面采用`es6`格式书写
* css模块化用的是`postcss`
* 代码规范上采用`eleme`的配置`eslint-config-eleme`
* 打包方面采用基于`webpack`的`cooking`
* 采用`lerna`作为多npm包的发布方式
* 通过`sh`实现了一键化打包、部署、推送

如何添加组件?

  1. 在项目根目录下的packages里添加你想添加组件的目录,如果不需要支持js的方式进行调用,则只需要添加[name].vue文件即可,如果需要支持js,则还需要添加[name].js
  2. 在根目录下的components.json里写入这个组件

make命令的使用

  • make dev: 启动开发环境,会开启example的相关网站,对example进行开发
  • make pub: 发布f-ui的版本
  • make pub-all: 发布所有的组件版本
  • 更多命令请看makefile文件

Usage

导入全部组件的方式

import Vue from 'vue';
import F from 'f-ui';
import 'f-ui/lib/style.css';

Vue.use(F);

按需导入组件 babel-plugin-component

import { Cell, Checklist } from 'f-ui';

Vue.component(Cell.name, Cell);
Vue.component(Checklist.name, Checklist);

相当于

import Vue from 'vue';
import F from 'f-ui';
import 'f-ui/lib/style.css';

Vue.use(F);

// import specified component

import FRadio from 'f-ui/lib/radio';
import 'f-ui/lib/radio/style.css';

Vue.component(FRadio.name, MtRadio);

babel-plugin-component

  • Auto import css file
  • Modular import component

Installation

npm i babel-plugin-component -D

如何使用这个插件?

更改项目下的.babelrc文件

{
  "plugins": ["other-plugin", ["component", [
    { "libraryName": "f-ui", "style": true }
  ]]]
}