国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 編程 > JavaScript > 正文

詳解vue移動(dòng)端日期選擇組件

2019-11-19 14:20:24
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

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

Build Setup

# install dependenciesnpm install# build for production with minificationnpm run build

Usage

install

npm install vue-mobile-calendar

or:(from the dist folder)

<script src="vue-mobile-calendar.js" type="text/javascript"></script>

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

發(fā)表評(píng)論 共有條評(píng)論
用戶(hù)名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 晋州市| 洛扎县| 威宁| 清涧县| 昌江| 乐陵市| 马龙县| 黔东| 石泉县| 根河市| 阳高县| 靖远县| 文水县| 弋阳县| 华宁县| 芦溪县| 多伦县| 筠连县| 大丰市| 肇东市| 随州市| 绥芬河市| 和林格尔县| 通河县| 福鼎市| 长丰县| 思茅市| 高陵县| 洛扎县| 南开区| 邵阳县| 财经| 且末县| 吴旗县| 嵩明县| 威海市| 富川| 香港 | 博爱县| 桦南县| 田阳县|