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-year-density-plus

v1.1.1

Published

年密度组件 vue3版组件

Downloads

5

Readme

年密度组件(vue3版)

vue3版本

预览

clone项目后npm run preview即可

安装

npm i vue-year-density-plus

使用

import vueYearDensityPlus from "vue-year-density-plus";
import "vue-year-density-plus/index.css";

app.use(vueYearDensityPlus);

0. 可改动样式变量

  • --default-bg:#ebedf0(黑夜模式:#c5c8cd);-->小方块默认背景色

  • --act-1-bg:#9be9a8(黑夜模式:#89a78e);-->1级小方块背景色

  • --act-2-bg:#40c463(黑夜模式:#567d60);-->2级小方块背景色

  • --act-3-bg:#30a14e(黑夜模式:#3f734c);-->3级小方块背景色

  • --act-4-bg:#216e39(黑夜模式:#298747);-->4级小方块背景色

  • --border-color:rgba(27, 31, 35, 0.06)(黑夜模式:rgba(15, 28, 41, 0.06));-->小方块边框颜色

  • --more-bg:#303133(黑夜模式:#E5EAF3);-->浮窗背景色

  • --more-color:#fff(黑夜模式:#141414);-->浮窗默认字体颜色

  • --font-color:rgb(31, 35, 40)(黑夜模式:rgb(241, 243, 245));-->组件默认字体颜色

1. 参数

  • i18n:开启国际化-->Boolean;非必传;默认false

  • firstDay:周首日,校验变量只能是1-7-->Number;非必传;默认7

  • showTime:展示时间,可以是年也可以是某一天(必须是-间隔)-->String;非必传;默认null

  • data:展示数据,键值名必须是YYYY-DD-MM格式-->Object;非必传;默认*{}*

例如:{"2024-03-21":5}
  • @getData:当showTime改变时,向父级索要(更新data即可)指定日期范围内的数据-->第一个参数返回开始日期,第二个参数返回结束日期

  • @dayClick:点击某一天的格子-->第一个参数返回选中天的详情数据

2. 插槽

  • default:替换默认展示的浮窗内容
date:返回当前展示天的详细信息(与dayClick相同)
  • tip:替换默认左下角的提示信息

更多vue3组件

自定义右键菜单 | 拖拽卡片布局组件 | 可拖拽菜单 | echarts组件 | 基于el-menu的菜单组件 | 面包屑组件 | 滑动拼图 | 工作日历 | 多页签组件 | uEditor | wangEditor | 年密度组件