feat:添加国际化

This commit is contained in:
zhangyu
2020-09-07 18:11:36 +08:00
parent ab2341d76b
commit f5516e5022
3 changed files with 3 additions and 1 deletions

View File

@@ -848,6 +848,7 @@ const cn = {
addLine:'添加连线', addLine:'添加连线',
lineName:'连线名称', lineName:'连线名称',
width:'宽度', width:'宽度',
dashes:'虚线',
option:'设置', option:'设置',
arrows:'箭头方向', arrows:'箭头方向',
color:'颜色', color:'颜色',

View File

@@ -856,6 +856,7 @@ const en = {
addLine:'Add Line', addLine:'Add Line',
lineName:'Line Name', lineName:'Line Name',
width:'thickness', width:'thickness',
dashes:'Dotted line',
option:'Option', option:'Option',
arrows:'Arrows', arrows:'Arrows',
color:'Color', color:'Color',

View File

@@ -37,7 +37,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('project.topology.width')" prop="width" class="line-width"> <el-form-item :label="$t('project.topology.dashes')" prop="width" class="line-width">
<el-select v-model="form.dashes" placeholder="" :popper-append-to-body="false" size="small"> <el-select v-model="form.dashes" placeholder="" :popper-append-to-body="false" size="small">
<div slot="prefix"> <div slot="prefix">
{{form.dashes}} {{form.dashes}}