search

Home  >  Q&A  >  body text

javascript - How vue inherits all other properties and methods, as well as template

The problem is that I now want to modify the specific component content in element, such as some styles, and then form my own component.
I have tried extends and mixins myself, but these only inherit the methods and some properties of the component, and cannot inherit things in the template.

有经验者求教~!
仅有的幸福仅有的幸福2747 days ago704

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-05-19 10:48:10

    You can globally override the style of element components, and the internal logic of element components cannot be changed.

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-19 10:48:10

    Can’t the template be repeatedly extracted into components?

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-19 10:48:10

    How about nesting one level and creating a new component?

    reply
    0
  • Cancelreply