@cc-component/cc-guide 1.1.9 → 1.2.1
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.
|
@@ -219,8 +219,8 @@ export class GuideViewComp extends Component {
|
|
|
219
219
|
const view = item.getComponent(GuideViewItem)
|
|
220
220
|
//按钮
|
|
221
221
|
let target_button = view.findButton()
|
|
222
|
-
const isCust = GuideModule.GuideCenter.callButtonClick(target_button
|
|
223
|
-
if (isCust) {
|
|
222
|
+
const isCust = GuideModule.GuideCenter.callButtonClick(target_button?.node)
|
|
223
|
+
if (isCust && target_button) {
|
|
224
224
|
|
|
225
225
|
} else {
|
|
226
226
|
const clickEvents = target_button?.clickEvents ?? [];
|
|
@@ -28,7 +28,7 @@ declare global {
|
|
|
28
28
|
function OnMessageJumpWindow(call: (urls: string[]) => void)
|
|
29
29
|
/**监听完成引导组引导 */
|
|
30
30
|
function OnMessageFinishGroup(call: (param: ITableGuide) => void)
|
|
31
|
-
|
|
31
|
+
/**引导按钮点击事件。 返回值true表示执行自定义按钮事件,false.表示走按钮系统事件 */
|
|
32
32
|
function OnButtonClick(finish: (node: Node) => boolean)
|
|
33
33
|
/**是否引导中 */
|
|
34
34
|
function GuideShow(): boolean;
|