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

m-datetime-picker

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

m-datetime-picker - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

index.js

@@ -86,3 +86,2 @@ 'use strict';

/*const defaults = {
rotateEffect: false,
defaultValue: [today.getFullYear(), formatNumber(today.getMonth() + 1), formatNumber(today.getDate()), today.getHours(), formatNumber(today.getMinutes())],

@@ -148,4 +147,2 @@ formatValue: (p, values, displayValues) => displayValues[0] + '-' + values[1] + '-' + values[2] + ' ' + values[3] + ':' + values[4],

_this.options = {
rotateEffect: false,
defaultValue: _this.getDefaultValue.bind(_this)(),

@@ -166,2 +163,5 @@

var _result = [];
// 可以没有默认值
if (!this.props.defaultValue) return '';
var initDate = new Date(this.props.defaultValue);

@@ -168,0 +168,0 @@ if (+initDate > +this.maxDate) initDate = this.maxDate;

{
"name": "m-datetime-picker",
"version": "1.0.1",
"version": "1.0.2",
"description": "m-datetime-picker 日期时间选择器,基于m-picker扩展来",

@@ -5,0 +5,0 @@ "main": "index.js",

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