Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions src/styles/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,70 @@
.el-popup-parent--hidden {
width: 100% !important;
}
.el-table {
background: transparent !important;
--el-table-border-color: none !important;
.cell {
line-height: 1.5 !important;
}
thead.is-group th.el-table__cell,
tr {
background: transparent !important;
}
.el-table__cell {
padding: 6px 0 !important;
border-right: none;
color: #9cbdd6;
}
thead {
color: var(--right-content-table-thead-color) !important;
background: linear-gradient(180deg, #365377, #111c29) !important;
th.el-table__cell {
background-color: #9ab5c2 !important;
background: transparent !important;
font-weight: 400 !important;
border-right: 1px solid rgba(213, 234, 255, 0.1) !important;
}
tr:first-child {
th.el-table__cell.is-leaf {
background: linear-gradient(180deg, #365377, #111c29) !important;
}
}
}
tbody {
.el-table__cell {
border-right: 1px solid rgba(213, 234, 255, 0.1);
}
tr:nth-child(even) {
background: linear-gradient(#2a3542, #1c242e) !important;
--el-table-row-hover-bg-color: #173f5b !important;
&.current-row > td.el-table__cell {
background: linear-gradient(#2a3542, #1c242e);
}
&:hover {
background: #173f5b !important;
}
}
tr:nth-child(odd) {
background: #1a2635 !important;
--el-table-row-hover-bg-color: #173f5b !important;
&.current-row > td.el-table__cell {
background: #1a2635;
}
&:hover {
background: #173f5b !important;
}
}
}
.el-button {
font-size: 12px !important;
height: 19px !important;
}
--el-table-fixed-left-column: inset 16px 0 10px -10px rgba(25, 33, 39, 0.7) !important;
--el-table-fixed-right-column: inset -16px 0 10px -10px rgba(25, 33, 39, 0.7) !important;
}

.el-button.is-link {
color: #f50b0b !important;
font-size: 14px !important;
}
9 changes: 7 additions & 2 deletions src/views/Example/Page/ExamplePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const crudSchemas = reactive<CrudSchema[]>([
{
field: 'title',
label: t('tableDemo.title'),
width: '200px',
search: {
component: 'Input'
},
Expand All @@ -118,6 +119,7 @@ const crudSchemas = reactive<CrudSchema[]>([
{
field: 'display_time',
label: t('tableDemo.displayTime'),
width: '200px',
search: {
hidden: true
},
Expand Down Expand Up @@ -191,11 +193,13 @@ const crudSchemas = reactive<CrudSchema[]>([
{
field: 'content',
label: t('exampleDemo.content'),
width: '460px',
search: {
hidden: true
},
table: {
show: false
show: false,
showOverflowTooltip: false
},
form: {
component: 'Editor',
Expand All @@ -215,6 +219,7 @@ const crudSchemas = reactive<CrudSchema[]>([
{
field: 'action',
width: '260px',
fixed: 'right',
label: t('tableDemo.action'),
search: {
hidden: true
Expand All @@ -236,7 +241,7 @@ const crudSchemas = reactive<CrudSchema[]>([
<BaseButton type="success" onClick={() => action(data.row, 'detail')}>
{t('exampleDemo.detail')}
</BaseButton>
<BaseButton type="danger" onClick={() => delData(data.row)}>
<BaseButton type="danger" link onClick={() => delData(data.row)}>
{t('exampleDemo.del')}
</BaseButton>
</>
Expand Down