- 一个现在还没有接触的东西
<style lang='stylus' scoped></style> - 现在只知道 lang:
普通的style标签只支持普通的样式,如果想启用scss或者less,需要为style元素设置lang属性 - 还有scoped属性:
scoped是指定样式的局部作用域,样式只在当前.vue页面使用,不在其他页面使用 - 至于stylus:
富于表现力、动态的、健壮的 CSSstylus是一个强大的css预编译语言,stylus支持省略花括号,支持省略分号,代码整洁,支持引入,并且支持语法内函数 - 想要使用stylus时需要安装相应的loader
- vue.json 模板
{"Print to console": { "prefix": "vue", "body": [ "<!-- $0 -->", "<template>", " <div></div>", "</template>", "", "<script>", "export default {", " data () {", " return {", " };", " },", "", " components: {},", "", " computed: {},", "", " mounted: {},", "", " methods: {}", "}", "", "</script>", "<style lang='stylus' scoped>", "</style>" ], "description": "Log output to console" } }
|