0.1.4 • Published 5 years ago

el-vue-schedule v0.1.4

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

Schedule 排期表

安装

npm install el-vue-schedule --save
# or
yarn add el-vue-schedule

使用

  1. 引用 全局注册:
    import elVueSchedule from  'el-vue-schedule'
    Vue.use(elVueSchedule)

按需引用:

    import Schedule from  'el-vue-schedule'
    export default {
        components:{
            [Schedule.name]:Schedule
        },
    }
  1. 模板使用

template:

<template>
    <ac-schedule />
</template>

jsx:写法

render(){
    return <AcSchedule />
}

Props

参数说明类型默认值
title列名称String名称
month设置月份如:2019-07DateString当前月份
rows行数数据Array[]
cellRender自定义绘制单元格Function_

Events

参数说明返回值
change日期变化(date:选择的日期,moment格式)

示例

查看>>

效果图

image