refactor(build): 移除 setup-extend 插件并更新依赖项
- 移除 createSetupExtend 插件及其相关配置 - 更新 Vue 版本从 3.5.13 到 3.5.25 - 更新 Element Plus 版本从 2.12.0 到 2.14.1 - 添加 @vue/shared 依赖 - 移除 @vue/compiler-sfc 开发依赖 - 移除 unplugin-vue-setup-extend-plus 依赖 - 更新 @babel 相关依赖版本 - 移除 @esbuild 相关可选依赖 - 更新 chokidar 版本从 3.6.0 到 5.0.0 - 移除部分已废弃的依赖项
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
@use 'sass:color';
|
||||||
@import './variables.module.scss';
|
@import './variables.module.scss';
|
||||||
|
|
||||||
// Element Plus风格的颜色按钮样式
|
// Element Plus风格的颜色按钮样式
|
||||||
@@ -22,14 +23,14 @@
|
|||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
background-color: lighten($color, 10%);
|
background-color: color.adjust($color, $lightness: 10%);
|
||||||
border-color: lighten($color, 10%);
|
border-color: color.adjust($color, $lightness: 10%);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
background-color: darken($color, 5%);
|
background-color: color.adjust($color, $lightness: -5%);
|
||||||
border-color: darken($color, 5%);
|
border-color: color.adjust($color, $lightness: -5%);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ export default {
|
|||||||
height: 200px !important;
|
height: 200px !important;
|
||||||
width: 740px;
|
width: 740px;
|
||||||
|
|
||||||
/deep/ .el-table .cell {
|
:deep(.el-table .cell) {
|
||||||
font-size: 10px !important;
|
font-size: 10px !important;
|
||||||
}
|
}
|
||||||
.printView_header {
|
.printView_header {
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ export default {
|
|||||||
height: 500px !important;
|
height: 500px !important;
|
||||||
width: 680px;
|
width: 680px;
|
||||||
|
|
||||||
/deep/ .el-table .cell {
|
:deep(.el-table .cell) {
|
||||||
font-size: 10px !important;
|
font-size: 10px !important;
|
||||||
}
|
}
|
||||||
.printView_header {
|
.printView_header {
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ export default {
|
|||||||
height: 200px !important;
|
height: 200px !important;
|
||||||
width: 680px;
|
width: 680px;
|
||||||
|
|
||||||
/deep/ .el-table .cell {
|
:deep(.el-table .cell) {
|
||||||
font-size: 10px !important;
|
font-size: 10px !important;
|
||||||
}
|
}
|
||||||
.printView_header {
|
.printView_header {
|
||||||
|
|||||||
@@ -675,7 +675,7 @@ getList();
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 表格样式调整,移除默认的最大宽度限制 */
|
/* 表格样式调整,移除默认的最大宽度限制 */
|
||||||
.table-scroll-container >>> .el-table {
|
.table-scroll-container { :deep(.el-table) {
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1762,12 +1762,12 @@ defineExpose({
|
|||||||
|
|
||||||
/* 表格样式 */
|
/* 表格样式 */
|
||||||
.el-table {
|
.el-table {
|
||||||
::v-deep(.cancelled-row) {
|
:deep(.cancelled-row) {
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
color: #999;
|
color: #999;
|
||||||
text-decoration: line-through;
|
text-decoration: line-through;
|
||||||
|
|
||||||
::v-deep(.cell) {
|
:deep(.cell) {
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1588,7 +1588,7 @@ function validate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-table--border th),
|
:deep(.el-table--border th),
|
||||||
::v-deep .el-table--border th.gutter:last-of-type {
|
:deep(.el-table--border th.gutter:last-of-type {
|
||||||
border-color: #dddde0;
|
border-color: #dddde0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -53,6 +53,12 @@ export default defineConfig(({ mode, command }) => {
|
|||||||
},
|
},
|
||||||
//fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file
|
//fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file
|
||||||
css: {
|
css: {
|
||||||
|
preprocessorOptions: {
|
||||||
|
scss: {
|
||||||
|
api: 'modern-compiler',
|
||||||
|
silenceDeprecations: ['import', 'global-builtin', 'color-functions', 'legacy-js-api'],
|
||||||
|
},
|
||||||
|
},
|
||||||
postcss: {
|
postcss: {
|
||||||
plugins: [
|
plugins: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user