refactor(crud): 提取通用CRUD逻辑与清理样式

This commit is contained in:
zhangtao
2026-05-15 20:48:14 +08:00
parent 0344765e5a
commit d56ec934a6
23 changed files with 1229 additions and 1521 deletions
+18
View File
@@ -0,0 +1,18 @@
// CRUD 页面通用样式
// 从各 module_system 视图文件中提取的重复样式
// FaForm 在 Dialog 中的布局优化:隐藏最后一列操作按钮、内容区域自适应宽度
.crud-dialog-art-form {
:deep(.el-row > .el-col:last-child) {
display: none;
}
:deep(.el-form-item__content) {
max-width: 100%;
}
}
// 表格操作列按钮垂直居中
:deep(.inline-flex) {
vertical-align: middle;
}
-27
View File
@@ -83,18 +83,11 @@
// placeholder
@mixin placeholder($color: #bbb) {
// Firefox
&::placeholder {
color: $color;
opacity: 1;
}
// Internet Explorer 10–11
/* stylelint-disable-next-line selector-no-vendor-prefix */
&:-ms-input-placeholder {
color: $color;
}
// Safari and Chrome (legacy)
/* stylelint-disable-next-line selector-no-vendor-prefix */
&::-webkit-input-placeholder {
@@ -106,26 +99,6 @@
}
}
//背景透明,文字不透明。兼容IE8
@mixin betterTransparentize($color, $alpha) {
$c: rgba($color, $alpha);
$ie_c: ie_hex_str($c);
zoom: 1;
background: rgba($color, 1);
background: $c;
background: transparent \9;
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#{$ie_c}, endColorstr=#{$ie_c})";
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#{$ie_c}, endColorstr=#{$ie_c});
}
//添加浏览器前缀
@mixin browserPrefix($propertyName, $value) {
@each $prefix in -webkit-, -moz-, -ms-, -o-, "" {
#{$prefix}#{$propertyName}: $value;
}
}
// 边框
@mixin border($color: red) {
border: 1px solid $color;
+3
View File
@@ -21,3 +21,6 @@
// 主题切换圆形扩散动画
@use "./core/theme-animation";
// CRUD 页面通用样式
@use "./core/crud";