@joker.front/core 1.2.146 → 1.2.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/dist/bundle.es.js CHANGED
@@ -1741,7 +1741,7 @@ class HtmlContainerWebComponent extends HTMLElement {
1741
1741
  }
1742
1742
  }
1743
1743
  // 注册自定义元素
1744
- customElements.define("joker-html-container", HtmlContainerWebComponent);
1744
+ !customElements.get("joker-html-container") && customElements.define("joker-html-container", HtmlContainerWebComponent);
1745
1745
 
1746
1746
  //全局方法
1747
1747
  const __GLONAL_FUNTIONS__ = {};
package/dist/bundle.js CHANGED
@@ -1742,7 +1742,7 @@ class HtmlContainerWebComponent extends HTMLElement {
1742
1742
  }
1743
1743
  }
1744
1744
  // 注册自定义元素
1745
- customElements.define("joker-html-container", HtmlContainerWebComponent);
1745
+ !customElements.get("joker-html-container") && customElements.define("joker-html-container", HtmlContainerWebComponent);
1746
1746
 
1747
1747
  //全局方法
1748
1748
  const __GLONAL_FUNTIONS__ = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joker.front/core",
3
- "version": "1.2.146",
3
+ "version": "1.2.149",
4
4
  "description": "",
5
5
  "main": "./dist/bundle.js",
6
6
  "module": "./dist/bundle.es.js",
@@ -146,7 +146,7 @@ export declare class Component<T extends DefaultKeyVal = {}> implements ICompone
146
146
  * @param param 参数
147
147
  * @param targetEvent event
148
148
  */
149
- $trigger(eventName: string, param?: any, targetEvent?: VNode.Event): void;
149
+ $trigger(eventName: string, param?: any, targetEvent?: VNode.Event<any>): void;
150
150
  /**
151
151
  * 主动渲染(仅渲染,一般适用于模板区域的热更新使用/或动态装载等复杂场景)
152
152
  * @param newTemplate 可指定新的模板,否则按照原模板
@@ -5,7 +5,7 @@ export type EventCallBackItem<T> = {
5
5
  export type EventCallBackType<T> = (e: {
6
6
  stopPropagation: Function;
7
7
  callTimes: Number;
8
- }, params?: T) => boolean | void;
8
+ }, params: T) => boolean | void;
9
9
  export declare class EventBus<T extends Record<string, any>> {
10
10
  private eventDatas;
11
11
  on<K extends keyof T>(eventName: K, callBack: EventCallBackType<T[K]>): void;