@@ -6,16 +6,24 @@ You can hover the mouse between two columns and drag
66
77``` html
88<template >
9- <ve-table
10- style =" width :100% "
11- :scroll-width =" 0"
12- :columns =" columns"
13- :table-data =" tableData"
14- :border-around =" true"
15- :border-x =" true"
16- :border-y =" true"
17- :column-width-resize-option =" columnWidthResizeOption"
18- />
9+ <div >
10+ <div v-show =" columnResizeInfo.column" style =" margin :10px 0 ;line-height :2 " >
11+ <div >column:{{columnResizeInfo.column}}</div >
12+ <div >differWidth:{{columnResizeInfo.differWidth}}</div >
13+ <div >columnWidth:{{columnResizeInfo.columnWidth}}</div >
14+ <div >tableWidth:{{columnResizeInfo.tableWidth}}</div >
15+ </div >
16+ <ve-table
17+ style =" width :100% "
18+ :scroll-width =" 0"
19+ :columns =" columns"
20+ :table-data =" tableData"
21+ :border-around =" true"
22+ :border-x =" true"
23+ :border-y =" true"
24+ :column-width-resize-option =" columnWidthResizeOption"
25+ />
26+ </div >
1927</template >
2028
2129<script >
@@ -29,11 +37,10 @@ You can hover the mouse between two columns and drag
2937 minWidth: 30 ,
3038 // column size change
3139 sizeChange : ({ column, differWidth, columnWidth, tableWidth }) => {
32- console .log (" ----------sizeChange----------" );
33- console .log (" column::" , column);
34- console .log (" differWidth::" , differWidth);
35- console .log (" columnWidth::" , columnWidth);
36- console .log (" tableWidth::" , tableWidth);
40+ this .columnResizeInfo .column = column;
41+ this .columnResizeInfo .differWidth = differWidth;
42+ this .columnResizeInfo .columnWidth = columnWidth;
43+ this .columnResizeInfo .tableWidth = tableWidth;
3744 },
3845 },
3946 columns: [
@@ -55,6 +62,12 @@ You can hover the mouse between two columns and drag
5562 { field: " col5" , key: " col5" , title: " Col5" },
5663 { field: " col6" , key: " col6" , title: " Col6" },
5764 ],
65+ columnResizeInfo: {
66+ column: " " ,
67+ differWidth: " " ,
68+ columnWidth: " " ,
69+ tableWidth: " " ,
70+ },
5871 tableData: [],
5972 };
6073 },
0 commit comments