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

vue-lone-comments

v2.0.0

Published

![输入图片说明](https://static.oschina.net/uploads/img/201904/12181253_O0Xi.png "在这里输入图片标题") ####3.chart包:存放各种图表相关的组件,条形图柱形图折线图等等 具体用法参考首页 ####4.countDown包:一个倒计时组件,用法参考home页,简单描述,该组件有3个属性, target(时间/毫秒数)必填, format(function,该方法接收一个毫秒数的参数,用于格式化显示当前倒计时时间)非必填, onEn

Downloads

2

Readme

####1._util包:存放自定义函数 详细见代码注释 ####2.AvatarList:显示头像群并支持tip,用法参考src\views\Home.vue(如下图) 输入图片说明 ####3.chart包:存放各种图表相关的组件,条形图柱形图折线图等等 具体用法参考首页 ####4.countDown包:一个倒计时组件,用法参考home页,简单描述,该组件有3个属性, target(时间/毫秒数)必填, format(function,该方法接收一个毫秒数的参数,用于格式化显示当前倒计时时间)非必填, onEnd倒计时结束触发函数 输入图片说明 ####5.dict包:数据字典专用,用法参考文件夹下readme文件 ####6.Ellipsis包:字符串截取组件,可以指定字符串的显示长度,并将全部内容显示到tip中,简单使用参考src\views\system\PermissionList.vue ####7.jeecg包:该包下自定义了很多列表/表单中用到的组件 参考包下readme文件 ####8.jeecgbiz包:该包下定义了一些业务相关的组件,比如选择用户弹框,根据部门选择用户等等 ####9.layouts+page包:系统页面布局相关组件,比如登陆进去之后页面顶部显示什么,底部显示什么,菜单点击触发多个tab的布局等等 一般情况不需要修改 ####10.menun包:菜单组件,俩个,一个折叠菜单一个正常显示的菜单 ####11.NumberInfo:数字信息显示组件 如下图 输入图片说明 ####12.online包:该包下封装了online表单的相关组件,用于展示表单各种控件,验证表单等等,相关用法参考readme ####13.setting包:该包下封装了首页风格切换等功能如下图 输入图片说明 ####14.table包:一个二次封装的table组件,用于展示列表,参考readme ####15.tools包: Breadcrumb.vue:面包屑二次封装,支持路由跳转 DetailList.vue:详情展示用法参考src\views\profile\advanced\Advanced.vue(效果如下图) 输入图片说明

个人认为该页面代码有两点值得学习:
1.vue provide/inject的使用
2.该页面css定义方式,只定义一个顶层class,其余样式都定义在其下,这样只要顶层class不和别的页面冲突,整个页面的样式都是唯一生效的

FooterToolBar.vue:fixed定位的底部,通过是否定义内部控件的属性slot="extra"决定是左浮动或是右浮动 HeaderNotice.vue:首页通知(如下图) 输入图片说明 HeaderInfo.vue:上下文字布局(如下图) 输入图片说明 Logo.vue:首页左上侧的log图 输入图片说明 UserMenu.vue:首页右上侧的内容 输入图片说明 ####16.trend包 趋势显示组件(如下图) 输入图片说明