Browse Source

fixed new menu styles

pull/741/head
cKey 3 years ago
parent
commit
66808e8f49
  1. 2
      apps/vue/src/views/dashboard/workbench/components/MenuCard.vue
  2. 1
      apps/vue/src/views/dashboard/workbench/components/menuProps.ts

2
apps/vue/src/views/dashboard/workbench/components/MenuCard.vue

@ -8,6 +8,7 @@
v-for="menu in menus" v-for="menu in menus"
:key="menu.title" :key="menu.title"
class="menu-card-grid" class="menu-card-grid"
:style="{ float: menus.length >= 2 ? 'left' : 'right' }"
@click="handleNavigationTo(menu)" @click="handleNavigationTo(menu)"
@contextmenu="(e) => handleContext(e, menu)" @contextmenu="(e) => handleContext(e, menu)"
> >
@ -103,6 +104,7 @@
.menu-card-grid { .menu-card-grid {
margin: 10px; margin: 10px;
width: 30%; width: 30%;
text-align: 'center';
cursor: pointer; cursor: pointer;
} }
</style> </style>

1
apps/vue/src/views/dashboard/workbench/components/menuProps.ts

@ -9,6 +9,7 @@ export interface Menu {
size?: number; size?: number;
path?: string; path?: string;
hasDefault?: boolean; hasDefault?: boolean;
click?: Function;
} }
export function useDefaultMenus() { export function useDefaultMenus() {

Loading…
Cancel
Save