- 插件设置 -
+ 插件设置 -
+
+
+
+
+
+
{
+ this.loading = false
+ })
ipcRenderer.on('pluginList', (evt: IpcRendererEvent, list: IPicGoPlugin[]) => {
this.pluginList = list
this.pluginNameList = list.map(item => item.fullName)
@@ -319,6 +330,7 @@ export default class extends Vue {
item.ing = true
}
})
+ this.loading = true
ipcRenderer.send('uninstallPlugin', val)
}
updatePlugin (val: string) {
@@ -327,6 +339,7 @@ export default class extends Vue {
item.ing = true
}
})
+ this.loading = true
ipcRenderer.send('updatePlugin', val)
}
reloadApp () {
@@ -460,11 +473,16 @@ export default class extends Vue {
letPicGoSaveData (data: IObj) {
ipcRenderer.send('picgoSaveData', data)
}
+ handleImportLocalPlugin () {
+ ipcRenderer.send('importLocalPlugin')
+ this.loading = true
+ }
beforeDestroy () {
ipcRenderer.removeAllListeners('pluginList')
ipcRenderer.removeAllListeners('installSuccess')
ipcRenderer.removeAllListeners('uninstallSuccess')
ipcRenderer.removeAllListeners('updateSuccess')
+ ipcRenderer.removeAllListeners('hideLoading')
}
}
@@ -494,6 +512,7 @@ $darwinBg = #172426
font-size 20px
text-align center
margin 10px auto
+ position relative
i.el-icon-goods
font-size 20px
vertical-align middle
@@ -501,6 +520,16 @@ $darwinBg = #172426
transition color .2s ease-in-out
&:hover
color #49B1F5
+ i.el-icon-download
+ position absolute
+ right 0
+ top 8px
+ font-size 20px
+ vertical-align middle
+ cursor pointer
+ transition color .2s ease-in-out
+ &:hover
+ color #49B1F5
.handle-bar
margin-bottom 20px
&.cut-width
diff --git a/yarn.lock b/yarn.lock
index 3d5f14d..593c220 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -8289,10 +8289,10 @@ performance-now@^2.1.0:
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=
-picgo@^1.4.18:
- version "1.4.18"
- resolved "https://registry.yarnpkg.com/picgo/-/picgo-1.4.18.tgz#5c8582c1b6b87e734ffc8596da6c5a1712cff0b0"
- integrity sha512-wUU76goKS5N5yjBKX9MszBcno1f0hTa+EdnuDknqLljtHe3ieBVZDbnu5IrYyqMge2u+tG8qx7G+PWvNjCPCHQ==
+picgo@^1.4.19:
+ version "1.4.19"
+ resolved "https://registry.yarnpkg.com/picgo/-/picgo-1.4.19.tgz#cbd4b39f1d1a2a5f231e62a7fdbf87f53298f2a8"
+ integrity sha512-Y1BUrwq9rzEDQ06ZV5ZR8WRZqQe5hAHNVs4F/nEtwWBfr2YFwPxdce0b/rEPMZDSM7dfCWrts2M1qZC8VxB2+g==
dependencies:
chalk "^2.4.1"
commander "^2.17.0"