当前位置: 首页 > news >正文

济南市扬尘治理官网网站优化外包

济南市扬尘治理官网,网站优化外包,做一年的网站能赚多少钱,济南传承网络技术有限公司vue-jlunar-datepicker(插件) vue实现农历日历插件——vue-jlunar-datepicker插件 这个插件本身是基于vue2.0和elementUi框架来实现的。 安装 vue-jlunar-datepicker 插件 npm install vue-jlunar-datepicker --save // 如果安装过程中,出现…

vue-jlunar-datepicker(插件)

vue实现农历日历插件——vue-jlunar-datepicker插件

这个插件本身是基于vue2.0elementUi框架来实现的。

安装 vue-jlunar-datepicker 插件

npm install vue-jlunar-datepicker --save
// 如果安装过程中,出现报错,一般在终端中会显示出来解决办法
// 我这边确实报错了,提示的信息是elementUi版本不兼容的问题,解决方法就是:
npm install vue-jlunar-datepicker --save --force

插件在main.js中引入并注册 或组件中引入

import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import JDatePicker from 'vue-jlunar-datepicker';
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.component("j-date-picker",JDatePicker);
new Vue({render: h => h(App)
}).$mount('#app')或者
<script>
import JDatePicker from 'vue-jlunar-datepicker'
export default {components: {JDatePicker}
}
</script>

使用

<template><div class="contentViews"><j-date-picker v-model="form.birthdaydate" style="width: 100%" :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></div>
</template>
<script>
export default {data() {return {form: {birthdaydate: 'L2023-02-21',},type: 'DATERANGE', // DATE/DATERANGEshowLunarClass: 'MIX', // FULLLUNAR/LUNAR/NUMBER/MIX 农历日期的显示类型;不区分大小写;showBackYears: 2, // 现在之后的年份数基于当前年份showLunarIcon: true,showLunarControl: true, // 是否默认显示农历width1: '300',format: 'YYYY/MM/DD',placeholder: '请选择日期',rangeSeparator: '-',disabled: false,editable: true,clearable: true,pickerOptions: {disabledDate(time) {console.log(time);return time.getTime() < Date.now() - 8.64e7;//这行代码是限制当前日期之前不可选择,如果注释掉,则不做限制}}};},methods: {onDateChange(val) {this.form.birthdaydate = val;this.$forceUpdate();}}
};
</script>
<style lang="less" scoped>
::v-deep.icon-richeng:before {content: '>';
}/deep/.full-jcalendar__body {height: 240px !important;
}/deep/.full-jcalendar .input__inner:focus {border-color: #f90;
}.full-jcalendar .input__inner:hover {border-color: #ffcb7c;
}/deep/.full-jcalendar__body .data-list li:hover {background-color: #f90;
}/deep/.full-jcalendar-header {height: 30px;background: #ffeacb;
}/deep/.full-jcalendar__body {border: 1px solid #ebebeb;
}/deep/.full-jcalendar-header label {display: inline-block !important;
}/deep/.full-jcalendar .input__inner,
/deep/input::input-placeholder {font-size: 13px !important;color: #999 !important;
}/deep/.full-jcalendar__body .day-cell.select,
/deep/.full-jcalendar__body .data-list li.select-year {background-color: #f90;
}/deep/.day-cell.today.select .number.is-today.is-empty {color: #fff !important;
}/deep/.day-cell.today .number.is-today.is-empty {color: #f90 !important;
}/deep/.full-jcalendar__body .day-cell.today:before,
/deep/.full-jcalendar__body .data-list li.curr-year::before {border-top: 0.5em solid #f90 !important;
}/deep/.full-jcalendar-header .title-year:hover,
/deep/.full-jcalendar-header .title-month:hover {color: #f90 !important;
}/deep/.full-jcalendar__main {width: 100% !important;
}/deep/.iconfont.icon-richeng::before {content: '' !important;
}/deep/.icon.iconfont.icon-xiangyoujiantou::before {content: '>' !important;
}/deep/.icon.iconfont.icon-xiangzuojiantou::before {content: '<' !important;
}/deep/.day-number>.lunar {font-size: 11px !important;
}/deep/.day-cell {line-height: 18px !important;
}
</style>
http://www.yidumall.com/news/48134.html

相关文章:

  • 温州手机网站制作保定seo排名
  • 微信小程序 WordPress phpseo前景
  • 个人电脑做网站泉州seo培训
  • 国外网站博客网站也可以做引流成都广告公司
  • 免费建立微网站最近新闻大事
  • 免费网站后台管理系统模板百度入口网址
  • 网站做收付款接口如何做seo
  • 网站如何建设时时彩网盘网页版
  • 网站设计 网站建设 手机网站建设优云优客百度推广效果怎么样
  • 做免费网站怎么赚钱的面点培训学校哪里有
  • 计算机毕设代做网站苏州百度快速排名优化
  • 电子商务网站建设多少钱seo在哪可以学
  • 甘肃省建设工程168网站线上推广100种方式
  • 企业管理培训课程ppt搜索引擎优化的方式
  • 网站做伪原创收录网络推广网站有哪些
  • 新北网站建设搜索热词排名
  • 内蒙古网站建设百度淄博seo培训
  • 武汉平台网站建设 APP深圳竞价托管
  • 备案后修改网站名称nba最新交易汇总实时更新
  • 汉口网站建设公司seo数据是什么
  • axure怎么做响应式网站站长工具seo综合查询权重
  • 铁岭公司做网站域名注册信息
  • 制作网站开发合肥网站seo费用
  • wordpress文章模板插件网络推广与优化
  • 个人网站可以做自媒体吗今日国内新闻摘抄十条
  • 重庆网站建设哪家专业广告推广营销网站
  • 怎样建立销售网站百度seo网站在线诊断
  • 模板建站优点网站seo关键词排名
  • 做设计灵感的网站网络营销推广技术
  • 太原做网站公司线上推广的方式有哪些