You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2019/12/22 07:08:22 UTC

[incubator-apisix-dashboard] branch master updated: feat: use more semantic tip for edit route (#100)

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 46927eb  feat: use more semantic tip for edit route (#100)
46927eb is described below

commit 46927eb1f91db8fcd40ba69e116c243de1b42fda
Author: 琚致远 <ju...@apache.org>
AuthorDate: Sun Dec 22 15:08:14 2019 +0800

    feat: use more semantic tip for edit route (#100)
    
    * feat: use more semantic tip for edit route
    
    * Update en.ts
---
 src/lang/en.ts                   | 5 +++++
 src/lang/zh.ts                   | 5 +++++
 src/views/schema/routes/edit.vue | 4 ++--
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/lang/en.ts b/src/lang/en.ts
index 4b81e90..033e573 100644
--- a/src/lang/en.ts
+++ b/src/lang/en.ts
@@ -69,5 +69,10 @@ export default {
     add_node: 'Add Node',
     delete: 'Delete',
     addValue: 'Add Value'
+  },
+  schema: {
+    route: {
+      inputMultipleURLs: 'Input value then press return button'
+    }
   }
 }
diff --git a/src/lang/zh.ts b/src/lang/zh.ts
index 5d6d9b9..d7d7dcc 100644
--- a/src/lang/zh.ts
+++ b/src/lang/zh.ts
@@ -77,5 +77,10 @@ export default {
     add_node: '添加 Node',
     delete: '删除',
     addValue: '添加值'
+  },
+  schema: {
+    route: {
+      inputMultipleURLs: '输入值后并回车'
+    }
   }
 }
diff --git a/src/views/schema/routes/edit.vue b/src/views/schema/routes/edit.vue
index ae0e8bc..b1b0515 100644
--- a/src/views/schema/routes/edit.vue
+++ b/src/views/schema/routes/edit.vue
@@ -38,7 +38,6 @@
       <el-form-item
         label="URIs"
         prop="uris"
-        placeholder="can write multi uri here"
       >
         <el-select
           v-model="form.uris"
@@ -46,6 +45,7 @@
           filterable
           multiple
           default-first-option
+          :placeholder="$t('schema.route.inputMultipleURLs')"
           @change="filterUriOptions"
         >
           <el-option
@@ -485,7 +485,7 @@ export default class extends Vue {
     .el-form-item {
       .el-form-item__content {
         .el-input {
-          width: 220px;
+          width: 300px;
         }
       }
     }