@cc-component/cc-ex-component 1.3.4 → 1.3.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.
@@ -39,7 +39,7 @@ export class BaseWindow extends BaseReference {
39
39
  * @param param.comp 关闭的按钮组件
40
40
  * @param param.time 关闭的按钮的时间
41
41
  */
42
- public close(param?: { is_anim?: boolean, param?: any, finish?: Function }) {
42
+ public pop(param?: { is_anim?: boolean, param?: any, finish?: Function }) {
43
43
  this.paramClose = param;
44
44
  this.param?.callBack?.(param?.param)//回调方法
45
45
  if (param?.is_anim && this.root && this.maskOpacity) {
@@ -265,7 +265,7 @@ export class ReferenceComponent extends Component {
265
265
 
266
266
  eventStr += `
267
267
  ${pix}${name}(comp: ${type === "ToggleContainer" ? "Toggle" : type}) {
268
-
268
+ ${name === 'close' ? ' super.pop()' : ''}
269
269
  }\n`
270
270
 
271
271
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-ex-component",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",