|
@@ -9,8 +9,8 @@ export class OptionsProcessor {
|
9
|
9
|
_.forEach(options, (value, key) => {
|
10
|
10
|
if (!value) { return; }
|
11
|
11
|
|
12
|
|
- this.processColors(key, value, options);
|
13
|
|
- this.processImages(key, value, options);
|
|
12
|
+ this.processColor(key, value, options);
|
|
13
|
+ this.processImage(key, value, options);
|
14
|
14
|
this.processButtonsPassProps(key, value);
|
15
|
15
|
|
16
|
16
|
if (_.isObject(value) || _.isArray(value)) {
|
|
@@ -19,13 +19,13 @@ export class OptionsProcessor {
|
19
|
19
|
});
|
20
|
20
|
}
|
21
|
21
|
|
22
|
|
- private processColors(key, value, options) {
|
|
22
|
+ private processColor(key, value, options) {
|
23
|
23
|
if (_.isEqual(key, 'color') || _.endsWith(key, 'Color')) {
|
24
|
24
|
options[key] = processColor(value);
|
25
|
25
|
}
|
26
|
26
|
}
|
27
|
27
|
|
28
|
|
- private processImages(key, value, options) {
|
|
28
|
+ private processImage(key, value, options) {
|
29
|
29
|
if (_.isEqual(key, 'icon') || _.isEqual(key, 'image') || _.endsWith(key, 'Icon') || _.endsWith(key, 'Image')) {
|
30
|
30
|
options[key] = resolveAssetSource(value);
|
31
|
31
|
}
|