Browse Source
Merge pull request #741 from colinin/fixed-new-menu-style
fixed new menu styles
pull/742/head
yx lin
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
0 deletions
-
apps/vue/src/views/dashboard/workbench/components/MenuCard.vue
-
apps/vue/src/views/dashboard/workbench/components/menuProps.ts
|
|
|
@ -8,6 +8,7 @@ |
|
|
|
v-for="menu in menus" |
|
|
|
:key="menu.title" |
|
|
|
class="menu-card-grid" |
|
|
|
:style="{ float: menus.length >= 2 ? 'left' : 'right' }" |
|
|
|
@click="handleNavigationTo(menu)" |
|
|
|
@contextmenu="(e) => handleContext(e, menu)" |
|
|
|
> |
|
|
|
@ -103,6 +104,7 @@ |
|
|
|
.menu-card-grid { |
|
|
|
margin: 10px; |
|
|
|
width: 30%; |
|
|
|
text-align: 'center'; |
|
|
|
cursor: pointer; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|
@ -9,6 +9,7 @@ export interface Menu { |
|
|
|
size?: number; |
|
|
|
path?: string; |
|
|
|
hasDefault?: boolean; |
|
|
|
click?: Function; |
|
|
|
} |
|
|
|
|
|
|
|
export function useDefaultMenus() { |
|
|
|
|