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

db-schedulemap

v1.1.1

Published

vue PC 赛程图

Downloads

11

Readme

db-schedulemap

用于渲染赛程图的包,使用DOM渲染

安装

# install dependencies -S
npm install db-schedulemap

# install node-sass sass-loader  依赖
npm install node-sass sass-loader

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

参数

名称 | 作用 | 类型 | 默认 --|:--:|:--:|:--: title|标题|String|赛程图 show|列标题|Boolean|true info|渲染数据|Array|[] config|样式设置|Object|如下

info

数据格式

[
	{
		title: "8进4",// 标题
		list:[
            [
              {
                name: "EDG",// 名称
                win: true,// 胜负
                id: 1,
              },
              {
                name: "DWG",
                win: false,
                id: 2,
              },
            ],
          ],
	}
]

例子:

./src/assets/show.png

[
        {
          title: "8进4",// 标题
          list: [
            [
              {
                name: "EDG",
                win: true,
                id: 1,
              },
              {
                name: "RNG",
                win: false,
                id: 2,
              },
            ],
            [
              {
                name: "IG",
                win: true,
                id: 1,
              },
              {
                name: "JDG",
                win: false,
                id: 2,
              },
            ],
            [
              {
                name: "DWG",
                win: true,
                id: 1,
              },
              {
                name: "T1",
                win: false,
                id: 2,
              },
            ],
            [
              {
                name: "VG",
                win: true,
                id: 1,
              },
              {
                name: "TES",
                win: false,
                id: 2,
              },
            ],
          ],
        },
        {
          title: "4进2",
          list: [
            [
              {
                name: "EDG",
                win: true,
                id: 1,
              },
              {
                name: "IG",
                win: false,
                id: 2,
              },
            ],
            [
              {
                name: "DWG",
                win: true,
                id: 1,
              },
              {
                name: "VG",
                win: false,
                id: 2,
              },
            ],
          ],
        },
        {
          title: "决赛",
          list: [
            [
              {
                name: "EDG",
                win: true,
                id: 1,
              },
              {
                name: "DWG",
                win: false,
                id: 2,
              },
            ],
          ],
        },
        {
          title: "冠军",
          list: [
            {
              name: "EDG",
              win: true,
              id: 1,
            },
          ],
        },
      ],

config

{
          initheight: 50, // 对垒单元格高度
          itemHeight: 40, // 单元格高度
          mb: 10, // 相邻对垒单元格距离
          justify: "flex-start", //文本对其 center flex-end flex-start
          borderWidth: 2, // border宽度
          borderColor: "#f05b5b", // 连接线颜色
          win: {
            // 胜利单元格样式
            backgroundColor: "rgb(250, 224, 224)",
            color: "#f05b5b",
            borderColor: "#f05b5b",
          },
          lose: {
            // 失败单元格样式
            backgroundColor: "#f2f2f2",
            color: "rgba(0, 0, 0, 0.65)",
            borderColor: "#ccc",
          },
        };

插槽

header

顶部title插槽

<template v-slot:header>
   <span>顶部插槽</span>
</template>

none

暂无数据插槽

<template v-slot:none>
   <h1>暂无数据</h1>
</template>