修改:文章编辑页面添加标签样式
This commit is contained in:
parent
43987938bb
commit
993ca73a3e
@ -71,22 +71,16 @@
|
|||||||
ref="saveTagInput"
|
ref="saveTagInput"
|
||||||
size="small"
|
size="small"
|
||||||
:fetch-suggestions="querySearch"
|
:fetch-suggestions="querySearch"
|
||||||
|
:popper-append-to-body="false"
|
||||||
@select="handleSelect"
|
@select="handleSelect"
|
||||||
placeholder="请输入内容"
|
placeholder="请输入标签名"
|
||||||
@keyup.enter.native="handleInputConfirm"
|
@keyup.enter.native="handleInputConfirm"
|
||||||
></el-autocomplete>
|
@blur="handleInputConfirm"
|
||||||
<!-- <el-input-->
|
>
|
||||||
<!-- :class="[inputNewTagClass, inputValueExist?inputErrorClass:'']"-->
|
<!-- <div slot="suffix"fsd></div>-->
|
||||||
<!-- v-if="inputVisible"-->
|
</el-autocomplete>
|
||||||
<!-- v-model="inputValue"-->
|
|
||||||
<!-- ref="saveTagInput"-->
|
|
||||||
<!-- size="small"-->
|
|
||||||
<!-- @keyup.enter.native="handleInputConfirm"-->
|
|
||||||
<!-- @blur="handleInputConfirm"-->
|
|
||||||
<!-- >-->
|
|
||||||
<!-- </el-input>-->
|
|
||||||
<div v-if="inputValueExist" class="instruction-error">该标签已存在</div>
|
<div v-if="inputValueExist" class="instruction-error">该标签已存在</div>
|
||||||
<el-button v-if="!inputVisible" class="button-new-tag" size="small" @click="showInput">+ New Tag</el-button>
|
<el-button v-if="!inputVisible" class="button-new-tag" size="small" @click="showInput"> + 新增标签 </el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -582,6 +576,9 @@
|
|||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
max-width: 94px;
|
max-width: 94px;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
|
input {
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/deep/ .input-error {
|
/deep/ .input-error {
|
||||||
input {
|
input {
|
||||||
@ -595,6 +592,25 @@
|
|||||||
padding-top: 4px;
|
padding-top: 4px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
|
}
|
||||||
|
/deep/ .el-autocomplete-suggestion {
|
||||||
|
li {
|
||||||
|
background-color: #ecf5ff;
|
||||||
|
color: #409eff;
|
||||||
|
border: 1px solid #d9ecff;
|
||||||
|
border-radius: 4px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
white-space: nowrap;
|
||||||
|
margin: 2px 4px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
li:hover {
|
||||||
|
background-color: #3f9eff;
|
||||||
|
color: #fafdff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/deep/ .el-autocomplete-suggestion__wrap {
|
||||||
|
padding: 2px 0;
|
||||||
}
|
}
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
.article-editor {
|
.article-editor {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user