import { UIViewID } from '@scripts/define/UIDefine'; import { UIPopup } from '@scripts/framework/ui/UIPopup'; import { addBtnClick } from '@scripts/utils/UIHelper'; import { _decorator, Button, Component, Node } from 'cc'; const { ccclass, property } = _decorator; @ccclass('UIWithdraw') export class UIWithdraw extends UIPopup { readonly viewId: UIViewID = UIViewID.UIWithdraw; @property(Button) btnClose: Button; protected onCreate(): void | Promise { addBtnClick(this.btnClose, this.closeSelf, this); } }