element-plus / element-plus-nuxt-starter

🌰 A starter example for element-plus with Nuxt 3.
https://element-plus-nuxt.vercel.app
MIT License
299 stars 83 forks source link

nuxt3 重写变量不生效 #69

Closed wintsa123 closed 1 year ago

wintsa123 commented 1 year ago
//var.scss
$header: () !default;
$header: map.merge(
  (
    'padding': 0,
    'height': 60px,
  ),
  $header
);

因为我真的没学过sass语法 @use "sass:map"; @forward "/node_modules/element-plus/theme-chalk/src/common/var.scss" with ( $header: ( "padding": 20px, ), $--el-header-padding:20px, ); 我尝试了这样写,不生效QAQ