New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-date-calendar

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-date-calendar

vue 时间日期选择组件 小巧,全面

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

vue-calendar

Case pictures

输入图片说明 输入图片说明 输入图片说明

Requirements

  • Vue.js 1.1.0 ~ 适用于vue1.0版本
  • Vue.js 2.3.0 ~ 2.0vue版本需要大于2.3.0版本

*依赖插件为:zane-calendar ,不依赖任何第三方插件,包大小26K

Demo

http://www.seosiwei.com/zaneDate/index.html //参数一致

Instllation

$ npm install vue-date-calendar@1.2.0   vue1.0版本
$ npm install vue-date-calendar         vue2.0版本

Usage


<vue-date-calendar :option.sync="option"></vue-date-calendar>


import vueDateCalendar from 'vue-date-calendar'
export default {
	components: {
	  vueDateCalendar
	},
	data(){
    return {
    	option{
    		elem:'#zane-calendar',   	控件的dom原生 注意:仅限制于id选择器     (必填,id前必须有#号)
				type:'day',   				可选类型 day year month time doubleday doubleyear doublemonth doubletime (必填)
				lang:'cn',   				可选择语言类型 cn , en  (可选)
				width:280,  				插件宽度配置   250 <= X <= 500 (可选)
				height:300, 				插件高度配置   250 <= X <= 350 (可选)
				behindTop:10,   			插件于输入框的高度  	(可选)
				format:'yyyy-MM-dd HH:mm:ss',  时间格式化 		(可选)
				value:'',  					插件初始默认值  		(参数名必须,双向绑定value值)
				min:'',  					  可选取时间最小范围 1900-10-01 (可选)
				max: '',  					可选取时间最大范围 	2099-12-31 (可选)
				zindex:100,   				z-index值 (可选)
				showtime:true,  			是否显示选择时间 (可选)
				showclean:true,  			是否显示清除按钮 (可选)
				shownow:true,  				是否显示当前按钮 (可选)
				showsubmit:true, 			是否显示提交按钮 (可选)
				haveBotBtns:true, 			是否有底部按钮列表 (可选)
				calendarName:'', 			此参数勿动 表示当前时间插件实例化对象 (可选)
				mounted:()=>{}, 			插件加载完成之后调用 (可选)
				change:()=>{}, 				时间变更之后调用 (可选)
				done:()=>{}, 				选择完成之后调用 (可选)
    	}
    }
	}    
}


//常用的option方式
option:{
	elem:"#demo1",
	type:'year',
	fromate:'yyyy-MM-dd'
}

option:{
	elem:"#demo2",
	type:'doubleday',
	fromate:'yyyy-MM-dd',
	showtime:true,
}

//参数配合会有很多的功能

License

The MIT License

Keywords

FAQs

Package last updated on 16 Oct 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