mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-29 06:06:52 +08:00
feat(react): support fontWeight in number
This commit is contained in:
@@ -390,6 +390,8 @@ class ElementNode extends ViewNode {
|
||||
(this.style as any)[styleKey] = colorArrayParse((styleValue as Color[]));
|
||||
} else if (styleKey.toLowerCase().indexOf('color') > -1) {
|
||||
(this.style as any)[styleKey] = colorParse((styleValue as Color));
|
||||
} else if (styleKey === 'fontWeight' && styleValue) {
|
||||
(this.style as any)[styleKey] = typeof styleValue !== 'string' ? styleValue.toString() : styleValue;
|
||||
} else if (styleKey === 'backgroundImage' && styleValue) {
|
||||
this.style = parseBackgroundImage(styleKey, styleValue, this.style);
|
||||
} else if (styleKey === 'textShadowOffset') {
|
||||
|
||||
Reference in New Issue
Block a user