Skip to content

Commit c844d2c

Browse files
remove unused code
1 parent f15cdac commit c844d2c

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

src/FAB.vue

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
return '64px';
207207
}
208208
},
209-
topListPadding() {
209+
listPadding() {
210210
switch (this.iconSize) {
211211
case 'small':
212212
return '58px';
@@ -221,34 +221,18 @@
221221
return '74px';
222222
}
223223
},
224-
bottomListPadding() {
225-
// mainIconSize + (paddingAmount) / 2 + 20
226-
switch (this.iconSize) {
227-
case 'small':
228-
return '48px';
229-
break;
230-
case 'medium':
231-
return '52px';
232-
break;
233-
case 'large':
234-
return '58px';
235-
break;
236-
default:
237-
return '52px';
238-
}
239-
},
240224
listPos() {
241225
if (this.position === 'top-right' || this.position === 'top-left') {
242226
return {
243-
top: this.allowRevertDirection ? 'unset' : this.topListPadding,
244-
bottom: this.allowRevertDirection ? this.topListPadding : 'unset',
227+
top: this.allowRevertDirection ? 'unset' : this.listPadding,
228+
bottom: this.allowRevertDirection ? this.listPadding : 'unset',
245229
position: this.allowRevertDirection ? 'absolute' : 'absolute',
246230
width: this.listSize,
247231
}
248232
}
249233
return {
250-
bottom: this.allowRevertDirection ? 'unset' : this.topListPadding,
251-
top: this.allowRevertDirection ? this.topListPadding : 'unset',
234+
bottom: this.allowRevertDirection ? 'unset' : this.listPadding,
235+
top: this.allowRevertDirection ? this.listPadding : 'unset',
252236
position: this.allowRevertDirection ? 'absolute' : 'absolute',
253237
width: this.listSize
254238
}

0 commit comments

Comments
 (0)