1.0.1 • Published 1 year ago
find-vue-child v1.0.1
查找 vue 子组件
根据子组件的 name 值查找组件实例
Installtion
npm i find-vue-child
Usage
import findVueChild from 'find-vue-child'
const childComponent = findVueChild(this, 'child-component')
Props
参数名 | 说明 | 类型 | 必填 | 默认值 |
---|---|---|---|---|
component | 当前组件(this) | Object(Vue 实例) | true | - |
name | 需要查找的组件name 值 | string | true | - |