0.0.7 • Published 4 years ago

ms-calendar v0.0.7

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

ms-calendar

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

Installation

npm install ms-calendar

Use

<template>
  <div id="app">
    <div class="example">
      <button @click="showPicker=true">点击弹出</button>
    </div>
    
    <ms-calendar ref="mscalendar" :show-picker='showPicker' :server-date='serverDate' show-month-tab='false' monthsRange='3' active='0' within-month='true' theme-color='deeppink' @confirm='confirm' @close='showPicker=false'></ms-calendar>
  </div>
</template>
import msCalendar from 'ms-calendar';
Vue.use(msCalendar);

components: {
    msCalendar
}

data () {
    return {
      showPicker: false,
      serverDate: ''
    }
  },
created(){
    // 设定服务器时间
    this.serverDate = '2021/2/8'
},
methods: {
    confirm(dates){
      console.log("selected", dates)

    },
}

Props

propdescriptontypedefault
showPicker显示日历Booleanfalse
themeColor主题颜色String"#e60027"
showMonthTab显示按月选择String"true"
showDayTab显示按日选择String"true"
serverDate设定当前时间String"2021/5/1"
monthsRange日历范围String"6"
withinMonth是否可以跨月选择String"false"

Events

eventdescripton
confirm选择日期事件
close关闭日历事件
0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.1.4

4 years ago

0.0.1

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago