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

vap

Package Overview
Dependencies
Maintainers
0
Versions
568
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vap - npm Package Compare versions

Comparing version 3.8.181 to 3.8.182

1

admin/Table/DateRange.d.ts

@@ -8,2 +8,3 @@ import * as React from 'react';

allowClear?: boolean;
placeholder?: string;
style?: any;

@@ -10,0 +11,0 @@ }> {

@@ -28,2 +28,18 @@ "use strict";

};
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -104,2 +120,3 @@ var antd_1 = require("antd");

default_1.prototype.render = function () {
var _a;
var _this = this;

@@ -116,5 +133,13 @@ var defaultStart = { defaultValue: null, allowClear: this.props.allowClear };

}
var startPlaceHoder, endPlaceHoder;
if (this.props.placeholder && this.props.placeholder.split(',').length == 2) {
_a = __read(this.props.placeholder, 2), startPlaceHoder = _a[0], endPlaceHoder = _a[1];
}
else {
startPlaceHoder = this.props.showTime ? '开始时间' : '开始日期';
endPlaceHoder = this.props.showTime ? '结束时间' : '结束日期';
}
return React.createElement("div", { className: "filter-date-group filter-date-group-" + (this.props.showTime ? 'time' : 'date'), style: this.props.style || {} },
React.createElement(antd_1.DatePicker, __assign({}, defaultStart, { disabledDate: function (val) { return _this.disabledStartDate(val); }, showTime: this.props.showTime, format: this.format, placeholder: this.props.showTime ? '开始时间' : '开始日期', onChange: function (val, str) { return _this.onStartChange(val, str); }, onOpenChange: function (open) { return _this.handleStartOpenChange(open); }, size: "default", style: { marginRight: 4 } })),
React.createElement(antd_1.DatePicker, __assign({}, defaultEnd, { disabledDate: function (val) { return _this.disabledEndDate(val); }, showTime: this.props.showTime, format: this.format, placeholder: this.props.showTime ? '结束时间' : '结束日期', onChange: function (val, str) { return _this.onEndChange(val, str); }, open: this.state.endOpen, onOpenChange: function (open) { return _this.handleEndOpenChange(open); }, size: "default" })));
React.createElement(antd_1.DatePicker, __assign({}, defaultStart, { disabledDate: function (val) { return _this.disabledStartDate(val); }, showTime: this.props.showTime, format: this.format, placeholder: startPlaceHoder, onChange: function (val, str) { return _this.onStartChange(val, str); }, onOpenChange: function (open) { return _this.handleStartOpenChange(open); }, size: "default", style: { marginRight: 4 } })),
React.createElement(antd_1.DatePicker, __assign({}, defaultEnd, { disabledDate: function (val) { return _this.disabledEndDate(val); }, showTime: this.props.showTime, format: this.format, placeholder: endPlaceHoder, onChange: function (val, str) { return _this.onEndChange(val, str); }, open: this.state.endOpen, onOpenChange: function (open) { return _this.handleEndOpenChange(open); }, size: "default" })));
};

@@ -121,0 +146,0 @@ return default_1;

2

package.json
{
"name": "vap",
"version": "3.8.181",
"version": "3.8.182",
"description": "vap - framework for webapps, support micro-service(base on vap-base) and single-web-application(base on vap-base)",

@@ -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