Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-mobile-calendar

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-mobile-calendar

a vue component of calendar for mobile

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
161
increased by242.55%
Maintainers
1
Weekly downloads
 
Created
Source

vue-mobile-calendar

Vue 2.x

NPM

a vue component of calendar for mobile

移动端日期选择器(>=vue2.0)

demo

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="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

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

FAQs

Package last updated on 24 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc