zx-calendar, zx-vue-calendar (Vue2.x.x and Vue3.x.x), zx-react-calendar
源码文档地址:https://github.com/capricorncd/calendar
演示地址
https://capricorncd.github.io/calendar/dist/index.html
Vue docs and example
Vue 2.x.x
https://capricorncd.github.io/calendar/dist/vue.html
Vue 3.x.x
https://capricorncd.github.io/calendar/dist/vue3.html
React docs and example
https://capricorncd.github.io/calendar/dist/react.html
安装
# npm
npm install zx-calendar -S
# yarn
yarn add zx-calendar
使用
Vue 2.x
<template>
<zx-vue-calendar
v-model="value"
@change="handleChange"
@cancel="handleCancel"
@error="handleError" />
</template>
<script>
/** Vue 2.x.x */
import {
ZxVueCalendar } from 'zx-calendar/lib/vue-calendar'
export default {
components: {
ZxVueCalendar
},
data() {
return {
value: ''
}
},
methods: {