@cc-component/cc-guide 1.1.9 → 1.2.0

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.node)
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 ?? [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-guide",
3
- "version": "1.1.9",
3
+ "version": "1.2.0",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",