1.0.1 • Published 1 year ago

find-vue-child v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

查找 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需要查找的组件namestringtrue-
1.0.1

1 year ago

1.0.0

1 year ago