mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-02-08 21:38:13 -05:00
🔨 Refactor: improve picgo-setting page's thing
Add $fileName info Add settings documentation url icon button
This commit is contained in:
parent
c59e2bcc97
commit
5b0d596c6d
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="picgo-setting">
|
<div id="picgo-setting">
|
||||||
<div class="view-title">
|
<div class="view-title">
|
||||||
PicGo设置
|
PicGo设置 - <i class="el-icon-document" @click="goConfigPage"></i>
|
||||||
</div>
|
</div>
|
||||||
<el-row class="setting-list">
|
<el-row class="setting-list">
|
||||||
<el-col :span="15" :offset="4">
|
<el-col :span="15" :offset="4">
|
||||||
@ -154,11 +154,17 @@
|
|||||||
:model="customLink"
|
:model="customLink"
|
||||||
ref="customLink"
|
ref="customLink"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
|
size="small"
|
||||||
>
|
>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="用占位符$url来表示url的位置"
|
|
||||||
prop="value"
|
prop="value"
|
||||||
>
|
>
|
||||||
|
<div class="custom-title">
|
||||||
|
用占位符 <b>$url</b> 来表示url的位置
|
||||||
|
</div>
|
||||||
|
<div class="custom-title">
|
||||||
|
用占位符 <b>$fileName</b> 来表示文件名的位置
|
||||||
|
</div>
|
||||||
<el-input
|
<el-input
|
||||||
class="align-center"
|
class="align-center"
|
||||||
v-model="customLink.value"
|
v-model="customLink.value"
|
||||||
@ -167,7 +173,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div>
|
<div>
|
||||||
如[]($url)
|
如[$fileName]($url)
|
||||||
</div>
|
</div>
|
||||||
<span slot="footer">
|
<span slot="footer">
|
||||||
<el-button @click="cancelCustomLink" round>取消</el-button>
|
<el-button @click="cancelCustomLink" round>取消</el-button>
|
||||||
@ -507,6 +513,9 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
},
|
||||||
|
goConfigPage () {
|
||||||
|
this.$electron.remote.shell.openExternal('https://picgo.github.io/PicGo-Doc/zh/guide/config.html#picgo设置')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy () {
|
beforeDestroy () {
|
||||||
@ -517,6 +526,12 @@ export default {
|
|||||||
<style lang='stylus'>
|
<style lang='stylus'>
|
||||||
.el-message
|
.el-message
|
||||||
left 60%
|
left 60%
|
||||||
|
.view-title
|
||||||
|
.el-icon-document
|
||||||
|
cursor pointer
|
||||||
|
transition color .2s ease-in-out
|
||||||
|
&:hover
|
||||||
|
color #49B1F5
|
||||||
#picgo-setting
|
#picgo-setting
|
||||||
.sub-title
|
.sub-title
|
||||||
font-size 14px
|
font-size 14px
|
||||||
|
@ -452,6 +452,9 @@ $darwinBg = #172426
|
|||||||
font-size 20px
|
font-size 20px
|
||||||
vertical-align middle
|
vertical-align middle
|
||||||
cursor pointer
|
cursor pointer
|
||||||
|
transition color .2s ease-in-out
|
||||||
|
&:hover
|
||||||
|
color #49B1F5
|
||||||
.handle-bar
|
.handle-bar
|
||||||
margin-bottom 20px
|
margin-bottom 20px
|
||||||
&.cut-width
|
&.cut-width
|
||||||
|
Loading…
Reference in New Issue
Block a user