javascript - vue 注册 component (非 .vue单文件)能写css样式不?
阿神
阿神 2017-05-18 11:02:37
0
2
694

这种形式的注册形式,能不能定义css的,文档和api找了几圈了没发现。

Vue.component('my-component', {
  template: '<p>A custom component!</p>'
})
阿神
阿神

闭关修行中......

全部回复(2)
我想大声告诉你

不能写,因为这个没人会替你编译好

单独.vue文件可以写是因为有loader帮你编译好

PHPzhong

应该不能写哦!

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板