refactor(按钮样式): 替换btn-success类为variant和color属性

使用variant="link"和color="green"替代原有的btn-success类,统一按钮样式实现方式
This commit is contained in:
dap
2026-01-13 20:25:02 +08:00
parent ff39e65d81
commit 0ab5c46812
4 changed files with 11 additions and 29 deletions

View File

@@ -107,27 +107,3 @@ vxe表格loading 只加载表格 不加载上面的表单
.vxe-grid.is--loading::before {
content: none !important;
}
/**
自定义success按钮样式
ghost按钮专用!
*/
.btn-success {
color: hsl(var(--success)) !important;
border-color: hsl(var(--success)) !important;
}
.btn-success:hover {
color: hsl(var(--success) / 50%) !important;
border-color: hsl(var(--success) / 50%) !important;
}
html.dark button[disabled].btn-success {
color: rgb(242 242 242 / 25%) !important;
border-color: hsl(240deg 3.7% 22%) !important;
}
button[disabled].btn-success {
color: rgb(50 54 57 / 25%) !important;
border-color: hsl(240deg 5.9% 90%) !important;
}