表格按钮固定
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
<!-- tag -->
|
<!-- tag -->
|
||||||
<div v-if="field.render == 'tag' && fieldValue !== ''">
|
<div v-if="field.render == 'tag' && fieldValue !== ''">
|
||||||
<el-tag :type="getTagType(fieldValue, field.custom)" effect="dark">
|
<el-tag :type="getTagType(fieldValue, field.custom)" size="small">
|
||||||
{{ field.replaceValue ? field.replaceValue[fieldValue] : fieldValue }}
|
{{ field.replaceValue ? field.replaceValue[fieldValue] : fieldValue }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
@@ -193,10 +193,57 @@ const getTagType = (value: string, custom: any): TagProps['type'] => {
|
|||||||
padding: 4px 5px;
|
padding: 4px 5px;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
.table-operate .icon {
|
.cn-render-buttons {
|
||||||
font-size: 14px !important;
|
.icon {
|
||||||
color: var(--ba-bg-color-overlay) !important;
|
font-size: 12px !important;
|
||||||
|
// color: var(--ba-bg-color-overlay) !important;
|
||||||
|
}
|
||||||
|
.el-button--primary {
|
||||||
|
.icon {
|
||||||
|
color: var(--el-color-primary) !important;
|
||||||
|
&:hover {
|
||||||
|
color: var(--el-color-primary-light-3) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-button--success {
|
||||||
|
.icon {
|
||||||
|
color: var(--el-color-success) !important;
|
||||||
|
&:hover {
|
||||||
|
color: var(--el-color-success-light-3) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-button--warning {
|
||||||
|
.icon {
|
||||||
|
color: var(--el-color-warning) !important;
|
||||||
|
&:hover {
|
||||||
|
color: var(--el-color-warning-light-3) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-button--danger {
|
||||||
|
.icon {
|
||||||
|
color: var(--el-color-danger) !important;
|
||||||
|
&:hover {
|
||||||
|
color: var(--el-color-danger-light-3) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-button--info {
|
||||||
|
.icon {
|
||||||
|
color: var(--el-color-info) !important;
|
||||||
|
&:hover {
|
||||||
|
color: var(--el-color-info-light-3) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.move-button {
|
.move-button {
|
||||||
cursor: move;
|
cursor: move;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ const tableStore = new TableStore({
|
|||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
name: 'edit',
|
name: 'edit',
|
||||||
title: '编辑编辑',
|
title: '编辑',
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
icon: 'el-icon-EditPen',
|
icon: 'el-icon-EditPen',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
@@ -64,7 +64,7 @@ const tableStore = new TableStore({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'del',
|
name: 'del',
|
||||||
title: '删除接口',
|
title: '删除',
|
||||||
type: 'danger',
|
type: 'danger',
|
||||||
icon: 'el-icon-Delete',
|
icon: 'el-icon-Delete',
|
||||||
render: 'confirmButton',
|
render: 'confirmButton',
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ const tableStore = new TableStore({
|
|||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
field: 'state',
|
field: 'state',
|
||||||
width: '80',
|
width: '100',
|
||||||
render: 'tag',
|
render: 'tag',
|
||||||
custom: {
|
custom: {
|
||||||
0: 'danger',
|
0: 'danger',
|
||||||
@@ -133,7 +133,7 @@ const tableStore = new TableStore({
|
|||||||
{
|
{
|
||||||
name: 'edit',
|
name: 'edit',
|
||||||
title: '激活',
|
title: '激活',
|
||||||
type: 'success',
|
type: 'primary',
|
||||||
icon: 'el-icon-Open',
|
icon: 'el-icon-Open',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
disabled: row => {
|
disabled: row => {
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ const tableStore = new TableStore({
|
|||||||
{
|
{
|
||||||
name: 'edit',
|
name: 'edit',
|
||||||
title: '启用',
|
title: '启用',
|
||||||
type: 'success',
|
type: 'primary',
|
||||||
icon: 'el-icon-Open',
|
icon: 'el-icon-Open',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
disabled: row => {
|
disabled: row => {
|
||||||
|
|||||||
Reference in New Issue
Block a user