zzz-pc-view 0.0.147 → 0.0.149
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 +12 -2
- 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
|
* 获取当前显示的列表数据。
|