open-index/open-npm huggingface dataset:
npm package: @kbj/y-work-calendar
Description: 一个显示每天工作事项的日历插件 ![预览](preview.png)
Latest version: 1.0.0

# work-calendar
一个显示每天工作事项的日历插件
![预览](preview.png)

## 使用方法

```
npm i work-calendar --save
```

``` javascript
<template>
  <div>
    <WorkCalendar ref="workCalendarTemplate" :options="calendarOptions"/>
  </div>
</template>

<script>
import WorkCalendar from 'work-calendar';

export default {
  components: {
    WorkCalendar
  },
  data() {
    return {
      calendarOptions: {
        TaskData: [
          [
            {
              title: '第一组：任务标题1',
              startTime: new Date(),
              duration: 20,
              endTime: new Date(),
              class: 'custom-class-name'
            },
            {
              title: '第一组：任务标题2',
              startTime: new Date(),
              duration: 20,
              endTime: new Date(),
              class: 'custom-class-name'
            }
          ],
          [
            {
              title: '第二组：任务标题1',
              startTime: new Date(),
              duration: 20,
              endTime: new Date(),
              class: 'custom-class-name'
            }
          ]
        ],
        Holiday: [
          { date: '2021/4/3', name: '清明节' },
          { date: '2021/4/4', name: '清明节' },
          { date: '2021/4/5', name: '清明节' },
        ],
        Workday: [
          { date: '2021/4/25', name: '补劳动节的班' },
          { date: '2021/5/8', name: '补劳动节的班' },
        ]
      },
    }
  }
}
</script>
```

##二次开发
改好代码之后，修改package.json版本号，编译，并发布到npm
```
#编译
npm run dist
#发布
npm publish
```