相思资源网 Design By www.200059.com

先给大家分享一下源码:https://github.com/lx544690189/vue-mobile-calendar

详解vue移动端日期选择组件

Build Setup

# install dependencies
npm install

# build for production with minification
npm run build

Usage

install

npm install vue-mobile-calendar

or:(from the dist folder)

<script src="/UploadFiles/2021-04-02/vue-mobile-calendar.js">

Quickstart

import Vue from 'vue'
import Calendar from 'vue-mobile-calendar'

Vue.use(Calendar)
<calendar
 v-model="calendarShow"
 :defaultDate="defaultDate"
 @change="handelChange">
</calendar>

Attributes

option description type default v-model show/hide the calendar Boolean false format format date String "yyyy-MM-dd" defaultDate default selected date Date new Date() minDate optional minimum date Date null maxDate optional maximum date Date null closeByClickmask close by mask Boolean true month text of month Array ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"] week text of day Array ["周一", "周二", "周三", "周四", "周五", "周六", "周日"]

Events

event name description parameter of callback change when date change (date,formatDate)

Reference

framework7

mint-ui

标签:
vue,移动端,日期选择

相思资源网 Design By www.200059.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
相思资源网 Design By www.200059.com

评论“详解vue移动端日期选择组件”

暂无详解vue移动端日期选择组件的评论...