Socket
Socket
Sign inDemoInstall

vue-calendar-mobile

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-calendar-mobile

A calendar component for vue.js


Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

vue-calendar

A calendar component for vue.js compitable with vue 2.x

examples

website: GilbertSun/vue-calendar

install & use

npm install vue-calendar-mobile

# for 1.x
npm install vue-calendar-mobile@1

use in a vue component

<template>
<calendar :view="'month'"></calendar>
</template>

<script>
import Calendar from 'vue-calendar-mobile'

export default {
  components: {
    Calendar
  }
}
</script>

Develope

you want to change the source and see what's you change

$ make dev

it will server a locale demo page in http://localhost:8080

then you change change the source code in src directory

refresh the demo page

$ make deploy

publish to npm

$ make pub

API

proptypedescriptionexampledefault value
currentViewObjectcureent shown view{}, simple pass a clean object{start: Object, end: Object}
decorateObjectcontrol the date to have a dot docorate{'2016-08-09': true}{}
subObjectcontrol the date sub decorate{'2016-08-09': {content: '休', color: '班'}}}{}
i18nStringcontrol week name language'zh-cn', 'en''zh-cn'
indicatorObjectcontrol the header indicator default the year and month{title: ..., main: ...}{}
selectedDatecurrent select datenew Date(2016, 11, 6)new Date()
startMondayBooleanis the week start from monday, true for monday and false for sundaytruefalse
startDateDatethis start Date to control the first view to show startDatenew Date(2016, 11, 6)new Date()
viewStringshow to month view of week view'month', 'week''month'
centerHeaderBooleancontrol the calendar header positiontruefalse

FAQs

Package last updated on 08 Mar 2017

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