Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yudao-admin-ui
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licheng
yudao-admin-ui
Commits
7f91efbd
Commit
7f91efbd
authored
Jul 04, 2025
by
licheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: 添加全局element-plus样式文件
parent
9dfd6af0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
126 additions
and
0 deletions
+126
-0
element-plus.scss
src/styles/element-plus.scss
+125
-0
index.scss
src/styles/index.scss
+1
-0
No files found.
src/styles/element-plus.scss
0 → 100644
View file @
7f91efbd
// element-plus 全局样式
/* 表格 */
// .el-table {
// // 表格边框
// border: 1px solid #ebeef5;
// border-radius: 4px;
// // 表格背景色
// background-color: #fff;
// // 表格字体
// font-size: 14px;
// color: #606266;
// // 表格宽度
// width: 100%;
// // 表格阴影
// box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
// /* 表头样式 */
// .el-table__header th {
// // 表头单元格背景
// background-color: #e1e3e6;
// // 表头文字颜色
// color: #909399;
// // 表头字体加粗
// font-weight: bold;
// // 表头单元格padding
// padding: 12px 0;
// }
// /* 行样式 */
// .el-table__body {
// tr {
// // 行高
// height: 48px;
// // background-color: rgb(239, 236, 236);
// // 行悬停效果
// &:hover {
// td {
// background-color: #acc3e588 !important;
// }
// }
// // 斑马纹效果
// &.el-table__row--striped {
// td {
// background-color: #fafafa !important;
// }
// &:hover {
// td {
// background-color: #f0f2f5 !important;
// }
// }
// }
// }
// // 单元格样式
// td {
// // 单元格padding
// padding: 12px 0;
// // 单元格边框
// border-bottom: 1px solid #ebeef5;
// // 单元格文字对齐
// &.is-center {
// text-align: center;
// }
// &.is-right {
// text-align: right;
// }
// }
// }
// /* 当前行高亮(需要开启 highlight-current-row 属性) */
// .el-table__body tr.current-row {
// td {
// background-color: #73abebdf !important;
// }
// &:hover {
// td {
// background-color: #0572eedf !important;
// }
// }
// }
// /* 选中行样式 */
// .el-table__body tr.el-table__row--selected {
// td {
// background-color: #92eb65 !important;
// }
// }
// }
/* 通过css变量修改el-table样式 */
// .el-table {
// // 表头
// --el-table-header-bg-color: #f5f7fa;
// --el-table-header-text-color: #909399;
// // 边框样式
// --el-table-border: none;
// --el-table-border-color: #dcdfe6;
// /* 行样式 */
// --el-table-tr-bg-color: #f7cdcd; // 行背景色
// --el-table-row-hover-bg-color: #f5f7fa;
// --el-table-current-row-bg-color: #ecf5ff;
// --el-table-text-color: #606266;
// /* 斑马纹样式(需要开启 highlight-current-row 属性) */
// --el-fill-color-lighter: #c6f4c6;
// /* 展开行样式(需要开启 preserve-expanded-content 属性) */
// --el-table-expanded-cell-bg-color: transparent;
// }
src/styles/index.scss
View file @
7f91efbd
...
...
@@ -2,6 +2,7 @@
@use
'./FormCreate/index.scss'
;
@use
'./theme.scss'
;
@use
'element-plus/theme-chalk/dark/css-vars.css'
;
@use
'./element-plus.scss'
;
.reset-margin
[
class
*=
'el-icon'
]
+
span
{
margin-left
:
2px
!
important
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment