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 🙏

© 2026 – Pkg Stats / Ryan Hefner

zmp_taskplangantt

v1.1.0

Published

vue默认时间计划插件--甘特图

Readme

效果图

image

引用

import pageTaskPlan from 'zmp_taskplangantt'
Vue.use(pageTaskPlan)

单个示例

<page-time-plan @bindEmitLineChunk="bindEmitLineChunk" outerWidth="600px" outerHeight="40px"></page-time-plan>

单个示例包外层

<div style="width:700px;height:40px;border:1px solid red">
    <page-time-plan @bindEmitLineChunk="bindEmitLineChunk"></page-time-plan>
</div>

多个示例

<template>
    <div style="width:700px;height:40px;border:1px solid red">
        <page-time-plan v-for="item,index in 10" :key="index"
            :backKey="index"
            :resetSelect="resetSelect"
            @bindEmitLineChunk="bindEmitLineChunk"
        ></page-time-plan>
    </div>
</template>

export default {
    data() {
        return {
            resetSelect: 0,
        }
    },
    methods: {
        // 获取数据
        bindEmitLineChunk(data,key) {
            console.log(data,key)
            this.resetSelect = key
        } 
    }
}

中间气泡框 可根据自己需求重写,默认用的是element-ui组件

那么如果你用的不是element-ui组件你就可以换成自己需要的组件库,如果当前显示不能满足你要求你也可以自己自定义
气泡框内置插槽
<slot :data="item" :index="index" :backKey="backKey"></slot>

删除字体图标可更改

默认用 element-ui 图标库 可通过deleteIcon配置自己需要的字体图标

props配置

props: {
    readOnly: {  // 只读
        type: Boolean,
        default: false
    },
    outerWidth: {   // 外层宽度
        type: String,
        default: '100%',
    },
    outerHeight: {  // 外层高度
        type: String,
        default: '100%',
    },
    lineNumber: {   // 整个宽度代表多少数值
        type: [Number,String],
        default: 24 * 60 * 60
    },
    initData: {  // 初始化数据
        type: Array,
        default: () =>([])
    },
    formatDataFn: {  // 格式数据函数 左右气泡数据
        type: [Function,String],
        default: ''
    },
    tipPopup: {  // 是否有提示框
        type: Boolean,
        default: true
    },
    boxColor: {  // 移动盒子的颜色
        type: String,
        default: ''
    },
    backParams: { // 需要新增返回参数,用来做一些其他的功能
        type: Object,
        default: () => ({
            startTime: '00:00',
            endTime: '00:00'
        })
    },
    backKey: {  // 返回数据时 带回去的key  主要是多列的时候,让返回数据知道是哪一列返回的
        type: [Number,String],  
        default: 0
    },
    resetSelect: {  // 当有多列时候用来控制时间插件重置的
        type: [Number,String],  
        default: 0
    },
    deleteIcon: {  // 删除图标
        type: String,  
        default: 'el-icon-delete'
    }
}

自述

上述已经够清楚了吧,要是还是不懂请v50联系作者,待作者吃完肯德基之后,再为你作答。要是发现了bug请不要联系作者,就算联系了我也不会改的。最后附上作者邮箱 [email protected]