mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-13 07:04:21 +08:00
Add default icon to run a Report or Process by default (#382)
This commit is contained in:
parent
d8f4b7e89c
commit
2c586f6a7e
@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container-submenu-mobile container-context-menu">
|
<div class="container-submenu-mobile container-context-menu">
|
||||||
|
<svg-icon v-if="isPanelTypeMobile" :icon-class="iconDefault" @click="runAction(actions[0])" />
|
||||||
<right-menu>
|
<right-menu>
|
||||||
<el-menu
|
<el-menu
|
||||||
ref="contextMenu"
|
ref="contextMenu"
|
||||||
@ -126,6 +127,30 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
RightMenu
|
RightMenu
|
||||||
},
|
},
|
||||||
mixins: [contextMixin]
|
mixins: [contextMixin],
|
||||||
|
computed: {
|
||||||
|
isPanelTypeMobile() {
|
||||||
|
console.log(this.panelType, this.$route.meta.type)
|
||||||
|
if (this.$route.meta.type === 'process' || this.$route.meta.type === 'report') {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
},
|
||||||
|
iconDefault() {
|
||||||
|
if (this.$route.meta.type === 'process') {
|
||||||
|
return 'component'
|
||||||
|
}
|
||||||
|
return 'skill'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
.svg-icon {
|
||||||
|
width: 1em;
|
||||||
|
height: 2em;
|
||||||
|
vertical-align: -0.15em;
|
||||||
|
fill: currentColor;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -106,7 +106,7 @@ export default {
|
|||||||
.container-submenu-mobile {
|
.container-submenu-mobile {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 39px !important;
|
height: 39px !important;
|
||||||
width: 39px !important;
|
width: 55px !important;
|
||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user