refactor(ivy): Implement computeStaticStyling
(#34418)
The `computeStaticStyling` will be used for computing static styling value during `firstCreatePass`. The function takes into account static styling from the template as well as from the host bindings. The host bindings need to be merged in front of the template so that they have the correct priority. PR Closes #34418
This commit is contained in:

committed by
Miško Hevery

parent
54af220107
commit
b7ff38b1ef
@ -600,7 +600,8 @@ export interface TNode {
|
||||
* are encountered. If and when this happens then the existing `StylingMapArray` value
|
||||
* will be placed into the initial styling slot in the newly created `TStylingContext`.
|
||||
*/
|
||||
styles: StylingMapArray|TStylingContext|null;
|
||||
// TODO(misko): `Remove StylingMapArray|TStylingContext|null` in follow up PR.
|
||||
styles: StylingMapArray|TStylingContext|string|null;
|
||||
|
||||
/**
|
||||
* A collection of all class bindings and/or static class values for an element.
|
||||
@ -620,7 +621,8 @@ export interface TNode {
|
||||
* are encountered. If and when this happens then the existing `StylingMapArray` value
|
||||
* will be placed into the initial styling slot in the newly created `TStylingContext`.
|
||||
*/
|
||||
classes: StylingMapArray|TStylingContext|null;
|
||||
// TODO(misko): `Remove StylingMapArray|TStylingContext|null` in follow up PR.
|
||||
classes: StylingMapArray|TStylingContext|string|null;
|
||||
|
||||
/**
|
||||
* Stores the head/tail index of the class bindings.
|
||||
|
Reference in New Issue
Block a user