js日历农历
Vue月球全日历 (vue-lunar-full-calendar)
Chinese lunar calendar for Fullcalendar.
Fullcalendar的中国农历。
图片和演示 (Image and demo)
a vue component for lunar fullcalendar. Uses Moment.js for date operations.
Increase the functions of Chinese lunar calendar, 24 solar terms and holidays
安装 (Installation)
npm install --save vue-lunar-full-calendar
//main.js
import LunarFullCalendar from "vue-lunar-full-calendar";
Vue.use(LunarFullCalendar);
But you can also import the standalone component to add locally or for more complex installations.
但是,您也可以导入独立组件以在本地添加或用于更复杂的安装。
// index.vue
import { LunarFullCalendar } from "vue-lunar-full-calendar";
export default {
components: {
LunarFullCalendar
}
};
重要功能 (Important function)
1、window.lunar(date)
1,window.lunar(日期)
Use vue-lunar-full-calendar , You can use one function to get the date of a certain day.
使用vue-lunar-full-calendar,您可以使用一个功能来获取特定日期的日期。
2、lunarCalendar (default: true)
2,lunarCalendar(默认:true)
You can pass any custom options through to fullcalendar by using the config
prop. Control whether the Chinese calendar shows true.
您可以使用config
属性将任何自定义选项传递给fullcal