Skip to content

Legacy Usage

Zova adheres to the concept of progressive development. If the logic of some Vue components is relatively simple, or if you want to use the old Vue component code, you can directly use SFC development as usual without introducing an IOC container

Initialization code structure

Zova provides a file directory for centralized management of legacy code. The directory name is {Project}/src/legacy, if it does not exist, you need to initialize it first

TIP

Context Menu - [Project Path]: Zova Init/Legacy

VSCode extension will automatically create three directory: composables, components, and pages. You can also add other directory as needed

Alias Path

You can access the resources in the legacy directory through the alias path

Alias PathReal Path
@src/legacy
@/composablessrc/legacy/composables
@/componentssrc/legacy/components
@/pagessrc/legacy/pages

Released under the MIT License.