mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 17:00:36 +01:00
fix(Card): nullable validator on card roundedClass prop
This commit is contained in:
@@ -61,7 +61,7 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
default: () => $ui.card.rounded,
|
default: () => $ui.card.rounded,
|
||||||
validator (value) {
|
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: {
|
bodyClass: {
|
||||||
|
|||||||
Reference in New Issue
Block a user