diff --git a/src/components/VarArgs/index.vue b/src/components/VarArgs/index.vue
new file mode 100644
index 0000000000..1abcdecd8c
--- /dev/null
+++ b/src/components/VarArgs/index.vue
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t("button.delete") }}
+
+
+
+
+
+ {{ $t("button.add_var") }}
+
+
+
+
+
+
diff --git a/src/lang/en.ts b/src/lang/en.ts
index 40157301ab..8a2f4c2c16 100644
--- a/src/lang/en.ts
+++ b/src/lang/en.ts
@@ -67,6 +67,7 @@ export default {
cancel: 'Cancel',
add_plugin: 'Add Plugin',
add_node: 'Add Node',
+ add_var: 'Add Var',
delete: 'Delete',
addValue: 'Add Value'
},
diff --git a/src/lang/zh.ts b/src/lang/zh.ts
index c594dda522..64164e1085 100644
--- a/src/lang/zh.ts
+++ b/src/lang/zh.ts
@@ -75,6 +75,7 @@ export default {
cancel: '取消',
add_plugin: '添加 Plugin',
add_node: '添加 Node',
+ add_var: '添加 Var',
delete: '删除',
addValue: '添加值'
},
diff --git a/src/views/schema/routes/edit.vue b/src/views/schema/routes/edit.vue
index 890f6760a2..84135c67b5 100644
--- a/src/views/schema/routes/edit.vue
+++ b/src/views/schema/routes/edit.vue
@@ -194,6 +194,10 @@
{{ $t('button.add_plugin') }}
+
{})
}
+
+ private onVarArgsChange(val: any) {
+ this.form.vars = val
+ }
}
@@ -497,5 +511,14 @@ export default class extends Vue {
}
}
}
+ .var-item {
+ .el-form-item {
+ margin-bottom: 10px;
+ display: inline-block;
+ .el-form-item__content {
+ margin-right: 10px;
+ }
+ }
+ }
}
diff --git a/src/views/schema/upstream/edit.vue b/src/views/schema/upstream/edit.vue
index 7994700922..445e42d032 100644
--- a/src/views/schema/upstream/edit.vue
+++ b/src/views/schema/upstream/edit.vue
@@ -389,7 +389,7 @@ export default class extends Vue {
}
private removeNode(item: any) {
- this.$confirm(`Do you want to remove the node?`, 'Warning', {
+ this.$confirm('Do you want to remove the node?', 'Warning', {
confirmButtonText: 'Confirm',
cancelButtonText: 'Cancel',
type: 'warning'
@@ -425,7 +425,6 @@ export default class extends Vue {
.el-form-item {
margin-bottom: 10px;
display: inline-block;
- .el-form-item__label {}
.el-form-item__content {
margin-right: 10px;
}