element [feature request] difference between the use of componentname and name in Vue component

col17t5w  于 6个月前  发布在  其他
关注(0)|答案(3)|浏览(50)

Existing Component

Component Name

utils/emitter

Description

看了下componentName 和name在vue组件组件中名字的定义一般是相同的,
在eimitter中为什要用componentName而不用name,在整个ui设计中,
这两个定义的区别是什么

dm7nw8vv

dm7nw8vv1#

Translation of this issue:

Existing Component

yes

Component Name

utils/emitter

Description

See that the definition of component name and name in Vue component is generally the same,

In eimiter, why do we use component name instead of name? In the whole UI design,
What is the difference between the two definitions

0x6upsns

0x6upsns2#

没啥区别,element里面一般在子级组件中查找父级组件引用的时候会用componentName去找。
至于为什么,我估计第一个人是这么写的,后面的人就跟着这么写了,没啥太大原因。

70gysomp

70gysomp3#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

相关问题