Skip to content

Commit 6ce4589

Browse files
committed
修复:插件管理左侧溢出样式异常问题
1 parent de7d7a8 commit 6ce4589

4 files changed

Lines changed: 32 additions & 25 deletions

File tree

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## v0.3.0
2+
3+
- 修复:插件管理左侧溢出样式异常问题
4+
- 优化:插件发布错误提醒增加错误码
5+
16
## v0.2.0
27

38
- 新增:文件自动关联和打开

electron/mapi/manager/system/plugin/store/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ export const ManagerPluginStore = {
147147
if (!releaseDoc) {
148148
throw 'PluginReleaseDocNotFound'
149149
}
150-
throw 'PluginReleaseDocFormatError'
150+
if (!payload.feature) {
151+
throw 'PluginReleaseDocFormatError:-1'
152+
}
153+
throw 'PluginReleaseDocFormatError:-2'
151154
}
152155
const pluginInfo = await this._getPluginInfo(root, configJson)
153156
const tempFile = await Files.temp('zip')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "focusany",
3-
"version": "0.2.0",
3+
"version": "0.3.0-beta",
44
"main": "dist-electron/main/index.js",
55
"description": "FocusAny",
66
"author": "ModStartLib",

src/pages/System/SystemPlugin.vue

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -190,31 +190,30 @@ const doInstallStore = async () => {
190190

191191
<template>
192192
<div class="flex h-full">
193-
<div class="w-52 flex-shrink-0 border-r border-default p-1 h-full overflow-y-auto relative">
194-
<div v-for="(r,rIndex) in recordsFilter"
195-
class="flex items-center rounded-lg cursor-pointer select-none p-2 hover:bg-gray-100 dark:hover:bg-gray-600 relative"
196-
@click="doActivePlugin(rIndex)"
197-
:class="recordCurrent?.name===r.name?'bg-gray-200 dark:bg-gray-700':''"
198-
>
199-
<div class="w-8 rounded-lg mr-2">
200-
<img :src="r.logo"
201-
:class="r.type===PluginType.SYSTEM?'dark:invert':'plugin-logo-filter'"/>
202-
</div>
203-
<div class="flex-grow w-0 truncate">
204-
{{ r.title }}
193+
<div class="w-52 flex-shrink-0 border-r border-default h-full flex flex-col relative">
194+
<div class="flex-grow overflow-y-auto p-1">
195+
<div v-for="(r,rIndex) in recordsFilter"
196+
class="flex items-center rounded-lg cursor-pointer select-none p-2 hover:bg-gray-100 dark:hover:bg-gray-600 relative"
197+
@click="doActivePlugin(rIndex)"
198+
:class="recordCurrent?.name===r.name?'bg-gray-200 dark:bg-gray-700':''">
199+
<div class="w-8 rounded-lg mr-2">
200+
<img :src="r.logo"
201+
:class="r.type===PluginType.SYSTEM?'dark:invert':'plugin-logo-filter'"/>
202+
</div>
203+
<div class="flex-grow w-0 truncate">
204+
{{ r.title }}
205+
</div>
205206
</div>
206207
</div>
207-
<div class="absolute bottom-0 left-0 right-0 p-3 border-t border-solid border-default">
208-
<div class="text-center">
209-
<a-dropdown-button type="primary" @click="doInstallStore">
210-
<icon-apps class="mr-1"/>
211-
插件市场
212-
<template #content>
213-
<a-doption @click="doInstallPlugin">选择本地ZIP插件</a-doption>
214-
<a-doption @click="doInstallPlugin">选择本地目录插件</a-doption>
215-
</template>
216-
</a-dropdown-button>
217-
</div>
208+
<div class="border-t border-solid border-default py-2 text-center">
209+
<a-dropdown-button type="primary" @click="doInstallStore" class="block">
210+
<icon-apps class="mr-1"/>
211+
插件市场
212+
<template #content>
213+
<a-doption @click="doInstallPlugin">选择本地ZIP插件</a-doption>
214+
<a-doption @click="doInstallPlugin">选择本地目录插件</a-doption>
215+
</template>
216+
</a-dropdown-button>
218217
</div>
219218
</div>
220219
<div class="flex-grow h-full overflow-y-auto p-4" v-if="recordCurrent">

0 commit comments

Comments
 (0)