As shown in the figure, VueCarbon is an introduced UI library, which contains button components and wants to customize button components.
Want to use mixins: VueCarbon.button method to implement, and then replace template to implement template changes
, only to find that it is useless, as if VueCarbon.button is empty, but it is useless to use button directly. I don’t know how to do it. Is it only defined by copying the source code?
One button css copy will do.
Mixin is a mixed method. I think it’s definitely not a method. It should be an example, so you can’t do that.
If you want to inherit vue, there is an es6 class plug-in that can implement either that or slot. It is relatively flexible.