From 13c756dedd5f00245729d7b722b406d4539ead14 Mon Sep 17 00:00:00 2001 From: hdx Date: Wed, 13 Dec 2023 16:35:49 +0800 Subject: [PATCH] =?UTF-8?q?callmethods:=20=E4=BF=AE=E6=AD=A3=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E5=85=B6=E4=BB=96=E8=87=AA=E5=AE=9A=E4=B9=89=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E8=AF=AD=E6=B3=95=EF=BC=8C=E7=A7=BB=E9=99=A4=E4=B8=8D?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E7=9A=84=E5=AF=BC=E5=85=A5=20ComponentPublic?= =?UTF-8?q?Instance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/component/README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/component/README.md b/docs/component/README.md index 29d25199..967454f0 100644 --- a/docs/component/README.md +++ b/docs/component/README.md @@ -349,7 +349,7 @@ callMethod可用于所有自定义组件,包括easycom组件也可以使用, **语法** -```this.$refs['组件ref属性值'].$callMethod('方法名', ...args)``` +```(this.$refs['组件ref属性值'] as ComponentPublicInstance).$callMethod('方法名', ...args)``` **组件类型** @@ -366,9 +366,6 @@ ComponentPublicInstance