Socket
Socket
Sign inDemoInstall

ml-heatmap

Package Overview
Dependencies
63
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ml-heatmap

一个基于 Vue3 + Vite2 + Typescript 的仿造 GitHub 热力图的UI组件。 ![image](https://user-images.githubusercontent.com/34913418/154430134-81e5bffc-206f-4885-bf5a-705c5ddbfcc2.png)


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

欢迎使用 ML HeatMap

一个基于 Vue3 + Vite2 + Typescript 的仿造 GitHub 热力图的UI组件。 image

安装:

npm i ml-heatmap

使用方法:

<script setup lang="ts">
import {MlHeatmap} from 'ml-heatmap'
import 'ml-heatmap/dist/style.css'
</script>

<template>
  <ml-heatmap :data="[]" />
</template>

参数配置:

ParamsDescDefault
illustration是否打开图解true
year数据当前年份
e.g. 2022
current year
locale语言(中英)
e.g. en cn
en
levelColor等级颜色数组
e.g. [x, x, x, x, x]
['#EBEDF0', '#9BE9A8', '#40C463', '#30A14E', '#216E39']
level等级数组,默认五级(第一级为0),只需填写后四级即可
e.g. [1, 2, 3, 4]
[1, 4, 8, 12]
data热力图数据,数据为一年中的所有数据(365/366天的数据)
e.g. [
{date: '2022-01-12',
count: 1}, ......
}
[]
title标题""
tip1方格 hover 有数据时的提示文本
{0} - 数据占位符
{1} - 日期占位符
{0} contributions on {1}
tip2方格 hover 无数据时的提示文本
{0} - 数据占位符
{1} - 日期占位符
No contributions on {1}

主要依赖:

DependenciesVersion
Vue^3.2.25
Vite^2.8.0
Element-Plus^2.0.2
Moment^2.29.1

Keywords

FAQs

Last updated on 10 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc