Commit eb39753c authored by rockyl's avatar rockyl

修改包版本备注样式

parent 420f7c0b
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
"Import view success": "视图导入成功", "Import view success": "视图导入成功",
"Input projectx id": "请输入{envName}星速台项目ID", "Input projectx id": "请输入{envName}星速台项目ID",
"Save template to projectx": "是否保存皮肤到星速台", "Save template to projectx": "是否保存皮肤到星速台",
"All versions": "全部版本", "All versions": "全部版本",
"Dependencies missing": "依赖缺失", "Dependencies missing": "依赖缺失",
"missingDependenciesNotice": "<i class=\"el-icon-warning\"></i>依赖缺失,请到【<span style=\"font-weight: bold,\">详情>包管理</span>】进行安装", "missingDependenciesNotice": "<i class=\"el-icon-warning\"></i>依赖缺失,请到【<span style=\"font-weight: bold,\">详情>包管理</span>】进行安装",
"Pack manager": "打包管理", "Pack manager": "打包管理",
......
...@@ -128,6 +128,10 @@ ...@@ -128,6 +128,10 @@
.update-time { .update-time {
float: right; float: right;
} }
.remark {
font-size: 12px;
}
} }
} }
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</el-select> </el-select>
<el-popover <el-popover
placement="left-start" placement="left-start"
:title="$t('All versions')" :title="packageInfo.package_id + $t('All versions')"
:open-delay="500" :open-delay="500"
width="250" width="250"
style="margin-left: 5px;" style="margin-left: 5px;"
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
{{packageInfo.update_times[index]}} {{packageInfo.update_times[index]}}
</span> </span>
<br> <br>
<span>{{packageInfo.remarks[index]}}</span> <span v-if="packageInfo.remarks[index]" class="remark" v-html="translateRemark(packageInfo.remarks[index])"></span>
</div> </div>
</el-scrollbar> </el-scrollbar>
</div> </div>
...@@ -118,6 +118,9 @@ ...@@ -118,6 +118,9 @@
let exists = packageExists(this.packageMetas, packageId, version); let exists = packageExists(this.packageMetas, packageId, version);
return (withVersion ? version + ' ' : '') + (!exists ? '(待下载)' : ''); return (withVersion ? version + ' ' : '') + (!exists ? '(待下载)' : '');
}, },
translateRemark(str){
return str.split('\n').map(item=>'·' + item).join('<br>')
},
...mapMutations([ ...mapMutations([
'modifyDependencies', 'modifyDependencies',
]), ]),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment