11import BodyTr from "./body-tr" ;
22import ExpandTr from "./expand-tr" ;
33import VueDomResizeObserver from "../../../src/comps/resize-observer" ;
4- import { clsName , getDomResizeObserverCompKey } from "../util" ;
5- import { getValByUnit } from "../../../src/utils/index.js" ;
4+ import { getDomResizeObserverCompKey } from "../util" ;
65import emitter from "../../../src/mixins/emitter" ;
76import {
87 COMPS_NAME ,
@@ -252,11 +251,7 @@ export default {
252251 } ,
253252 // is checkbox indeterminate
254253 isCheckboxIndeterminate ( ) {
255- const {
256- internalCheckboxSelectedRowKeys,
257- isCheckboxSelectedAll,
258- allRowKeys,
259- } = this ;
254+ const { internalCheckboxSelectedRowKeys, allRowKeys } = this ;
260255
261256 return (
262257 internalCheckboxSelectedRowKeys . length > 0 &&
@@ -283,7 +278,7 @@ export default {
283278 } ,
284279 // watch expandOption expandedRowKeys
285280 "expandOption.expandedRowKeys" : {
286- handler : function ( val ) {
281+ handler : function ( ) {
287282 this . initInternalExpandRowKeys ( ) ;
288283 } ,
289284 } ,
@@ -296,7 +291,7 @@ export default {
296291 } ,
297292 // watch selectedRowKeys
298293 "checkboxOption.selectedRowKeys" : {
299- handler : function ( val ) {
294+ handler : function ( ) {
300295 this . resetInternalCheckboxSelectedRowKeys ( ) ;
301296 } ,
302297 } ,
@@ -316,7 +311,7 @@ export default {
316311 } ,
317312 // watch selectedRowKeys
318313 "radioOption.selectedRowKey" : {
319- handler : function ( val ) {
314+ handler : function ( ) {
320315 this . initInternalRadioSelectedRowKey ( ) ;
321316 } ,
322317 } ,
@@ -341,7 +336,6 @@ export default {
341336 expandOption,
342337 internalExpandRowkeys,
343338 expandedRowkeys,
344- isControlledExpand,
345339 rowKeyFieldName,
346340 } = this ;
347341
@@ -386,7 +380,6 @@ export default {
386380 */
387381 rowClick ( { rowData, rowIndex } ) {
388382 const {
389- column,
390383 expandOption,
391384 isExpandRow,
392385 expandRowChange,
@@ -449,7 +442,7 @@ export default {
449442 isExpandRow ( { rowData, rowIndex } ) {
450443 let result = false ;
451444
452- const { colgroups , expandColumn, expandOption } = this ;
445+ const { expandColumn, expandOption } = this ;
453446
454447 if ( expandColumn && expandOption ) {
455448 // 是否允许展开
@@ -507,13 +500,7 @@ export default {
507500
508501 // init internal expand row keys
509502 initInternalExpandRowKeys ( ) {
510- const {
511- expandOption,
512- cloneTableData,
513- isControlledExpand,
514- rowKeyFieldName,
515- allRowKeys,
516- } = this ;
503+ const { expandOption, isControlledExpand, allRowKeys } = this ;
517504
518505 if ( ! expandOption ) {
519506 return false ;
@@ -585,7 +572,7 @@ export default {
585572 // init internal Checkbox SelectedRowKeys
586573 initInternalCheckboxSelectedRowKeys ( ) {
587574 let result = [ ] ;
588- const { checkboxOption, rowData , allRowKeys } = this ;
575+ const { checkboxOption, allRowKeys } = this ;
589576
590577 if ( ! checkboxOption ) {
591578 return false ;
@@ -785,7 +772,6 @@ export default {
785772 colgroups,
786773 actualRenderTableData,
787774 expandOption,
788- rowClick,
789775 expandRowChange,
790776 isExpandRow,
791777 getExpandRowComp,
0 commit comments