npm install el-vue-schedule --save
# or
yarn add el-vue-schedule
- 引用 全局注册:
import elVueSchedule from 'el-vue-schedule'
Vue.use(elVueSchedule)
按需引用:
import Schedule from 'el-vue-schedule'
export default {
components:{
[Schedule.name]:Schedule
},
}
- 模板使用
template:
<template>
<ac-schedule />
</template>
jsx:写法
render(){
return <AcSchedule />
}
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
title | 列名称 | String | 名称 |
month | 设置月份如:2019-07 | DateString | 当前月份 |
rows | 行数数据 | Array | [] |
cellRender | 自定义绘制单元格 | Function | _ |
参数 | 说明 | 返回值 |
---|---|---|
change | 日期变化 | (date:选择的日期,moment格式) |