diff --git a/pages/component-instance/methods/call-method-easycom-options.uvue b/pages/component-instance/methods/call-method-easycom-options.uvue index bd9f83c4e4580dabebe26bc95e95983fa2da363f..0a4d35e01a5bf764445a3692d7e61aa881b69414 100644 --- a/pages/component-instance/methods/call-method-easycom-options.uvue +++ b/pages/component-instance/methods/call-method-easycom-options.uvue @@ -21,6 +21,7 @@ export default { onReady() { // 通过组件 ref 属性获取组件实例, 组件标签名首字母大写,驼峰+ComponentPublicInstance this.callEasyMethod1 = this.$refs['callEasyMethod1'] as CallEasyMethodComponentPublicInstance + this.call() }, methods: { async call(): Promise { diff --git a/pages/index/index.uvue b/pages/index/index.uvue index 49e4aea62b4f6b712415fafc528a49a876cddfa0..41111c32dd16bab7ef1323cae9682fa199efc443 100644 --- a/pages/index/index.uvue +++ b/pages/index/index.uvue @@ -340,6 +340,16 @@ export default { name: '调用 uni_modules easycom 组件方法 组合式 API', url: 'call-method-easycom-uni-modules-composition' }, + { + id: 'call-method-easycom-options', + name: '调用 easycom 组件方法 选项式 API', + url: 'call-method-easycom-options' + }, + { + id: 'call-method-easycom-composition', + name: '调用 easycom 组件方法 组合式 API', + url: 'call-method-easycom-composition' + }, { id: 'call-method-uni-element-options', name: '调用内置组件方法 选项式 API',