修改:文章编辑页面样式
This commit is contained in:
parent
efde7b8c42
commit
e57335fca9
@ -10,9 +10,20 @@
|
|||||||
<span class="title-label">标题:</span>
|
<span class="title-label">标题:</span>
|
||||||
<el-input class="articles-title" placeholder="文章标题" v-model="filename" />
|
<el-input class="articles-title" placeholder="文章标题" v-model="filename" />
|
||||||
</div>
|
</div>
|
||||||
|
<p class="url-slug"><span>{{ articleLink }}</span>
|
||||||
|
<el-input
|
||||||
|
class="mark-setting-input"
|
||||||
|
placeholder="缩略名"
|
||||||
|
v-model="file.slug"
|
||||||
|
autosize
|
||||||
|
size="mini"
|
||||||
|
:style="{width:text(file.slug)}"
|
||||||
|
>
|
||||||
|
</el-input>
|
||||||
|
</p>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main>
|
<el-main>
|
||||||
<div id="vditor" v-loading="vditorLoading"></div>
|
<div id="vditor" :style="{maxHeight: clientHeight + 'px'}" v-loading="vditorLoading"></div>
|
||||||
</el-main>
|
</el-main>
|
||||||
</div>
|
</div>
|
||||||
<div class="editor-right">
|
<div class="editor-right">
|
||||||
@ -29,13 +40,6 @@
|
|||||||
placeholder="输入图片URL"
|
placeholder="输入图片URL"
|
||||||
v-model="file.cover">
|
v-model="file.cover">
|
||||||
</el-input>
|
</el-input>
|
||||||
<p class="mark-setting-label">缩略名:</p>
|
|
||||||
<el-input
|
|
||||||
class="mark-setting-input"
|
|
||||||
placeholder="缩略名"
|
|
||||||
v-model="file.slug">
|
|
||||||
</el-input>
|
|
||||||
<span class="instruction">本文链接:<a>{{file.slug ? articleLink+file.slug : articleLink+file.id}}</a></span>
|
|
||||||
<p class="mark-setting-label">分类:</p>
|
<p class="mark-setting-label">分类:</p>
|
||||||
<el-tree
|
<el-tree
|
||||||
class="category-tree"
|
class="category-tree"
|
||||||
@ -217,6 +221,17 @@
|
|||||||
this.valueHasChanged()
|
this.valueHasChanged()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
text () {
|
||||||
|
return function (value) {
|
||||||
|
if (value === '' || value === 0) {
|
||||||
|
return '100%'
|
||||||
|
} else {
|
||||||
|
return String(value).length * 14 - 30 + 'px'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
reload() {
|
reload() {
|
||||||
this.getMarkdown(true)
|
this.getMarkdown(true)
|
||||||
@ -461,7 +476,7 @@
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "src/styles/setting";
|
@import "src/styles/setting";
|
||||||
/deep/ .el-main {
|
/deep/ .el-main {
|
||||||
padding: 30px 20px 20px 20px;
|
padding: 60px 20px 20px 20px;
|
||||||
.v-note-wrapper {
|
.v-note-wrapper {
|
||||||
z-index: 200;
|
z-index: 200;
|
||||||
}
|
}
|
||||||
@ -598,4 +613,17 @@
|
|||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
/deep/ .url-slug {
|
||||||
|
span {
|
||||||
|
color: #aaaaaa;
|
||||||
|
}
|
||||||
|
input {
|
||||||
|
font-size: 14px;
|
||||||
|
padding: 0;
|
||||||
|
background-color: #3f9eff2e;
|
||||||
|
border: 0;
|
||||||
|
height: 18px;
|
||||||
|
line-height: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user