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

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

从策划到设计制作,每一步都追求做到细腻,制作可持续发展的企业网站。为客户提供做网站、网站制作、网站策划、网页设计、国际域名空间、虚拟空间、网络营销、VI设计、 网站改版、漏洞修补等服务。为客户提供更好的一站式互联网解决方案,以客户的口碑塑造优易品牌,携手广大客户,共同发展进步。

详解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)

Quickstart

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

Vue.use(Calendar)

Attributes

optiondescriptiontypedefault
v-modelshow/hide the calendarBooleanfalse
formatformat dateString"yyyy-MM-dd"
defaultDatedefault selected dateDatenew Date()
minDateoptional minimum dateDatenull
maxDateoptional maximum dateDatenull
closeByClickmaskclose by maskBooleantrue
monthtext of monthArray["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"]
weektext of dayArray["周一", "周二", "周三", "周四", "周五", "周六", "周日"]

Events

event namedescriptionparameter of callback
changewhen date change(date,formatDate)

Reference

framework7

mint-ui


网站标题:详解vue移动端日期选择组件
路径分享:http://scyanting.com/article/gojjjp.html