Skip to content

Commit

Permalink
docs: icon
Browse files Browse the repository at this point in the history
  • Loading branch information
zhennann committed Oct 3, 2024
1 parent b491c8e commit 8f5332e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions zova-docs/guide/techniques/icon/icon-engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,21 @@ import { VBtn } from 'vuetify/components';

## Create Icon

### 1. Prepare icon
We can either add icons to the existing module `home-icon` or create a new module

Place the SVG icon into the icon module's group directory. For example, the `default` group of module `home-icon` has the group directory path:
`src/suite/a-home/modules/home-icon/icons`

### 2. Build icon
### 1. Initialize code skeleton

::: tip
Context Menu - [Module Path]: `Zova Tools/Generate .metadata`
Context Menu - [Module Path]: `Zova Init/Icon`
:::

## Create Icon Module
### 2. Prepare icon

In addition to the module `home-icon`, you can also create several new icon modules and add icons to them
Place the SVG icon into the icon module's group directory. For example, the `default` group of module `home-icon` has the group directory path:
`src/suite/a-home/modules/home-icon/icons`

### 3. Build icon

::: tip
Context Menu - [Module Path]: `Zova Init/Icon`
Context Menu - [Module Path]: `Zova Tools/Generate .metadata`
:::
18 changes: 9 additions & 9 deletions zova-docs/zh/guide/techniques/icon/icon-engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,21 @@ import { VBtn } from 'vuetify/components';

## 创建图标

### 1. 准备图标
我们既可以在现有的模块`home-icon`中添加图标,也可以创建新的模块

将 SVG 图标放入图标模块的分组目录中。比如模块`home-icon``default`分组,其分组目录路径是:
`src/suite/a-home/modules/home-icon/icons`

### 2. 构建图标
### 1. 初始化代码骨架

::: tip
右键菜单 - [模块路径]: `Zova Tools/Generate .metadata`
右键菜单 - [模块路径]: `Zova Init/Icon`
:::

## 创建图标模块
### 2. 准备图标

除了模块`home-icon`,还可以创建若干新的模块,在其中添加图标
将 SVG 图标放入图标模块的分组目录中。比如模块`home-icon``default`分组,其分组目录路径是:
`src/suite/a-home/modules/home-icon/icons`

### 3. 构建图标

::: tip
右键菜单 - [模块路径]: `Zova Init/Icon`
右键菜单 - [模块路径]: `Zova Tools/Generate .metadata`
:::

0 comments on commit 8f5332e

Please sign in to comment.