改进:写文章界面缩略名输入框的使用体验

This commit is contained in:
jmal 2021-02-19 14:00:54 +08:00
parent 2147b99c6b
commit 60ab4bc435
2 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,7 @@ export default{
},
watch: {
value(value){
if (!this.isLocked || !this.innerText) {
if (!this.isLocked) {
this.innerText = value
document.getElementById('edit-div').innerHTML = value
}

View File

@ -14,6 +14,7 @@
<edit-element
ref="editElement"
class="mark-setting-input"
:style="{minWidth: file.slug && file.slug.length > 0 ? '0px' : '35px'}"
v-model="file.slug"
placeholder="缩略名"
can-edit