-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
Description
Sometimes we would abstract some behaviours into mixins, for example: A
, B
and C
. If A
is mixed in B
and C
, and if the A
has a required prop named a
, then when component D
requires B
and C
in mixins, vue will warn the a
is required even if a value passed to a
. Because one of the prop check from B
or C
digests the value of a
, leaving another one nothing.
By the way, are there any suggestions to use / compose mixins? Because of the features of mixins, sometimes some implicit conflicts will raise up and not easy to find out. And in addition, the mixins require the component to obey some implicit interfaces, which lead to hard to maintain the codes.