ywana-core8 0.0.27 → 0.0.32
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.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +5 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +5 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +6 -2
package/dist/index.cjs
CHANGED
@@ -4455,12 +4455,15 @@ var TableAPI = function TableAPI(url) {
|
|
4455
4455
|
console.log('filters', filters);
|
4456
4456
|
var filterQuery = Object.keys(filters).reduce(function (query, key) {
|
4457
4457
|
var value = filters[key];
|
4458
|
+
console.log(value);
|
4458
4459
|
|
4459
4460
|
if (typeof value === 'boolean') {
|
4460
4461
|
return query.concat(key + "=" + value + "&");
|
4461
4462
|
} else if (Array.isArray(value)) {
|
4462
|
-
var param = value.length === 0 ? '' : value.reduce(function (param, item) {
|
4463
|
-
param.concat(key + "=" + item + "&");
|
4463
|
+
var param = value.length === 0 ? 'xxx=1&' : value.reduce(function (param, item) {
|
4464
|
+
param = param.concat(key + "=" + item + "&");
|
4465
|
+
console.log(item, param);
|
4466
|
+
return param;
|
4464
4467
|
}, "");
|
4465
4468
|
console.log(param);
|
4466
4469
|
return query.concat(param);
|