mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix(Card): nullable validator on card roundedClass prop
This commit is contained in:
@@ -61,7 +61,7 @@ export default {
|
||||
type: String,
|
||||
default: () => $ui.card.rounded,
|
||||
validator (value) {
|
||||
return ['sm', 'md', 'lg', 'xl', '2xl', '3xl'].map(size => `rounded-${size}`).includes(value)
|
||||
return !value || ['sm', 'md', 'lg', 'xl', '2xl', '3xl'].map(size => `rounded-${size}`).includes(value)
|
||||
}
|
||||
},
|
||||
bodyClass: {
|
||||
|
||||
Reference in New Issue
Block a user