mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
fix confirm dialog color not taking effect
This commit is contained in:
@@ -64,7 +64,9 @@ function open(titleOrText: string, textOrOptions?: string | Record<string, unkno
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options && isString(options['color'])) {
|
if (textOrOptions && isObject(textOrOptions) && isString(textOrOptions['color'])){
|
||||||
|
finalColor.value = (textOrOptions['color'] as string) || 'primary';
|
||||||
|
} else if (options && isString(options['color'])) {
|
||||||
finalColor.value = (options['color'] as string) || 'primary';
|
finalColor.value = (options['color'] as string) || 'primary';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user