zzz-pc-view 0.0.43 → 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
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,
|