🐞 fix:@import 修改为 @use 以应对 sass 升级弃用 @import。
parent
a31bafbb4a
commit
8a8ae557f7
|
@ -5,7 +5,7 @@ $--color-danger: #ff4d4f;
|
||||||
/* 改变 icon 字体路径变量,必需 */
|
/* 改变 icon 字体路径变量,必需 */
|
||||||
$--font-path: '~element-ui/lib/theme-chalk/fonts';
|
$--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 td,
|
||||||
.el-table th {
|
.el-table th {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
@import './process-designer.scss';
|
@use './process-designer.scss';
|
||||||
@import './process-panel.scss';
|
@use './process-panel.scss';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@import 'bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css';
|
@use 'bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css';
|
||||||
@import 'bpmn-js-token-simulation/assets/css/font-awesome.min.css';
|
@use '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/normalize.css';
|
||||||
|
|
||||||
// 边框被 token-simulation 样式覆盖了
|
// 边框被 token-simulation 样式覆盖了
|
||||||
.djs-palette {
|
.djs-palette {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@import './variables.scss';
|
@use './variables.scss' as *;
|
||||||
// 导出变量
|
// 导出变量
|
||||||
:export {
|
:export {
|
||||||
namespace: $namespace;
|
namespace: $namespace;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@import './var.css';
|
@use './var.css';
|
||||||
@import './FormCreate/index.scss';
|
@use './FormCreate/index.scss';
|
||||||
@import './theme.scss';
|
@use './theme.scss';
|
||||||
@import 'element-plus/theme-chalk/dark/css-vars.css';
|
@use 'element-plus/theme-chalk/dark/css-vars.css';
|
||||||
|
|
||||||
.reset-margin [class*='el-icon'] + span {
|
.reset-margin [class*='el-icon'] + span {
|
||||||
margin-left: 2px !important;
|
margin-left: 2px !important;
|
||||||
|
|
|
@ -43,7 +43,7 @@ export default ({command, mode}: ConfigEnv): UserConfig => {
|
||||||
css: {
|
css: {
|
||||||
preprocessorOptions: {
|
preprocessorOptions: {
|
||||||
scss: {
|
scss: {
|
||||||
additionalData: '@import "./src/styles/variables.scss";',
|
additionalData: '@use "@/styles/variables.scss" as *;',
|
||||||
javascriptEnabled: true
|
javascriptEnabled: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue