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/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -375,15 +375,19 @@ const TableAPI = (url) => {
|
|
375
375
|
const filterQuery = Object.keys(filters).reduce((query, key) => {
|
376
376
|
|
377
377
|
const value = filters[key]
|
378
|
+
console.log(value)
|
378
379
|
|
379
380
|
if (typeof (value) === 'boolean') {
|
380
381
|
return query.concat(`${key}=${value}&`)
|
381
382
|
|
382
383
|
} else if (Array.isArray(value)) {
|
383
|
-
const param =
|
384
|
+
const param = value.length === 0 ? 'xxx=1&' : value.reduce((param,item) => {
|
385
|
+
param = param.concat(`${key}=${item}&`)
|
386
|
+
console.log(item, param)
|
387
|
+
return param
|
388
|
+
}, "")
|
384
389
|
console.log(param)
|
385
390
|
return query.concat(param)
|
386
|
-
|
387
391
|
} else {
|
388
392
|
return query.concat(`${key}=%${filters[key]}%&`)
|
389
393
|
}
|