add 'none' keyword to PISS shadow definiton that equals empty array
This commit is contained in:
parent
a8092de638
commit
ab8907909b
5 changed files with 16 additions and 6 deletions
|
|
@ -138,7 +138,11 @@ export const deserialize = (input) => {
|
|||
const [property, value] = d.split(':')
|
||||
let realValue = value.trim()
|
||||
if (property === 'shadow') {
|
||||
realValue = value.split(',').map(v => parseShadow(v.trim()))
|
||||
if (realValue === 'none') {
|
||||
realValue = []
|
||||
} else {
|
||||
realValue = value.split(',').map(v => parseShadow(v.trim()))
|
||||
}
|
||||
} if (!Number.isNaN(Number(value))) {
|
||||
realValue = Number(value)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue