|
|
|
@@ -1,9 +1,9 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<h4 id="about-desc" class="ui header">简介 |
|
|
|
<!-- <a class="edit-icon" href="javascript:void(0)" @click="editClick"> |
|
|
|
<i class="gray edit outline icon"></i> |
|
|
|
</a> --> |
|
|
|
<h4 id="about-desc" class="ui header desc-home">简介 |
|
|
|
<a class="edit-icon" href="javascript:void(0)" @click="editClick"> |
|
|
|
<i class="gray edit outline icon" style="margin-right: 0;"></i> |
|
|
|
</a> |
|
|
|
</h4> |
|
|
|
<edit-dialog-cmpt |
|
|
|
:vmContext="vmContext" |
|
|
|
@@ -11,8 +11,8 @@ |
|
|
|
v-model="editDataDialog" |
|
|
|
:deleteCallback="editDataFunc" |
|
|
|
:deleteLoading ="editDataListLoading" |
|
|
|
deleteParam = "ruleForm" |
|
|
|
@input="initForm" |
|
|
|
deleteParam = "ruleForm" |
|
|
|
@input="initForm" |
|
|
|
> |
|
|
|
<div slot="title"> |
|
|
|
|
|
|
|
@@ -20,7 +20,7 @@ |
|
|
|
<div slot="content"> |
|
|
|
<el-form label-position="top" :model="info" :rules="rule" ref="ruleForm"> |
|
|
|
<el-form-item label="简介" prop="desc"> |
|
|
|
<el-input v-model="info.desc" type="textarea" :autosize="{minRows:2,maxRows:6}"></el-input> |
|
|
|
<el-input v-model="info.desc" type="textarea" placeholder="请输入内容" :autosize="{minRows:4,maxRows:6}" maxlength="255" show-word-limit></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="主页" prop="index_web" > |
|
|
|
<el-input v-model="info.index_web" placeholder="主页(eg: https://git.openi.org.cn)"></el-input> |
|
|
|
@@ -79,7 +79,6 @@ export default { |
|
|
|
}, |
|
|
|
initForm(diaolog) { |
|
|
|
if (diaolog === false) { |
|
|
|
console.log("--watch----------") |
|
|
|
this.getRepoName(); |
|
|
|
this.getDesc(); |
|
|
|
this.getWeb(); |
|
|
|
@@ -133,12 +132,11 @@ export default { |
|
|
|
|
|
|
|
<style scoped> |
|
|
|
.edit-icon{ |
|
|
|
float: right; |
|
|
|
font-size: 16px; |
|
|
|
display: block; |
|
|
|
top: -2px; |
|
|
|
color: #8c92a4; |
|
|
|
background-color: transparent; |
|
|
|
} |
|
|
|
} |
|
|
|
.desc-home{ |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
} |
|
|
|
|
|
|
|
</style> |