🐞 fix:@import 修改为 @use 以应对 sass 升级弃用 @import。

pull/571/head
preschooler 2024-10-23 10:52:51 +08:00
parent a31bafbb4a
commit 8a8ae557f7
6 changed files with 12 additions and 12 deletions

View File

@ -5,7 +5,7 @@ $--color-danger: #ff4d4f;
/* 改变 icon 字体路径变量,必需 */
$--font-path: '~element-ui/lib/theme-chalk/fonts';
@import '~element-ui/packages/theme-chalk/src/index';
@use '~element-ui/packages/theme-chalk/src/index';
.el-table td,
.el-table th {

View File

@ -1,2 +1,2 @@
@import './process-designer.scss';
@import './process-panel.scss';
@use './process-designer.scss';
@use './process-panel.scss';

View File

@ -1,6 +1,6 @@
@import 'bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css';
@import 'bpmn-js-token-simulation/assets/css/font-awesome.min.css';
@import 'bpmn-js-token-simulation/assets/css/normalize.css';
@use 'bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css';
@use 'bpmn-js-token-simulation/assets/css/font-awesome.min.css';
@use 'bpmn-js-token-simulation/assets/css/normalize.css';
// token-simulation
.djs-palette {

View File

@ -1,4 +1,4 @@
@import './variables.scss';
@use './variables.scss' as *;
//
:export {
namespace: $namespace;

View File

@ -1,7 +1,7 @@
@import './var.css';
@import './FormCreate/index.scss';
@import './theme.scss';
@import 'element-plus/theme-chalk/dark/css-vars.css';
@use './var.css';
@use './FormCreate/index.scss';
@use './theme.scss';
@use 'element-plus/theme-chalk/dark/css-vars.css';
.reset-margin [class*='el-icon'] + span {
margin-left: 2px !important;

View File

@ -43,7 +43,7 @@ export default ({command, mode}: ConfigEnv): UserConfig => {
css: {
preprocessorOptions: {
scss: {
additionalData: '@import "./src/styles/variables.scss";',
additionalData: '@use "@/styles/variables.scss" as *;',
javascriptEnabled: true
}
}