Before creating a component you need to decide, which component do you require: classic or mutable.
If a component is created for internal objectives and you are not ready to support backward compatibility – its a
classic Vue component
There are two local components supported by BitrixVue:
First type are classic Vue components based on simple objects without special processing.
Second type are BitrixVue mutable components. This type is created for affiliated third-party developers. They can customize components supplied within Bitrix Framework, without necessity to modify product's source code.
Learn more...
. When you develop a component that can be changed by a third party – its a
mutable BitrixVue component
There are two local components supported by BitrixVue:
First type are classic Vue components based on simple objects without special processing.
Second type are BitrixVue mutable components. This type is created for affiliated third-party developers. They can customize components supplied within Bitrix Framework, without necessity to modify product's source code.
BitrixVue 3 components can handle with localizations and this aspect is overviewed in detail in the article: Handing localization.
Event-driven model
There are several types of events. You can find how to select a suitable event in this article: Event-driven model.
Handling $Bitrix global variable functions
In addition to localizations and event-drive model, there are several additional classes that help to better reveal interaction with Bitrix Framework. You can find more in this article: Interaction with Bitrix Framework.
Local component file content
Note: Naming variable for export doesn't contain the module - only the component name in PascalCase.