File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 6666 fixed-header
6767 border-y
6868 :max-height =" 500"
69- :scroll-width =" tableScrollWdith "
69+ :scroll-width =" 0 "
7070 :sort-option =" sortOption"
7171 :virtual-scroll-option =" virtualScrollOption"
7272 :columns =" columns"
7878 :checkbox-option =" checkboxOption"
7979 :row-style-option =" rowStyleOption"
8080 :cell-selection-option =" cellSelectionOption"
81+ :column-width-resize-option =" columnWidthResizeOption"
8182 />
8283 </div >
8384 </div >
@@ -96,6 +97,9 @@ export default {
9697 mixins: [I18nMixins],
9798 data () {
9899 return {
100+ columnWidthResizeOption: {
101+ enable: true ,
102+ },
99103 cellSelectionOption: {
100104 // disble cell selection
101105 enable: false ,
Original file line number Diff line number Diff line change 88 <ve-table
99 style =" word-break : break-word "
1010 fixed-header
11- :scroll-width =" 2000 "
11+ :scroll-width =" 0 "
1212 :max-height =" 500"
1313 border-y
1414 :columns =" columns"
2020 :contextmenu-body-option =" contextmenuBodyOption"
2121 :contextmenu-header-option =" contextmenuHeaderOption"
2222 :row-style-option =" rowStyleOption"
23+ :column-width-resize-option =" columnWidthResizeOption"
2324 />
2425 </div >
2526</template >
@@ -63,6 +64,9 @@ export default {
6364 return {
6465 // start row index
6566 startRowIndex: 0 ,
67+ columnWidthResizeOption: {
68+ enable: true ,
69+ },
6670 virtualScrollOption: {
6771 // 是否开启
6872 enable: true ,
@@ -241,7 +245,7 @@ export default {
241245 title: keyValue,
242246 field: keyValue,
243247 key: keyValue,
244- width: 50 ,
248+ width: 90 ,
245249 edit: true ,
246250 };
247251 }),
You can’t perform that action at this time.
0 commit comments