fan-standard-comp 4.1.38 → 4.1.39
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.
|
@@ -328,8 +328,9 @@ export var filterTreeNodes = function filterTreeNodes(list, nodeKey) {
|
|
|
328
328
|
var result = [];
|
|
329
329
|
var filterList = _toConsumableArray(list);
|
|
330
330
|
filterList.forEach(function (item) {
|
|
331
|
+
var _item, _item$toLowerCase;
|
|
331
332
|
var nItem = null;
|
|
332
|
-
if (item[params.keyParam || 'name'].toLowerCase().includes(nodeKey === null || nodeKey === void 0 ? void 0 : nodeKey.toLowerCase())) {
|
|
333
|
+
if ((((_item = item[params.keyParam || 'name']) === null || _item === void 0 || (_item$toLowerCase = _item.toLowerCase) === null || _item$toLowerCase === void 0 ? void 0 : _item$toLowerCase.call(_item)) || '').includes(nodeKey === null || nodeKey === void 0 ? void 0 : nodeKey.toLowerCase())) {
|
|
333
334
|
nItem = _objectSpread(_objectSpread({}, item), {}, _defineProperty({}, params.childrenParam || 'children', []));
|
|
334
335
|
}
|
|
335
336
|
if (item[params.childrenParam || 'children'] && item[params.childrenParam || 'children'].length) {
|
package/es/utils/urlUtils.js
CHANGED
|
@@ -84,7 +84,7 @@ export var transSearchByColumn = function transSearchByColumn(params) {
|
|
|
84
84
|
Object.keys(paramOrders).forEach(function (oItem) {
|
|
85
85
|
orders.push({
|
|
86
86
|
column: oItem,
|
|
87
|
-
asc: paramOrders[oItem] === '
|
|
87
|
+
asc: paramOrders[oItem] === 'ascend'
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
paramsKeys[transOptionName || 'orders'] = orders.length ? orders : undefined;
|
|
@@ -334,8 +334,9 @@ var filterTreeNodes = exports.filterTreeNodes = function filterTreeNodes(list, n
|
|
|
334
334
|
var result = [];
|
|
335
335
|
var filterList = _toConsumableArray(list);
|
|
336
336
|
filterList.forEach(function (item) {
|
|
337
|
+
var _item, _item$toLowerCase;
|
|
337
338
|
var nItem = null;
|
|
338
|
-
if (item[params.keyParam || 'name'].toLowerCase().includes(nodeKey === null || nodeKey === void 0 ? void 0 : nodeKey.toLowerCase())) {
|
|
339
|
+
if ((((_item = item[params.keyParam || 'name']) === null || _item === void 0 || (_item$toLowerCase = _item.toLowerCase) === null || _item$toLowerCase === void 0 ? void 0 : _item$toLowerCase.call(_item)) || '').includes(nodeKey === null || nodeKey === void 0 ? void 0 : nodeKey.toLowerCase())) {
|
|
339
340
|
nItem = _objectSpread(_objectSpread({}, item), {}, _defineProperty({}, params.childrenParam || 'children', []));
|
|
340
341
|
}
|
|
341
342
|
if (item[params.childrenParam || 'children'] && item[params.childrenParam || 'children'].length) {
|
package/lib/utils/urlUtils.js
CHANGED
|
@@ -88,7 +88,7 @@ var transSearchByColumn = exports.transSearchByColumn = function transSearchByCo
|
|
|
88
88
|
Object.keys(paramOrders).forEach(function (oItem) {
|
|
89
89
|
orders.push({
|
|
90
90
|
column: oItem,
|
|
91
|
-
asc: paramOrders[oItem] === '
|
|
91
|
+
asc: paramOrders[oItem] === 'ascend'
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
94
|
paramsKeys[transOptionName || 'orders'] = orders.length ? orders : undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fan-standard-comp",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.39",
|
|
4
4
|
"description": "FZ standard-comp,basic of antd5.0 and custom component.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"lint": "npm run lint:es && npm run lint:css",
|
|
20
20
|
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
21
21
|
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
22
|
-
"package-to-tgz": "tar -czf fan-standard-comp-4.1.
|
|
22
|
+
"package-to-tgz": "tar -czf fan-standard-comp-4.1.39.tgz package && yarn"
|
|
23
23
|
},
|
|
24
24
|
"authors": [
|
|
25
25
|
"shomychen"
|