Node.js/nuxt/css module:修订间差异
来自康健生活
| 第36行: | 第36行: | ||
<syntaxhighlight lang="html5"> | <syntaxhighlight lang="html5"> | ||
<template> | <template> | ||
<div :class="$ | <div :class="$header.authentication"> | ||
<!-- logo 模块 --> | <!-- logo 模块 --> | ||
<div :class="$ | <div :class="$header.authentication__logo"> | ||
<img :class="$ | <img :class="$header.img" | ||
src="~assets/img/logo.png"/> | src="~assets/img/logo.png"/> | ||
... | ... | ||
</div> | </div> | ||
<button :class="{ | |||
[$header.button]: true, | |||
[ | |||
}">登录</button> | }">登录</button> | ||
</template> | </template> | ||
<style module="header" lang="scss">@import "./networkAuthorizationAuthentication";</style> | |||
< | |||
</ | |||
<script> | <script> | ||
export default { | export default { | ||
data: () => ( | |||
console.log(this.$style) | |||
rturn { list } | |||
) | |||
} | } | ||
</script></syntaxhighlight> | </script></syntaxhighlight> | ||