0.0.4 • Published 5 years ago

e2-calendar v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

e2-calendar

日历

安装

$npm install e2-calendar

Development Setup

# install dependencies
$ npm install

# dev mode
$ npm run dev

# test
$ npm run test

# build
$ npm run build

This project was generated with yeoman and generator-vue-component :heart:

doc

props

  • columnheader

列头文字数组

  • cellHeight 单元格高度,string 类型,默认 44px

  • defaultDate 默认选择日期 ,string 类型,默认

  • formatWeek 格式化周文本函数,默认

    (weekNum) => {
      return `第${weekNum}周`;
    };

slot

  • headerExt

头部扩展区域,可以显示说明文字

  • week

显示周单元格额外内容

  • day

显示日单元格额外内容

demo

<e2-calendar defaultDate="2019-05-06">
  <template #headerExt>
    计划日期:2019-08-08~2019-12-08
  </template>
  <template #week="date">
    <div class="demo-week">{{date.weekNum}}</div>
  </template>
  <template #day="date">
    <div class="demo-day">12<em>.</em></div>
  </template>
</e2-calendar>
0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago