改进:写文章界面缩略名输入框的使用体验
This commit is contained in:
parent
2147b99c6b
commit
60ab4bc435
@ -28,7 +28,7 @@ export default{
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
value(value){
|
value(value){
|
||||||
if (!this.isLocked || !this.innerText) {
|
if (!this.isLocked) {
|
||||||
this.innerText = value
|
this.innerText = value
|
||||||
document.getElementById('edit-div').innerHTML = value
|
document.getElementById('edit-div').innerHTML = value
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,6 +14,7 @@
|
|||||||
<edit-element
|
<edit-element
|
||||||
ref="editElement"
|
ref="editElement"
|
||||||
class="mark-setting-input"
|
class="mark-setting-input"
|
||||||
|
:style="{minWidth: file.slug && file.slug.length > 0 ? '0px' : '35px'}"
|
||||||
v-model="file.slug"
|
v-model="file.slug"
|
||||||
placeholder="缩略名"
|
placeholder="缩略名"
|
||||||
can-edit
|
can-edit
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user