You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by il...@apache.org on 2018/09/12 11:50:42 UTC
[incubator-dubbo-ops] branch develop updated: move icon list into
data
This is an automated email from the ASF dual-hosted git repository.
iluo 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 8a5bb1a move icon list into data
8a5bb1a is described below
commit 8a5bb1a6ae580db5704bd17fd615e9b7607a0259
Author: beiwei30 <ia...@gmail.com>
AuthorDate: Wed Sep 12 19:50:24 2018 +0800
move icon list into data
---
.../src/components/RoutingRule.vue | 38 +++++++---------------
1 file changed, 11 insertions(+), 27 deletions(-)
diff --git a/dubbo-admin-frontend/src/components/RoutingRule.vue b/dubbo-admin-frontend/src/components/RoutingRule.vue
index 45a5f16..9dff1a9 100644
--- a/dubbo-admin-frontend/src/components/RoutingRule.vue
+++ b/dubbo-admin-frontend/src/components/RoutingRule.vue
@@ -57,33 +57,12 @@
<td class="text-xs-left">{{ props.item.priority }}</td>
<td class="text-xs-left">{{ props.item.status }}</td>
<td class="justify-center px-0">
- <v-icon
- small
- class="mr-2"
- @click="deleteItem(props.item)"
- >
- visibility
- </v-icon>
- <v-icon
- small
- class="mr-2"
- @click="editItem(props.item)"
- >
- edit
- </v-icon>
- <v-icon
- small
- class="mr-2"
- @click="editItem(props.item)"
- >
- block
- </v-icon>
- <v-icon
- small
- @click="deleteItem(props.item)"
- >
- delete
- </v-icon>
+ <v-tooltip bottom v-for="op in operations">
+ <v-icon small class="mr-2" slot="activator" @click="op.callback">
+ {{op.icon}}
+ </v-icon>
+ <span>{{op.tooltip}}</span>
+ </v-tooltip>
</td>
</template>
</v-data-table>
@@ -136,6 +115,11 @@
application: '',
service: '',
height: 0,
+ operations: [
+ {icon: 'visibility', callback: 'viewItem(props.item)', tooltip: 'View'},
+ {icon: 'edit', callback: 'editItem(props.item)', tooltip: 'Edit'},
+ {icon: 'delete', callback: 'deleteItem(props.item)', tooltip: 'Delete'}
+ ],
routingRules: [
{
id: 0,