|
@@ -17,8 +17,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="title-input-wrapper">
|
|
<div class="title-input-wrapper">
|
|
<input
|
|
<input
|
|
- v-model="info.name"
|
|
|
|
- @blur="onTitleInputBlur"
|
|
|
|
|
|
+ v-model.trim="info.name"
|
|
@keydown.enter="onTitleInputEnter"
|
|
@keydown.enter="onTitleInputEnter"
|
|
type="text"
|
|
type="text"
|
|
maxlength="50"
|
|
maxlength="50"
|
|
@@ -29,8 +28,7 @@
|
|
<div class="ui-title jianjie"><span>简介</span></div>
|
|
<div class="ui-title jianjie"><span>简介</span></div>
|
|
<div class="jianjie-textarea-wrapper">
|
|
<div class="jianjie-textarea-wrapper">
|
|
<textarea
|
|
<textarea
|
|
- v-model="info.description"
|
|
|
|
- @blur="onDescriptionInputBlur"
|
|
|
|
|
|
+ v-model.trim="info.description"
|
|
maxlength="500"
|
|
maxlength="500"
|
|
placeholder="请输入作品简介"
|
|
placeholder="请输入作品简介"
|
|
type="text"
|
|
type="text"
|
|
@@ -141,15 +139,9 @@ export default {
|
|
}
|
|
}
|
|
this.isShowSettingCoverWindow = false
|
|
this.isShowSettingCoverWindow = false
|
|
},
|
|
},
|
|
- onTitleInputBlur() {
|
|
|
|
- this.info.name = this.info.name.trim()
|
|
|
|
- },
|
|
|
|
onTitleInputEnter(e) {
|
|
onTitleInputEnter(e) {
|
|
e.target.blur()
|
|
e.target.blur()
|
|
},
|
|
},
|
|
- onDescriptionInputBlur() {
|
|
|
|
- this.info.description = this.info.description.trim()
|
|
|
|
- }
|
|
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|