zzz-pc-view 0.0.146 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zzz-pc-view",
3
- "version": "0.0.146",
3
+ "version": "0.0.149",
4
4
  "main": "src/index.umd.js",
5
5
  "module": "src/index.es.js",
6
6
  "types": "src/index.d.ts",
package/src/index.es.js CHANGED
@@ -5458,7 +5458,7 @@ class CurdHandler extends FilterHandler {
5458
5458
  */
5459
5459
  constructor(curdTargetPrototype, param, ...args) {
5460
5460
  const CurdTarget = curdTargetPrototype.constructor;
5461
- super(WithPrototype.bindObject({}, curdTargetPrototype), ...args);
5461
+ super(Object.setPrototypeOf({}, curdTargetPrototype), ...args);
5462
5462
  /**
5463
5463
  * 定义一个只读属性,用于存储 CURD 操作的目标模型构造函数。
5464
5464
  * 这个属性将用于在组件中创建和操作数据记录。
@@ -5951,9 +5951,19 @@ class CurdHandler extends FilterHandler {
5951
5951
  * 最后,它会将解析后的对象绑定到 FilterTarget 上,并将结果赋值给 searchQueryRef。
5952
5952
  */
5953
5953
  setSearchQuery() {
5954
- this.searchQueryRef.value = this.FilterTarget.bindObject(
5955
- JSON.parse(JSON.stringify(this.query))
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
  * 获取当前显示的列表数据。