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] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E7=A6=81=E7=94=A8=E8=A1=8C?= =?UTF-8?q?=E7=9A=84=20tr>td=20=E7=9A=84disabled=20=E7=9A=84css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 8e68af4c..c866e0e3 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 e543ccc9..b9b50eb5 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 20a84bbb..576deb5c 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 3e51cfd8..fb3367f3 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;