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

@antdp/antdp-ui

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antdp/antdp-ui - npm Package Compare versions

Comparing version 2.0.0-bate-2 to 2.0.0-bate-4.1

@@ -19,2 +19,3 @@ import _extends from "@babel/runtime/helpers/extends";

};
// 更新组件
this.refresh = () => {

@@ -21,0 +22,0 @@ if (this.mounted) {

@@ -5,4 +5,7 @@ import React from 'react';

constructor() {
// 保存状态
this.store = {};
//保存组件
this.componentLists = [];
// 初始化
this.init = entery => {

@@ -21,2 +24,3 @@ var {

};
// 挂载之后 组件保存
this.register = entery => {

@@ -40,2 +44,3 @@ this.componentLists.push(entery);

};
// 获取值
this.getStoreState = pathName => {

@@ -60,2 +65,3 @@ if (pathName) {

};
// 子项内的方法
this.getItemStore = () => {

@@ -75,2 +81,3 @@ return {

};
// 更新值
this.updateValue = (pathName, value) => {

@@ -82,2 +89,3 @@ var path = Array.isArray(pathName) ? pathName : [pathName];

};
// 获取值
this.getValue = pathName => {

@@ -87,2 +95,3 @@ var path = Array.isArray(pathName) ? pathName : [pathName];

};
// 通知更新组件
this.notifyObservers = pathName => {

@@ -89,0 +98,0 @@ this.componentLists.forEach(_ref => {

@@ -34,2 +34,3 @@ "use strict";

});
// 更新组件
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "refresh", function () {

@@ -36,0 +37,0 @@ if (_this.mounted) {

@@ -16,4 +16,7 @@ "use strict";

(0, _classCallCheck2["default"])(this, Store);
// 保存状态
(0, _defineProperty2["default"])(this, "store", {});
//保存组件
(0, _defineProperty2["default"])(this, "componentLists", []);
// 初始化
(0, _defineProperty2["default"])(this, "init", function (entery) {

@@ -31,2 +34,3 @@ var _ref = entery.props || {},

});
// 挂载之后 组件保存
(0, _defineProperty2["default"])(this, "register", function (entery) {

@@ -51,2 +55,3 @@ _this.componentLists.push(entery);

});
// 获取值
(0, _defineProperty2["default"])(this, "getStoreState", function (pathName) {

@@ -71,2 +76,3 @@ if (pathName) {

});
// 子项内的方法
(0, _defineProperty2["default"])(this, "getItemStore", function () {

@@ -86,2 +92,3 @@ return {

});
// 更新值
(0, _defineProperty2["default"])(this, "updateValue", function (pathName, value) {

@@ -93,2 +100,3 @@ var path = Array.isArray(pathName) ? pathName : [pathName];

});
// 获取值
(0, _defineProperty2["default"])(this, "getValue", function (pathName) {

@@ -98,2 +106,3 @@ var path = Array.isArray(pathName) ? pathName : [pathName];

});
// 通知更新组件
(0, _defineProperty2["default"])(this, "notifyObservers", function (pathName) {

@@ -100,0 +109,0 @@ _this.componentLists.forEach(function (_ref3) {

{
"name": "@antdp/antdp-ui",
"version": "2.0.0-bate-2",
"version": "2.0.0-bate-4.1",
"description": "基于antd封装的组件",

@@ -5,0 +5,0 @@ "homepage": "https://antdpro.github.io/antdp",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet