From 9ea44d6b41e2fa64ecca74de08d3618072d19426 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Thu, 26 Sep 2024 19:38:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E8=A1=A5=E5=85=85=20?= =?UTF-8?q?easycom=20=E7=BB=84=E4=BB=B6=20call=20method=20=E5=85=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../methods/call-method-easycom-options.uvue | 1 + pages/index/index.uvue | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/pages/component-instance/methods/call-method-easycom-options.uvue b/pages/component-instance/methods/call-method-easycom-options.uvue index bd9f83c..0a4d35e 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 2a7181c..9841f5c 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', -- GitLab