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

ft-comps2

v1.0.13

Published

``` yarn install ```

Downloads

3

Readme

ft-comps-1

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Run your unit tests

yarn test:unit

Lints and fixes files

yarn lint

开发流程

在 src-packages 下创建目录,开发新的控件

包含一个 index.js 文件和 src 目录,index.js 负责添加 install 方法,格式固定, src 目录下负责开发

在 src-packages-index 中添加新建的控件,批量添加 install 方法

修改 package.json 中的 version 版本号

README.md 添加控件信息

yarn lib 打包命令

npm publish 发布版本

控件信息

selectCheckbox

使用

<ft-select-checkbox :list='[]' :filterList='[]' @change='handleChange'></ft-select-checkbox>
<!-- list: 展示的数组, filterList: 选中的数组, change 参数(filterList: 选中的数组)  -->

ft-nav 单层侧边导航

使用


<ft-nav :list='navList' :defaultActive="defaultActive" @change="handleChange"/>
<!-- list: 导航数组, defaultActive 当前导航, change 参数(val: 选中的导航)  -->
格式:
list = [
    {
        lable:'',
        value:'',
        icon:'',
    }
]
defaultActive:String

ft-multinav 二层侧边导航 [1.1.xxx]

使用


<ft-multinav :list='navList' :defaultActive="defaultActive" @change="handleChange" :width="width" :left_width="left_width"/>
<!-- list: 导航数组, defaultActive 当前导航id, change 参数(val: 选中的导航),width 导航总宽度,left_width 导航左侧一级导航宽度(右侧宽度为width-left_width)  -->
格式:
list = [
    {
        lable:'',
        value:'',
        icon:'',
        children: [
            { label: "", routeId: "" },
          ]
    }
]
defaultActive:String
width:Number
left_width:Number

版本更新信息

1.0.xxx 
    selectCheckbox          -- 下拉多选框
    ft-nav                  -- 左侧单层导航
1.1.xxx 
    ft-multinav             -- 左侧二层导航