Skip to content

Commit 4387f05

Browse files
committed
doc resize
1 parent 4da3a60 commit 4387f05

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

examples/src/demo/normal-data-grid.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
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"
@@ -78,6 +78,7 @@
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,

examples/src/demo/spreadsheet.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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"
@@ -20,6 +20,7 @@
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
}),

0 commit comments

Comments
 (0)