Commit 87379c82058237f35c3e4ea2b5be4311205ad7b2

Authored by leonine
1 parent 1952df8c

去掉禁用行的 tr>td 的disabled 的css

src/components/table/cell.vue
@@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
19 naturalIndex: Number, // index of rebuildData 19 naturalIndex: Number, // index of rebuildData
20 index: Number, // _index of data 20 index: Number, // _index of data
21 checked: Boolean, 21 checked: Boolean,
22 - disabled:Boolean, 22 + disabled: Boolean,
23 fixed: { 23 fixed: {
24 type: [Boolean, String], 24 type: [Boolean, String],
25 default: false 25 default: false
src/components/table/table-body.vue
@@ -53,8 +53,7 @@ @@ -53,8 +53,7 @@
53 this.rowClsName(_index), 53 this.rowClsName(_index),
54 { 54 {
55 [`${this.prefixCls}-row-highlight`]: this.objData[_index] && this.objData[_index]._isHighlight, 55 [`${this.prefixCls}-row-highlight`]: this.objData[_index] && this.objData[_index]._isHighlight,
56 - [`${this.prefixCls}-row-hover`]: this.objData[_index] && this.objData[_index]._isHover,  
57 - [`${this.prefixCls}-row-disabled`]: this.objData[_index] && this.objData[_index]._isDisabled 56 + [`${this.prefixCls}-row-hover`]: this.objData[_index] && this.objData[_index]._isHover
58 } 57 }
59 ]; 58 ];
60 }, 59 },
src/styles/components/table.less
@@ -209,14 +209,6 @@ @@ -209,14 +209,6 @@
209 } 209 }
210 } 210 }
211 211
212 - &-row-disabled,  
213 - tr&-row-disabled,  
214 - {  
215 - td{  
216 - background-color: @table-td-disabled-ng;  
217 - }  
218 - }  
219 -  
220 &-fixed, &-fixed-right{ 212 &-fixed, &-fixed-right{
221 position: absolute; 213 position: absolute;
222 top: 0; 214 top: 0;
src/styles/custom.less
@@ -43,7 +43,6 @@ @@ -43,7 +43,6 @@
43 @table-td-stripe-bg : #f5f7f9; 43 @table-td-stripe-bg : #f5f7f9;
44 @table-td-hover-bg : #ebf7ff; 44 @table-td-hover-bg : #ebf7ff;
45 @table-td-highlight-bg : #ebf7ff; 45 @table-td-highlight-bg : #ebf7ff;
46 -@table-td-disabled-ng : #c3cbd6;  
47 @menu-dark-active-bg : #313540; 46 @menu-dark-active-bg : #313540;
48 @date-picker-cell-hover-bg : #e1f0fe; 47 @date-picker-cell-hover-bg : #e1f0fe;
49 48