fix: lint some code
This commit is contained in:
parent
40bf70dd08
commit
16ab12fd82
1 changed files with 2 additions and 2 deletions
|
@ -202,8 +202,8 @@
|
|||
let style = {};
|
||||
|
||||
if (this.draggable) {
|
||||
let customTop = this.styles.top || 0 ? parseFloat(this.styles.top) : 0
|
||||
let customLeft = this.styles.left || 0 ? parseFloat(this.styles.left) : 0
|
||||
let customTop = this.styles.top ? parseFloat(this.styles.top) : 0;
|
||||
let customLeft = this.styles.left ? parseFloat(this.styles.left) : 0;
|
||||
if (this.dragData.x !== null) style.left = `${this.dragData.x - customLeft}px`;
|
||||
if (this.dragData.y !== null) style.top = `${this.dragData.y - customTop}px`;
|
||||
const width = parseInt(this.width);
|
||||
|
|
Loading…
Add table
Reference in a new issue