8.vue组件的简单使用

154 阅读1分钟

1.组件分为三个板块

a. template 主要书写dom元素,可以书写html标签

b.如果不写templet,那就就需要在script标签内写 render方法,script也就是第二个板块,导出vue配置对象。 c.第三个板块是style,可以书写样式,scoped意思为此处的样式仅供当前页面使用


主题列表:juejin, github, smartblue, cyanosis, channing-cyan, fancy, hydrogen, condensed-night-purple, greenwillow, v-green, vue-pro, healer-readable, mk-cute, jzman, geek-black, awesome-green, qklhk-chocolate

贡献主题:github.com/xitu/juejin…

theme: juejin highlight: