feat(fs.shared): Support for _options prefix in Example component
This commit is contained in:
parent
d96f618461
commit
0bffa95167
1 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,10 @@ const Pattern = props => {
|
||||||
measurements: { ...measurements },
|
measurements: { ...measurements },
|
||||||
...settings
|
...settings
|
||||||
}
|
}
|
||||||
|
// Support for options_ prefix
|
||||||
|
for (const [key, val] of Object.entries(props)) {
|
||||||
|
if (key.slice(0,8) === 'options_') settings.options[key.slice(8)] = val
|
||||||
|
}
|
||||||
|
|
||||||
if (part !== '') settings.only = [part]
|
if (part !== '') settings.only = [part]
|
||||||
const patternInstance = new patterns[pattern](settings)
|
const patternInstance = new patterns[pattern](settings)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue