zzz-pc-view 0.0.147 → 0.0.150
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/package.json +1 -1
- package/src/index.es.js +13 -3
- package/src/index.umd.js +1 -1
package/package.json
CHANGED
package/src/index.es.js
CHANGED
|
@@ -5951,9 +5951,19 @@ class CurdHandler extends FilterHandler {
|
|
|
5951
5951
|
* 最后,它会将解析后的对象绑定到 FilterTarget 上,并将结果赋值给 searchQueryRef。
|
|
5952
5952
|
*/
|
|
5953
5953
|
setSearchQuery() {
|
|
5954
|
-
|
|
5955
|
-
|
|
5954
|
+
const { query } = this;
|
|
5955
|
+
const searchQuery = Object.setPrototypeOf(
|
|
5956
|
+
JSON.parse(JSON.stringify(query)),
|
|
5957
|
+
this.FilterTarget.prototype
|
|
5956
5958
|
);
|
|
5959
|
+
const queryDescriptors = Object.getOwnPropertyDescriptors(query);
|
|
5960
|
+
for (const key2 in queryDescriptors) {
|
|
5961
|
+
const descriptor = queryDescriptors[key2];
|
|
5962
|
+
if (descriptor.enumerable === false && !descriptor.get && !descriptor.set) {
|
|
5963
|
+
Object.defineProperty(searchQuery, key2, descriptor);
|
|
5964
|
+
}
|
|
5965
|
+
}
|
|
5966
|
+
this.searchQueryRef.value = searchQuery;
|
|
5957
5967
|
}
|
|
5958
5968
|
/**
|
|
5959
5969
|
* 获取当前显示的列表数据。
|
|
@@ -5978,7 +5988,7 @@ class CurdHandler extends FilterHandler {
|
|
|
5978
5988
|
* @param {number} total - 列表数据的总数。
|
|
5979
5989
|
*/
|
|
5980
5990
|
setList(list2, total) {
|
|
5981
|
-
this.listRef.value = list2.length > 0 && list2[0] instanceof this.CurdTarget ? this.CurdTarget.bindList(list2) : list2;
|
|
5991
|
+
this.listRef.value = list2.length > 0 && !(list2[0] instanceof this.CurdTarget) ? this.CurdTarget.bindList(list2) : list2;
|
|
5982
5992
|
this.totalRef.value = total;
|
|
5983
5993
|
}
|
|
5984
5994
|
/**
|