mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 20:01:25 +00:00
add validator function for grid gap
This commit is contained in:
parent
3f4a8a543e
commit
df7b736f5d
@ -21,10 +21,14 @@ export default {
|
||||
props: {
|
||||
/**
|
||||
* The vertical and horizontal gap between grid items
|
||||
* @options xxx-small|xx-small|x-small|small|base|large|x-large|xx-large|xxx-large
|
||||
*/
|
||||
gap: {
|
||||
type: String,
|
||||
default: 'small',
|
||||
validator: value => (
|
||||
value.match(/(xxx-small|xx-small|x-small|small|base|large|x-large|xx-large|xxx-large)/)
|
||||
)
|
||||
},
|
||||
/**
|
||||
* The minimum width of each column
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user