在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:vue-jLunar-datePicker开源软件地址:https://gitee.com/tuhe32/vue-jLunar-datePicker开源软件介绍:vue-jLunar-datePicker@JinWen
Online demoGetting StartNew for 2.0 1、add a new Property :type : DATE/DATERANGE (you can pick a period of time by use DATERANGE option) 2、fixed bugs Install
Usage main.js import Vue from 'vue';import JDatePicker from 'vue-jlunar-datepicker';Vue.component("j-date-picker",JDatePicker); test.vue <template> <j-date-picker v-model="value1" :width="width1" :placeholder="placeholder" :picker-options="pickerOptions" :rangeSeparator="rangeSeparator" @change="onDateChange" :disabled="disabled" :showLunarClass="showLunarClass" :showLunarControl="showLunarControl" :type="type" :showBackYears="showBackYears" :showLunarIcon="showLunarIcon" :format="format"> </j-date-picker></template><script>export default{ data(){ return{ data:{ value1:'', type:'DATE', showLunarClass:'MIX', showBackYears:2, showLunarIcon:true, showLunarControl:true, width1:'300', format:'YYYY.MM.DD', placeholder:'please input something ...', rangeSeparator:'-', disabled:false, editable:true, clearable:true, pickerOptions: { disabledDate (time) { return time.getTime() < Date.now() - 8.64e7; } } } }}</script> APIAttributes
picker-options
event
GitHubhttps://github.com/tuhe32/vue-jLunar-datePicker OSChinahttps://gitee.com/tuhe32/vue-jLunar-datePicker For detailed explanation on how things work, checkout the guide and docs for vue-loader. |
请发表评论