@cc-component/cc-guide 1.2.3 → 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: (
|
|
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: (
|
|
324
|
+
OnMessageClick(call: (param: ITableGuide) => void) {
|
|
324
325
|
this.callClick = call
|
|
325
326
|
}
|
|
326
327
|
OnMessageJumpWindow(call: (urls: string[]) => void) {
|
|
@@ -148,13 +148,13 @@ export class GuideModelComp {
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
refesh() {
|
|
151
|
-
Log.log("
|
|
151
|
+
Log.log("引导步骤-刷新前", this._step)
|
|
152
152
|
while (this._step < this.prompts.length) {
|
|
153
153
|
const prompt = this.prompts[this._step]
|
|
154
154
|
if (prompt.is_finish) {
|
|
155
155
|
this._step++
|
|
156
156
|
} else {
|
|
157
|
-
Log.log("
|
|
157
|
+
Log.log("引导步骤-刷新后", this._step)
|
|
158
158
|
return;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
@@ -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: (
|
|
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: (
|
|
26
|
+
function OnMessageClick(call: (param: ITableGuide) => void)
|
|
27
27
|
/**监听跳转界面 */
|
|
28
28
|
function OnMessageJumpWindow(call: (urls: string[]) => void)
|
|
29
29
|
/**监听完成引导组引导 */
|