| @@ -1,9 +1,9 @@ | |||||
| <template> | <template> | ||||
| <div> | <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> | </h4> | ||||
| <edit-dialog-cmpt | <edit-dialog-cmpt | ||||
| :vmContext="vmContext" | :vmContext="vmContext" | ||||
| @@ -11,8 +11,8 @@ | |||||
| v-model="editDataDialog" | v-model="editDataDialog" | ||||
| :deleteCallback="editDataFunc" | :deleteCallback="editDataFunc" | ||||
| :deleteLoading ="editDataListLoading" | :deleteLoading ="editDataListLoading" | ||||
| deleteParam = "ruleForm" | |||||
| @input="initForm" | |||||
| deleteParam = "ruleForm" | |||||
| @input="initForm" | |||||
| > | > | ||||
| <div slot="title"> | <div slot="title"> | ||||
| @@ -20,7 +20,7 @@ | |||||
| <div slot="content"> | <div slot="content"> | ||||
| <el-form label-position="top" :model="info" :rules="rule" ref="ruleForm"> | <el-form label-position="top" :model="info" :rules="rule" ref="ruleForm"> | ||||
| <el-form-item label="简介" prop="desc"> | <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> | ||||
| <el-form-item label="主页" prop="index_web" > | <el-form-item label="主页" prop="index_web" > | ||||
| <el-input v-model="info.index_web" placeholder="主页(eg: https://git.openi.org.cn)"></el-input> | <el-input v-model="info.index_web" placeholder="主页(eg: https://git.openi.org.cn)"></el-input> | ||||
| @@ -79,7 +79,6 @@ export default { | |||||
| }, | }, | ||||
| initForm(diaolog) { | initForm(diaolog) { | ||||
| if (diaolog === false) { | if (diaolog === false) { | ||||
| console.log("--watch----------") | |||||
| this.getRepoName(); | this.getRepoName(); | ||||
| this.getDesc(); | this.getDesc(); | ||||
| this.getWeb(); | this.getWeb(); | ||||
| @@ -133,12 +132,11 @@ export default { | |||||
| <style scoped> | <style scoped> | ||||
| .edit-icon{ | .edit-icon{ | ||||
| float: right; | |||||
| font-size: 16px; | |||||
| display: block; | |||||
| top: -2px; | |||||
| color: #8c92a4; | color: #8c92a4; | ||||
| background-color: transparent; | |||||
| } | |||||
| } | |||||
| .desc-home{ | |||||
| display: flex; | |||||
| justify-content: space-between; | |||||
| } | |||||
| </style> | </style> | ||||
| @@ -14,8 +14,8 @@ | |||||
| <slot name="content"></slot> | <slot name="content"></slot> | ||||
| <div slot="footer" class="dialog-footer"> | <div slot="footer" class="dialog-footer"> | ||||
| <el-button @click="deleteDialog = false">{{"取消"}}</el-button> | |||||
| <el-button type="primary" @click="deleteCallback.call(vmContext,deleteParam)">{{"确定"}}</el-button> | |||||
| <el-button size="small" @click="deleteDialog = false">{{"取消"}}</el-button> | |||||
| <el-button size="small" style="background-color: #21ba45;color: #fff;" @click="deleteCallback.call(vmContext,deleteParam)">{{"确定"}}</el-button> | |||||
| </div> | </div> | ||||
| </el-dialog> | </el-dialog> | ||||
| </template> | </template> | ||||
| @@ -80,26 +80,31 @@ export default { | |||||
| .message-box__content .message-box-title{font-size:16px;padding:2px 0;color:#333;} | .message-box__content .message-box-title{font-size:16px;padding:2px 0;color:#333;} | ||||
| .message-box__content .message-box-p{font-size:16px;padding:20px 0;color:#333;} | .message-box__content .message-box-p{font-size:16px;padding:20px 0;color:#333;} | ||||
| .message-box__content .message-box-info{color:#999;padding:2px 0;} | .message-box__content .message-box-info{color:#999;padding:2px 0;} | ||||
| .dialog-footer,.el-message-box__btns{text-align:center;} | |||||
| /deep/ .el-dialog__body{ | |||||
| padding: 1rem; | |||||
| } | |||||
| /deep/ .el-dialog__header { | /deep/ .el-dialog__header { | ||||
| background: #0067b3; | |||||
| padding: 12px 30px; | |||||
| line-height: 25px;} | |||||
| background: #f0f0f0; | |||||
| padding: 1rem; | |||||
| } | |||||
| /deep/ .el-dialog__title { | /deep/ .el-dialog__title { | ||||
| font-family: PingFangSC-Regular; | font-family: PingFangSC-Regular; | ||||
| font-size: 18px; | |||||
| color: #fff; | |||||
| font-size: 1.28571429rem; | |||||
| color: rgba(0,0,0,.87); | |||||
| font-weight: 200; | font-weight: 200; | ||||
| line-height: 25px; | line-height: 25px; | ||||
| height: 25px; | height: 25px; | ||||
| } | } | ||||
| /deep/ .el-dialog__footer { | /deep/ .el-dialog__footer { | ||||
| background: #eff3f9; | background: #eff3f9; | ||||
| padding: 20px 30px; | |||||
| padding: 1rem; | |||||
| } | } | ||||
| /deep/ .el-dialog{ | /deep/ .el-dialog{ | ||||
| width: 40%; | |||||
| width: 30%; | |||||
| } | |||||
| /deep/ .el-form-item__label{ | |||||
| padding: 0; | |||||
| } | } | ||||
| </style> | </style> | ||||