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

vap

Package Overview
Dependencies
Maintainers
1
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 1.2.3 to 1.2.4

2

layouts/admin/FromModal/index.js

@@ -343,3 +343,3 @@ "use strict";

});
_this.props.onOk(_.assign({}, _this.props.data, values));
_this.props.onOk(_.assign({}, _this.props.default, _this.props.data, values));
});

@@ -346,0 +346,0 @@ };

@@ -42,2 +42,4 @@ "use strict";

count: DefaultPageSize,
order: _this.rowKey,
by: 'desc',
};

@@ -91,4 +93,4 @@ _this.reflush = function () {

else {
query.order = null;
query.by = null;
query.order = this.rowKey;
query.by = 'desc';
}

@@ -115,2 +117,3 @@ this.props.dispatch({

this.rowKey = this.props.rowKey || 'id';
this.query.order = this.rowKey;
var params = {};

@@ -117,0 +120,0 @@ if (!_.has(this.props, 'size')) {

@@ -82,3 +82,2 @@ /**

export { default as DropDownPanel } from './DropDown';
import { VRadio } from './Page/Radio';
export { VRadio as Radio };
export { Radio } from 'antd';

@@ -154,5 +154,3 @@ "use strict";

// //Radio
var Radio_1 = require("./Page/Radio");
exports.Radio = Radio_1.VRadio;
Radio_1.VRadio.Button = Radio_1.VButton;
Radio_1.VRadio.Group = Radio_1.VGroup;
var antd_52 = require("antd");
exports.Radio = antd_52.Radio;
{
"name": "vap",
"version": "1.2.3",
"version": "1.2.4",
"description": "vap",

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

@@ -10,4 +10,4 @@ declare const _default: {

add?: string;
}, objectName?: string, rowKey?: string, nameField?: string) => any;
}, objectName?: string, rowKey?: string, nameField?: string, pre?: (any: any) => any) => any;
};
export default _default;

@@ -100,6 +100,7 @@ "use strict";

*/
function BuildModel(modelName, api, objectName, rowKey, nameField) {
function BuildModel(modelName, api, objectName, rowKey, nameField, pre) {
if (objectName === void 0) { objectName = '对象'; }
if (rowKey === void 0) { rowKey = 'id'; }
if (nameField === void 0) { nameField = null; }
if (pre === void 0) { pre = null; }
var tip = function (data) { return React.createElement("span", null,

@@ -144,2 +145,3 @@ objectName,

resp = _c.sent();
if (!(resp.code === null || resp.code == '0')) return [3 /*break*/, 3];
return [4 /*yield*/, put({

@@ -152,3 +154,9 @@ type: '_list',

_c.sent();
return [2 /*return*/];
return [3 /*break*/, 4];
case 3:
antd_1.message.error(React.createElement(React.Fragment, null,
objectName,
"\u67E5\u8BE2\u5931\u8D25"));
_c.label = 4;
case 4: return [2 /*return*/];
}

@@ -162,3 +170,3 @@ });

var put = _b.put;
var resp;
var param, resp;
return __generator(this, function (_c) {

@@ -171,3 +179,7 @@ switch (_c.label) {

;
return [4 /*yield*/, Ajax_1.default.PUT(apis.add, _.assign({}, data))];
param = _.assign({}, data);
if (pre) {
param = pre(param);
}
return [4 /*yield*/, Ajax_1.default.PUT(apis.add, param)];
case 1:

@@ -213,2 +225,5 @@ resp = _c.sent();

param = _.assign({}, data);
if (pre) {
param = pre(param);
}
return [4 /*yield*/, Ajax_1.default.PATCH(apis.update, param)];

@@ -215,0 +230,0 @@ case 1:

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