wargerm 0.5.9 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +23 -3
- package/dist/index.js +23 -4
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -45,7 +45,6 @@ import 'antd/es/tree-select/style';
|
|
45
45
|
import _TreeSelect from 'antd/es/tree-select';
|
46
46
|
import 'antd/es/cascader/style';
|
47
47
|
import _Cascader from 'antd/es/cascader';
|
48
|
-
import cloneDeep$1 from 'lodash/cloneDeep';
|
49
48
|
import CountUp from 'react-countup';
|
50
49
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
51
50
|
import SwiperCore, { Pagination, Navigation, Autoplay, Virtual } from 'swiper';
|
@@ -896,6 +895,27 @@ var calcWidth = function calcWidth(width) {
|
|
896
895
|
var calcHeight = function calcHeight(height) {
|
897
896
|
return document.body.clientHeight / 2160 * height;
|
898
897
|
};
|
898
|
+
/* eslint-disable no-param-reassign */
|
899
|
+
|
900
|
+
function deepCopy(target) {
|
901
|
+
if (Object.prototype.toString.call({}).slice(8, -1) == 'Object') {
|
902
|
+
var result = Array.isArray(target) ? [] : {}; // eslint-disable-next-line no-restricted-syntax
|
903
|
+
|
904
|
+
for (var key in target) {
|
905
|
+
var _target$key;
|
906
|
+
|
907
|
+
if (Object.prototype.toString.call(target).slice(8, -1) == 'Object' && !((_target$key = target[key]) === null || _target$key === void 0 ? void 0 : _target$key['$$typeof'])) {
|
908
|
+
result[key] = deepCopy(target[key]);
|
909
|
+
} else {
|
910
|
+
result[key] = target[key];
|
911
|
+
}
|
912
|
+
}
|
913
|
+
|
914
|
+
return result;
|
915
|
+
}
|
916
|
+
|
917
|
+
return target;
|
918
|
+
}
|
899
919
|
|
900
920
|
var _excluded$2 = ["className", "frameStyle", "style", "direction", "children"];
|
901
921
|
function FrameBox(_ref) {
|
@@ -7074,12 +7094,12 @@ var WForm = function WForm(props, ref) {
|
|
7074
7094
|
columnsFields = _useState4[0],
|
7075
7095
|
setColumnsFields = _useState4[1];
|
7076
7096
|
|
7077
|
-
var filterFormColumns =
|
7097
|
+
var filterFormColumns = deepCopy(columns).filter(function (c) {
|
7078
7098
|
return !c.hideInSearch || disabledHideInSearch;
|
7079
7099
|
}).sort(function (a, b) {
|
7080
7100
|
return (b.order || 0) - (a.order || 0);
|
7081
7101
|
});
|
7082
|
-
var filterExtraFormColumns =
|
7102
|
+
var filterExtraFormColumns = deepCopy(extraColumns || []).filter(function (c) {
|
7083
7103
|
return !c.hideInSearch || disabledHideInSearch;
|
7084
7104
|
}).sort(function (a, b) {
|
7085
7105
|
return (b.order || 0) - (a.order || 0);
|
package/dist/index.js
CHANGED
@@ -49,7 +49,6 @@ require('antd/es/tree-select/style');
|
|
49
49
|
var _TreeSelect = require('antd/es/tree-select');
|
50
50
|
require('antd/es/cascader/style');
|
51
51
|
var _Cascader = require('antd/es/cascader');
|
52
|
-
var cloneDeep = require('lodash/cloneDeep');
|
53
52
|
var CountUp = require('react-countup');
|
54
53
|
var react = require('swiper/react');
|
55
54
|
var SwiperCore = require('swiper');
|
@@ -112,7 +111,6 @@ var _Select__default = /*#__PURE__*/_interopDefaultLegacy(_Select);
|
|
112
111
|
var _Switch__default = /*#__PURE__*/_interopDefaultLegacy(_Switch);
|
113
112
|
var _TreeSelect__default = /*#__PURE__*/_interopDefaultLegacy(_TreeSelect);
|
114
113
|
var _Cascader__default = /*#__PURE__*/_interopDefaultLegacy(_Cascader);
|
115
|
-
var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep);
|
116
114
|
var CountUp__default = /*#__PURE__*/_interopDefaultLegacy(CountUp);
|
117
115
|
var SwiperCore__default = /*#__PURE__*/_interopDefaultLegacy(SwiperCore);
|
118
116
|
var _Breadcrumb__default = /*#__PURE__*/_interopDefaultLegacy(_Breadcrumb);
|
@@ -957,6 +955,27 @@ var calcWidth = function calcWidth(width) {
|
|
957
955
|
var calcHeight = function calcHeight(height) {
|
958
956
|
return document.body.clientHeight / 2160 * height;
|
959
957
|
};
|
958
|
+
/* eslint-disable no-param-reassign */
|
959
|
+
|
960
|
+
function deepCopy(target) {
|
961
|
+
if (Object.prototype.toString.call({}).slice(8, -1) == 'Object') {
|
962
|
+
var result = Array.isArray(target) ? [] : {}; // eslint-disable-next-line no-restricted-syntax
|
963
|
+
|
964
|
+
for (var key in target) {
|
965
|
+
var _target$key;
|
966
|
+
|
967
|
+
if (Object.prototype.toString.call(target).slice(8, -1) == 'Object' && !((_target$key = target[key]) === null || _target$key === void 0 ? void 0 : _target$key['$$typeof'])) {
|
968
|
+
result[key] = deepCopy(target[key]);
|
969
|
+
} else {
|
970
|
+
result[key] = target[key];
|
971
|
+
}
|
972
|
+
}
|
973
|
+
|
974
|
+
return result;
|
975
|
+
}
|
976
|
+
|
977
|
+
return target;
|
978
|
+
}
|
960
979
|
|
961
980
|
var _excluded$2 = ["className", "frameStyle", "style", "direction", "children"];
|
962
981
|
function FrameBox(_ref) {
|
@@ -7135,12 +7154,12 @@ var WForm = function WForm(props, ref) {
|
|
7135
7154
|
columnsFields = _useState4[0],
|
7136
7155
|
setColumnsFields = _useState4[1];
|
7137
7156
|
|
7138
|
-
var filterFormColumns =
|
7157
|
+
var filterFormColumns = deepCopy(columns).filter(function (c) {
|
7139
7158
|
return !c.hideInSearch || disabledHideInSearch;
|
7140
7159
|
}).sort(function (a, b) {
|
7141
7160
|
return (b.order || 0) - (a.order || 0);
|
7142
7161
|
});
|
7143
|
-
var filterExtraFormColumns =
|
7162
|
+
var filterExtraFormColumns = deepCopy(extraColumns || []).filter(function (c) {
|
7144
7163
|
return !c.hideInSearch || disabledHideInSearch;
|
7145
7164
|
}).sort(function (a, b) {
|
7146
7165
|
return (b.order || 0) - (a.order || 0);
|