Lint Fix
parent
6049081220
commit
b469494713
|
@ -870,7 +870,7 @@ export default {
|
||||||
|
|
||||||
this.$refs.resizeHelper.style.display = 'block';
|
this.$refs.resizeHelper.style.display = 'block';
|
||||||
},
|
},
|
||||||
onColumnResizeEnd(event) {
|
onColumnResizeEnd() {
|
||||||
let delta = this.$refs.resizeHelper.offsetLeft - this.lastResizeHelperX;
|
let delta = this.$refs.resizeHelper.offsetLeft - this.lastResizeHelperX;
|
||||||
let columnWidth = this.resizeColumnElement.offsetWidth;
|
let columnWidth = this.resizeColumnElement.offsetWidth;
|
||||||
let newColumnWidth = columnWidth + delta;
|
let newColumnWidth = columnWidth + delta;
|
||||||
|
@ -918,7 +918,7 @@ export default {
|
||||||
this.documentColumnResizeEndListener = document.addEventListener('mouseup', (event) => {
|
this.documentColumnResizeEndListener = document.addEventListener('mouseup', (event) => {
|
||||||
if(this.columnResizing) {
|
if(this.columnResizing) {
|
||||||
this.columnResizing = false;
|
this.columnResizing = false;
|
||||||
this.onColumnResizeEnd(event);
|
this.onColumnResizeEnd();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -546,7 +546,6 @@ data() {
|
||||||
<Column field="color" header="Color" :resizable="true"></Column>
|
<Column field="color" header="Color" :resizable="true"></Column>
|
||||||
</DataTable>
|
</DataTable>
|
||||||
</template>
|
</template>
|
||||||
</CodeHighlight>
|
|
||||||
</CodeHighlight>
|
</CodeHighlight>
|
||||||
|
|
||||||
<p>It is important to note that when you need to change column widths, since table width is 100%, giving fixed pixel widths does not work well as browsers scale them, instead give percentage widths.</p>
|
<p>It is important to note that when you need to change column widths, since table width is 100%, giving fixed pixel widths does not work well as browsers scale them, instead give percentage widths.</p>
|
||||||
|
@ -559,7 +558,6 @@ data() {
|
||||||
<Column field="color" header="Color" :resizable="true" headerStyle="width: 20%"></Column>
|
<Column field="color" header="Color" :resizable="true" headerStyle="width: 20%"></Column>
|
||||||
</DataTable>
|
</DataTable>
|
||||||
</template>
|
</template>
|
||||||
</CodeHighlight>
|
|
||||||
</CodeHighlight>
|
</CodeHighlight>
|
||||||
|
|
||||||
<h3>Data Export</h3>
|
<h3>Data Export</h3>
|
||||||
|
|
Loading…
Reference in New Issue