@faasjs/ant-design 0.0.3-beta.57 → 0.0.3-beta.58
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.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1291,9 +1291,9 @@ function Table(props) {
|
|
|
1291
1291
|
item.onFilter = (value, row) => {
|
|
1292
1292
|
if (value === null && (!row[item.id] || !row[item.id].length))
|
|
1293
1293
|
return true;
|
|
1294
|
-
if (!row[item.id] || !row[item.id].length)
|
|
1294
|
+
if (!row[item.id] || !row[item.id].length || !value)
|
|
1295
1295
|
return false;
|
|
1296
|
-
return row[item.id].some((v) => v
|
|
1296
|
+
return row[item.id].some((v) => v.toLowerCase().includes(value.toLowerCase()));
|
|
1297
1297
|
};
|
|
1298
1298
|
if (!item.filters && item.filterDropdown !== false)
|
|
1299
1299
|
item.filterDropdown = ({
|
package/dist/index.mjs
CHANGED
|
@@ -1297,9 +1297,9 @@ function Table(props) {
|
|
|
1297
1297
|
item.onFilter = (value, row) => {
|
|
1298
1298
|
if (value === null && (!row[item.id] || !row[item.id].length))
|
|
1299
1299
|
return true;
|
|
1300
|
-
if (!row[item.id] || !row[item.id].length)
|
|
1300
|
+
if (!row[item.id] || !row[item.id].length || !value)
|
|
1301
1301
|
return false;
|
|
1302
|
-
return row[item.id].some((v) => v
|
|
1302
|
+
return row[item.id].some((v) => v.toLowerCase().includes(value.toLowerCase()));
|
|
1303
1303
|
};
|
|
1304
1304
|
if (!item.filters && item.filterDropdown !== false)
|
|
1305
1305
|
item.filterDropdown = ({
|