Node.js/nuxt/css module:修订间差异
来自康健生活
| 第58行: | 第58行: | ||
} | } | ||
</script></syntaxhighlight> | </script></syntaxhighlight> | ||
=== module === | |||
<syntaxhighlight lang="html5"> | |||
<template> | |||
<!-- header start--> | |||
<el-header :class="{ [headerStyle.header]: true }"> | |||
<div class="header-body"> | |||
... | |||
</template> | |||
<style module="headerStyle" lang="scss">@import "./header.scss";</style></syntaxhighlight> | |||