Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复when表达式(简/繁)锚点错误 #65

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions zh-cn/ExtensionDocs/ContributionPoints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ menus节点下配置的对象内的key指的是要注册到哪个**`弹出菜单
|command |String |否 |菜单项关联的`命令`Id |
|title |String |否 |菜单项的名称,如果没有配置,将采用`命令`的title |
|[group](#group)|String |是 |菜单项要注册的位置,查看目前支持的[group列表](#group)。注意该属性必须写,不写视为无效菜单扩展 |
|[when](#when) |String |否 |控制菜单项是否显示的逻辑表达式,[表达式说明](#when) |
|checked |String |否 |`从HBuilderX 2.7.6及以上版本开始支持` <br/>控制菜单项是否处于checked的逻辑表达式,表达式语法和[when](#when)表达式一致 |
|[when](#when%e8%a1%a8%e8%be%be%e5%bc%8f) |String |否 |控制菜单项是否显示的逻辑表达式,[表达式说明](#when%e8%a1%a8%e8%be%be%e5%bc%8f) |
|checked |String |否 |`从HBuilderX 2.7.6及以上版本开始支持` <br/>控制菜单项是否处于checked的逻辑表达式,表达式语法和[when](#when%e8%a1%a8%e8%be%be%e5%bc%8f)表达式一致 |

> 当属性title和command都为空时,将被识别为分割线。

Expand Down Expand Up @@ -526,14 +526,14 @@ icons扩展点用于声明一个从图标(最好是SVG)和图标字体创建
##### 示例:
```json
"contributes": {
"icons": {
"loading": {
"description": "Loading Icon",
"default": {
"fontPath": "./icon.ttf",
"fontCharacter": "\\eb19"
}
}
"icons": {
"loading": {
"description": "Loading Icon",
"default": {
"fontPath": "./icon.ttf",
"fontCharacter": "\\eb19"
}
}
}
}
```
22 changes: 11 additions & 11 deletions zh-hant/ExtensionDocs/ContributionPoints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ menus節點下配置的對象內的key指的是要註冊到哪個**`彈出菜單
|command |String |否 |菜單項關聯的`命令`Id |
|title |String |否 |菜單項的名稱,如果沒有配置,將采用`命令`的title |
|[group](#group)|String |是 |菜單項要註冊的位置,查看目前支持的[group列表](#group)。註意該屬性必須寫,不寫視為無效菜單擴展 |
|[when](#when) |String |否 |控制菜單項是否顯示的邏輯表達式,[表達式說明](#when) |
|checked |String |否 |`從HBuilderX 2.7.6及以上版本開始支持` <br/>控制菜單項是否處於checked的邏輯表達式,表達式語法和[when](#when)表達式壹致 |
|[when](#when%e8%a1%a8%e9%81%94%e5%bc%8f) |String |否 |控制菜單項是否顯示的邏輯表達式,[表達式說明](#when%e8%a1%a8%e9%81%94%e5%bc%8f) |
|checked |String |否 |`從HBuilderX 2.7.6及以上版本開始支持` <br/>控制菜單項是否處於checked的邏輯表達式,表達式語法和[when](#when%e8%a1%a8%e9%81%94%e5%bc%8f)表達式壹致 |

> 當屬性title和command都為空時,將被識別為分割線。

Expand Down Expand Up @@ -526,14 +526,14 @@ icons扩展点用于声明一个从图标(最好是SVG)和图标字体创建
##### 示例:
```json
"contributes": {
"icons": {
"loading": {
"description": "Loading Icon",
"default": {
"fontPath": "./icon.ttf",
"fontCharacter": "\\eb19"
}
}
"icons": {
"loading": {
"description": "Loading Icon",
"default": {
"fontPath": "./icon.ttf",
"fontCharacter": "\\eb19"
}
}
}
}
```
```