lint
This commit is contained in:
parent
62e8bc58c6
commit
2e039561c9
7 changed files with 18 additions and 26 deletions
|
|
@ -75,7 +75,7 @@ export default {
|
|||
logoBgStyle() {
|
||||
const mask = this.enableMask
|
||||
? {}
|
||||
: {'background-color': this.enableMask ? '' : 'transparent'}
|
||||
: { 'background-color': this.enableMask ? '' : 'transparent' }
|
||||
|
||||
return {
|
||||
margin: `${this.logoMargin} 0`,
|
||||
|
|
|
|||
|
|
@ -633,17 +633,11 @@ export default {
|
|||
if (version === 0) {
|
||||
if (input.version) version = input.version
|
||||
// Old v1 naming: fg is text, btn is foreground
|
||||
if (
|
||||
colors.text === undefined &&
|
||||
colors.fg !== undefined
|
||||
) {
|
||||
if (colors.text === undefined && colors.fg !== undefined) {
|
||||
version = 1
|
||||
}
|
||||
// New v2 naming: text is text, fg is foreground
|
||||
if (
|
||||
colors.text !== undefined &&
|
||||
colors.fg !== undefined
|
||||
) {
|
||||
if (colors.text !== undefined && colors.fg !== undefined) {
|
||||
version = 2
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue