chore: using includes instead of indexOf (#8261)
This commit is contained in:
@@ -124,7 +124,7 @@ export default createComponent({
|
||||
}
|
||||
|
||||
// hide border when color is linear-gradient
|
||||
if (color.indexOf('gradient') !== -1) {
|
||||
if (color.includes('gradient')) {
|
||||
style.border = 0;
|
||||
} else {
|
||||
style.borderColor = color;
|
||||
|
||||
Reference in New Issue
Block a user