zzz-pc-view 0.0.44 → 0.0.45

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.44",
3
+ "version": "0.0.45",
4
4
  "main": "src/index.umd.js",
5
5
  "module": "src/index.es.js",
6
6
  "types": "src/index.d.ts",
@@ -4,4 +4,4 @@ export * from './loadStore';
4
4
  export * from './useRequestUtil';
5
5
  export * from './api';
6
6
  export * from './Decorators';
7
- export { combineDecorator } from './decoratorStoreUtil';
7
+ export { clearByClass, clearByPrototype, combineDecorator } from './decoratorStoreUtil';
package/src/index.es.js CHANGED
@@ -2865,6 +2865,8 @@ const getConfigByClassAndKey = (Class, key2) => (
2865
2865
  // 获取类的原型,并调用 getConfigByPrototypeAndKey 函数
2866
2866
  getConfigByPrototypeAndKey(Class.prototype, key2)
2867
2867
  );
2868
+ const clearByPrototype = (target) => map.delete(target);
2869
+ const clearByClass = (Class) => clearByPrototype(Class.prototype);
2868
2870
  const combineDecorator = (...Classes) => {
2869
2871
  const CombineClass = combine(...Classes);
2870
2872
  const mergeMap = {};
@@ -4618,6 +4620,8 @@ const ZDecorators = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
4618
4620
  get api() {
4619
4621
  return api;
4620
4622
  },
4623
+ clearByClass,
4624
+ clearByPrototype,
4621
4625
  combineDecorator,
4622
4626
  setApi,
4623
4627
  useLoadStore,