提交 19c17a0c 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

feat: 首页补充 easycom 组件 call method 入口

上级 9124196e
...@@ -21,6 +21,7 @@ export default { ...@@ -21,6 +21,7 @@ export default {
onReady() { onReady() {
// 通过组件 ref 属性获取组件实例, 组件标签名首字母大写,驼峰+ComponentPublicInstance // 通过组件 ref 属性获取组件实例, 组件标签名首字母大写,驼峰+ComponentPublicInstance
this.callEasyMethod1 = this.$refs['callEasyMethod1'] as CallEasyMethodComponentPublicInstance this.callEasyMethod1 = this.$refs['callEasyMethod1'] as CallEasyMethodComponentPublicInstance
this.call()
}, },
methods: { methods: {
async call(): Promise<void> { async call(): Promise<void> {
......
...@@ -340,6 +340,16 @@ export default { ...@@ -340,6 +340,16 @@ export default {
name: '调用 uni_modules easycom 组件方法 组合式 API', name: '调用 uni_modules easycom 组件方法 组合式 API',
url: 'call-method-easycom-uni-modules-composition' 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', id: 'call-method-uni-element-options',
name: '调用内置组件方法 选项式 API', name: '调用内置组件方法 选项式 API',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册