@cc-component/cc-guide 1.2.4 → 1.2.5

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.
@@ -31,7 +31,7 @@ export class GuideCenter {
31
31
 
32
32
  callMessageNet: (param: number, finish: Function) => void;
33
33
 
34
- callClick: (step: number) => void;
34
+ callClick: (param: ITableGuide) => void;
35
35
  callJumpWindow: (urls: string[]) => void;
36
36
  callFinishGroup: (param: ITableGuide) => void;
37
37
 
@@ -180,9 +180,10 @@ export class GuideCenter {
180
180
  })
181
181
  }
182
182
  onClick() {
183
- this.callClick?.(this.step)
184
183
  //Log.warn("2点击了")
185
184
  const curren = this.guide.GuideModel.prompts[this.step];
185
+ this.callClick?.(curren.data)
186
+
186
187
  //Log.warn("3点击了", curren.data.id);
187
188
  if (curren.data.saveID === curren.data.step) {
188
189
  //Log.warn("4点击了", curren.data.id);
@@ -320,7 +321,7 @@ export class GuideCenter {
320
321
  OnMessageStepNet(call: (step: number, finish: Function) => void) {
321
322
  this.callMessageNet = call
322
323
  }
323
- OnMessageClick(call: (step: number) => void) {
324
+ OnMessageClick(call: (param: ITableGuide) => void) {
324
325
  this.callClick = call
325
326
  }
326
327
  OnMessageJumpWindow(call: (urls: string[]) => void) {
@@ -33,4 +33,6 @@ export interface ITableGuide {
33
33
  enableGroupTask: number;
34
34
  /**声音路径 */
35
35
  sound: string;
36
+ /**事件阻挡x秒 */
37
+ time: number;
36
38
  }
@@ -22,7 +22,7 @@ class GuideModule {
22
22
  static OnMessageStepView(call: (param: ITableGuide) => void) { GuideCenter.instance.OnMessageStepView(call) }
23
23
 
24
24
  static OnMessageStepNet(call: (step: number, finish: Function) => void) { GuideCenter.instance.OnMessageStepNet(call) }
25
- static OnMessageClick(call: (step: number) => void) { GuideCenter.instance.OnMessageClick(call) }
25
+ static OnMessageClick(call: (param: ITableGuide) => void) { GuideCenter.instance.OnMessageClick(call) }
26
26
  static OnMessageJumpWindow(call: (urls: string[]) => void) { GuideCenter.instance.OnMessageJumpWindow(call) }
27
27
  static OnMessageFinishGroup(call: (param: ITableGuide) => void) { GuideCenter.instance.OnMessageFinishGroup(call) }
28
28
 
@@ -23,7 +23,7 @@ declare global {
23
23
  /**监听更新步骤-初始化时监听 */
24
24
  function OnMessageStep(call: (param: ITableGuide) => void)
25
25
  /**监听点击了引导事件 */
26
- function OnMessageClick(call: (step: number) => void)
26
+ function OnMessageClick(call: (param: ITableGuide) => void)
27
27
  /**监听跳转界面 */
28
28
  function OnMessageJumpWindow(call: (urls: string[]) => void)
29
29
  /**监听完成引导组引导 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-guide",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",