From 87379c82058237f35c3e4ea2b5be4311205ad7b2 Mon Sep 17 00:00:00 2001 From: leonine <326026108@qq.com> Date: Wed, 22 Feb 2017 17:30:39 +0800 Subject: [PATCH] 去掉禁用行的 tr>td 的disabled 的css --- src/components/table/cell.vue | 2 +- src/components/table/table-body.vue | 3 +-- src/styles/components/table.less | 8 -------- src/styles/custom.less | 1 - 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/components/table/cell.vue b/src/components/table/cell.vue index 8e68af4..c866e0e 100644 --- a/src/components/table/cell.vue +++ b/src/components/table/cell.vue @@ -19,7 +19,7 @@ naturalIndex: Number, // index of rebuildData index: Number, // _index of data checked: Boolean, - disabled:Boolean, + disabled: Boolean, fixed: { type: [Boolean, String], default: false diff --git a/src/components/table/table-body.vue b/src/components/table/table-body.vue index e543ccc..b9b50eb 100644 --- a/src/components/table/table-body.vue +++ b/src/components/table/table-body.vue @@ -53,8 +53,7 @@ this.rowClsName(_index), { [`${this.prefixCls}-row-highlight`]: this.objData[_index] && this.objData[_index]._isHighlight, - [`${this.prefixCls}-row-hover`]: this.objData[_index] && this.objData[_index]._isHover, - [`${this.prefixCls}-row-disabled`]: this.objData[_index] && this.objData[_index]._isDisabled + [`${this.prefixCls}-row-hover`]: this.objData[_index] && this.objData[_index]._isHover } ]; }, diff --git a/src/styles/components/table.less b/src/styles/components/table.less index 20a84bb..576deb5 100644 --- a/src/styles/components/table.less +++ b/src/styles/components/table.less @@ -209,14 +209,6 @@ } } - &-row-disabled, - tr&-row-disabled, - { - td{ - background-color: @table-td-disabled-ng; - } - } - &-fixed, &-fixed-right{ position: absolute; top: 0; diff --git a/src/styles/custom.less b/src/styles/custom.less index 3e51cfd..fb3367f 100644 --- a/src/styles/custom.less +++ b/src/styles/custom.less @@ -43,7 +43,6 @@ @table-td-stripe-bg : #f5f7f9; @table-td-hover-bg : #ebf7ff; @table-td-highlight-bg : #ebf7ff; -@table-td-disabled-ng : #c3cbd6; @menu-dark-active-bg : #313540; @date-picker-cell-hover-bg : #e1f0fe; -- libgit2 0.21.4