Skip to content

Commit 750ec29

Browse files
authored
fix: Replacing the Resource Management and Model Management Icons in the Plugin Bar (opentiny#1740)
1 parent 1d85e2e commit 750ec29

7 files changed

Lines changed: 30 additions & 26 deletions

File tree

Lines changed: 12 additions & 1 deletion
Loading
Lines changed: 3 additions & 12 deletions
Loading
Lines changed: 3 additions & 9 deletions
Loading
File renamed without changes.

packages/plugins/bridge/meta.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
id: 'engine.plugins.bridge',
3-
title: '资源管理',
3+
title: '工具管理',
44
type: 'plugins',
5-
icon: 'plugin-icon-sresources'
5+
icon: 'plugin-icon-tool'
66
}

packages/plugins/bridge/src/BridgeManage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
:class="['list-item', index === state.activeIndex ? 'active' : '']"
1515
@click.stop="openEdit(item, index)"
1616
>
17-
<svg-icon name="plugin-icon-sresources" class="list-item-icon"></svg-icon>
17+
<svg-icon name="plugin-icon-tool" class="list-item-icon"></svg-icon>
1818
<div class="item-label">{{ item.name }}</div>
1919
<svg-button
2020
class="setting-icon"

packages/plugins/resource/src/Main.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
:class="['resource-item', { 'active-item': item.active }]"
2626
@click="openResourceList(item)"
2727
>
28-
<span>
28+
<span class="resource-item-content">
2929
<svg-icon name="plugin-icon-resource"></svg-icon>
3030
<span>{{ item.name }}</span>
3131
</span>
@@ -170,6 +170,13 @@ export default {
170170
display: inline;
171171
}
172172
}
173+
.resource-item-content {
174+
display: flex;
175+
align-items: center;
176+
.svg-icon {
177+
margin-right: 8px;
178+
}
179+
}
173180
}
174181
175182
.active-item {
@@ -180,5 +187,6 @@ export default {
180187
}
181188
.plugin-resource {
182189
width: 100%;
190+
height: 100%;
183191
}
184192
</style>

0 commit comments

Comments
 (0)