find-vue-child
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

查找 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 -

Readme

Keywords

none

Package Sidebar

Install

npm i find-vue-child

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.96 kB

Total Files

6

Last publish

Collaborators

  • iamgx