Overview of Vue Reactivity Transform
.value. It uses macro functions (prefixed with $) as markers for the Vue compiler to treat variables as reactive. This feature is disabled by default and requires explicit opt-in.website·Indexed 31 days ago
https://www.zhaobc.site/A collection of personal technical learning notes covering backend and frontend development. Content includes Java (DBUnit, Mockito), Python (100 Days from Beginner to Master, official tutorial), Spring, JavaScript (including Bosn's course notes), TypeScript (Handbook, Narrowing, Types), and Vue (Vue2, Pinia).
.value. It uses macro functions (prefixed with $) as markers for the Vue compiler to treat variables as reactive. This feature is disabled by default and requires explicit opt-in.The Gitlab Contributors plugin is designed for vuepress-theme-hope projects hosted on Gitlab. It allows developers to display contributor avatars for an entire project or for specific pages.
Key capabilities include:
PRIVATE_ACCESS_TOKEN.JavaScript expressions are categorized into several types:
10 * 20).[1, 2] is equivalent to new Array(1, 2), and {x: 1, y: 2} is equivalent to creating a new Object and assigning properties.o.x) or bracket notation (o['x']).func()).new keyword (e.g., new Func(1, 2)).<TransitionGroup> is a built-in Vue component used to animate the insertion, removal, and reordering of elements or components within a list. Unlike <Transition>, it is specifically designed for multiple elements.docker info to display system-wide information about the Docker installation. Use docker inspect to retrieve low-level detailed information on specific Docker objects (such as containers or images) by providing their name or ID.docker info
docker inspect [OPTIONS] NAME|ID [NAME|ID...]JavaScript categorizes data into two main groups: primitive types and object types.
Primitive types include:
numberstringbooleannullundefinedObject types (composite types) include:
FunctionArrayDate and other built-in objects.:, v-bind), and events (@, v-on) are described using a syntax consistent with HTML. Alternatively, a JavaScript object can represent the UI structure using tag, props, and children keys.// JavaScript object representation of UI
const title = {
tag: 'h1',
props: {
onClick: handler,
},
children: [
{ tag: 'span' },
],
}
// Equivalent Vue template:
// <h1 @click="handler"><span></span></h1>vuepress-theme-hope theme.Pinia simplifies state management compared to Vuex by removing several layers of ceremony. Key differences include: