Skip to content

Local Component

A local component is a VUE file in a project

Config

First of all, it needs to be done in the helper.json. The path of the vue file that needs to be scanned is configured inside the file.

local-config

Function

For this part of the document,The following features are available in vue-helper.

Tip

The following functions need to be added commet by the user in the document to assistance can be achieved

1. Global documents

You can completely view the relevant properties, events, slots and other information of local components, so that you can have a more detailed understanding of each component. local-config

The entrance is in the panel in the lower right corner local-pannel

When the annotation is updated, you can use the Update button to scan and update the local component information synchronously.

2. Component import

You can freely customize the default properties and events of your imported components, and use your components flexibly. local-import

The import of the component can specify an example, if specified. The introduction of some codes has been specified. local-import-self

If you add the following comments to a property or event, they will be automatically brought out in the generated import
props comment local-prop-require Or add the Required attribute to Props local-prop-require2 emits comment local-emit-require

3. Component property value hints

You can freely customize your property enumeration values according to your needs local-attr-value This can be achieved by adding the following annotation to the props property, with the enumerated values separated by spaces local-enum

4. Vue public plug-ins and components

It is convenient to view the public plug-ins of the project and what are the components, so that you can have a global understanding. localCommon