2020-02-14 14:36:42 +08:00
|
|
|
export const enum ShapeFlags {
|
|
|
|
ELEMENT = 1,
|
|
|
|
FUNCTIONAL_COMPONENT = 1 << 1,
|
|
|
|
STATEFUL_COMPONENT = 1 << 2,
|
|
|
|
TEXT_CHILDREN = 1 << 3,
|
|
|
|
ARRAY_CHILDREN = 1 << 4,
|
|
|
|
SLOTS_CHILDREN = 1 << 5,
|
2020-03-31 22:52:42 +08:00
|
|
|
TELEPORT = 1 << 6,
|
2020-02-16 00:40:09 +08:00
|
|
|
SUSPENSE = 1 << 7,
|
|
|
|
COMPONENT_SHOULD_KEEP_ALIVE = 1 << 8,
|
|
|
|
COMPONENT_KEPT_ALIVE = 1 << 9,
|
2020-02-14 14:36:42 +08:00
|
|
|
COMPONENT = ShapeFlags.STATEFUL_COMPONENT | ShapeFlags.FUNCTIONAL_COMPONENT
|
|
|
|
}
|