improvements
This commit is contained in:
parent
4e2cb8c132
commit
f6f2e14c19
3 changed files with 19 additions and 10 deletions
|
|
@ -123,7 +123,7 @@ export default {
|
|||
try {
|
||||
let result
|
||||
const serialized = this.cValue.map(x => serializeShadow(x)).join(',')
|
||||
deserializeShadow(serialized) // validate
|
||||
serialized.split(/,/).map(deserializeShadow) // validate
|
||||
const expandedShadow = flattenDeep(findShadow(this.cValue, { dynamicVars: {}, staticVars: this.staticVars }))
|
||||
const fixedShadows = expandedShadow.map(x => ({ ...x, color: console.log(x) || rgb2hex(x.color) }))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue