You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by mi...@apache.org on 2018/09/28 07:47:36 UTC
[incubator-dubbo-ops] branch develop updated: update tooltip
This is an automated email from the ASF dual-hosted git repository.
min pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-ops.git
The following commit(s) were added to refs/heads/develop by this push:
new 8d9fa4c update tooltip
8d9fa4c is described below
commit 8d9fa4c4bed3c3753916b93266d62b8455af0e57
Author: nzomkxia <z8...@gmail.com>
AuthorDate: Fri Sep 28 15:47:17 2018 +0800
update tooltip
---
.../src/components/LoadBalance.vue | 30 +++++-----------------
.../src/components/WeightAdjust.vue | 30 +++++-----------------
2 files changed, 12 insertions(+), 48 deletions(-)
diff --git a/dubbo-admin-frontend/src/components/LoadBalance.vue b/dubbo-admin-frontend/src/components/LoadBalance.vue
index ac791b2..42d6357 100644
--- a/dubbo-admin-frontend/src/components/LoadBalance.vue
+++ b/dubbo-admin-frontend/src/components/LoadBalance.vue
@@ -56,10 +56,10 @@
<td class="text-xs-left">{{ props.item.methodName }}</td>
<td class="justify-center px-0">
<v-tooltip bottom v-for="op in operations" :key="op.id">
- <v-icon small class="mr-2" slot="activator" @click="itemOperation(op.icon(props.item), props.item)">
- {{op.icon(props.item)}}
+ <v-icon small class="mr-2" slot="activator" @click="itemOperation(op.icon, props.item)">
+ {{op.icon}}
</v-icon>
- <span>{{op.tooltip(props.item)}}</span>
+ <span>{{op.tooltip}}</span>
</v-tooltip>
</td>
</template>
@@ -137,27 +137,9 @@
warnStatus: {},
height: 0,
operations: [
- {id: 0,
- icon: function (item) {
- return 'visibility'
- },
- tooltip: function (item) {
- return 'View'
- }},
- {id: 1,
- icon: function (item) {
- return 'edit'
- },
- tooltip: function (item) {
- return 'Edit'
- }},
- {id: 3,
- icon: function (item) {
- return 'delete'
- },
- tooltip: function (item) {
- return 'Delete'
- }}
+ {id: 0, icon: 'visibility', tooltip: 'View'},
+ {id: 1, icon: 'edit', tooltip: 'Edit'},
+ {id: 3, icon: 'delete', tooltip: 'Delete'}
],
loadBalances: [
],
diff --git a/dubbo-admin-frontend/src/components/WeightAdjust.vue b/dubbo-admin-frontend/src/components/WeightAdjust.vue
index 93167f7..715e68a 100644
--- a/dubbo-admin-frontend/src/components/WeightAdjust.vue
+++ b/dubbo-admin-frontend/src/components/WeightAdjust.vue
@@ -56,10 +56,10 @@
<td class="text-xs-left">{{ props.item.method }}</td>
<td class="justify-center px-0">
<v-tooltip bottom v-for="op in operations" :key="op.id">
- <v-icon small class="mr-2" slot="activator" @click="itemOperation(op.icon(props.item), props.item)">
- {{op.icon(props.item)}}
+ <v-icon small class="mr-2" slot="activator" @click="itemOperation(op.icon, props.item)">
+ {{op.icon}}
</v-icon>
- <span>{{op.tooltip(props.item)}}</span>
+ <span>{{op.tooltip}}</span>
</v-tooltip>
</td>
</template>
@@ -137,27 +137,9 @@
warnStatus: {},
height: 0,
operations: [
- {id: 0,
- icon: function (item) {
- return 'visibility'
- },
- tooltip: function (item) {
- return 'View'
- }},
- {id: 1,
- icon: function (item) {
- return 'edit'
- },
- tooltip: function (item) {
- return 'Edit'
- }},
- {id: 3,
- icon: function (item) {
- return 'delete'
- },
- tooltip: function (item) {
- return 'Delete'
- }}
+ {id: 0, icon: 'visibility', tooltip: 'View'},
+ {id: 1, icon: 'edit', tooltip: 'Edit'},
+ {id: 3, icon: 'delete', tooltip: 'Delete'}
],
loadBalances: [
],