mirror of https://github.com/vuejs/core.git
21 lines
539 B
TypeScript
21 lines
539 B
TypeScript
|
/**
|
||
|
* Flags to optimize vapor `createFor` runtime behavior, shared between the
|
||
|
* compiler and the runtime
|
||
|
*/
|
||
|
export enum VaporVForFlags {
|
||
|
/**
|
||
|
* v-for is the only child of a parent container, so it can take the fast
|
||
|
* path with textContent = '' when the whole list is emptied
|
||
|
*/
|
||
|
FAST_REMOVE = 1,
|
||
|
/**
|
||
|
* v-for used on component - we can skip creating child scopes for each block
|
||
|
* because the component itself already has a scope.
|
||
|
*/
|
||
|
IS_COMPONENT = 1 << 1,
|
||
|
/**
|
||
|
* v-for inside v-ince
|
||
|
*/
|
||
|
ONCE = 1 << 2,
|
||
|
}
|