改进:写文章界面缩略名输入框的使用体验
This commit is contained in:
parent
2147b99c6b
commit
60ab4bc435
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user