|
@@ -2,13 +2,14 @@
|
|
* @Author: wjc
|
|
* @Author: wjc
|
|
* @Date: 2024-07-03 10:35:44
|
|
* @Date: 2024-07-03 10:35:44
|
|
* @LastEditors: wjc
|
|
* @LastEditors: wjc
|
|
- * @LastEditTime: 2024-07-04 15:24:50
|
|
|
|
|
|
+ * @LastEditTime: 2024-07-09 10:48:54
|
|
* @Description:
|
|
* @Description:
|
|
-->
|
|
-->
|
|
<template>
|
|
<template>
|
|
<up-navbar
|
|
<up-navbar
|
|
ref="mNavBarRef"
|
|
ref="mNavBarRef"
|
|
v-bind="$attrs"
|
|
v-bind="$attrs"
|
|
|
|
+ class="m-navbar"
|
|
:title="title"
|
|
:title="title"
|
|
placeholder
|
|
placeholder
|
|
:bg-color="bgColor"
|
|
:bg-color="bgColor"
|
|
@@ -53,7 +54,7 @@
|
|
bgColor?: string
|
|
bgColor?: string
|
|
rightMenu?: RightMenuItem[]
|
|
rightMenu?: RightMenuItem[]
|
|
}>(),
|
|
}>(),
|
|
- { boolean: true, bgColor: 'transparent' }
|
|
|
|
|
|
+ { boolean: true, bgColor: '#fff' }
|
|
)
|
|
)
|
|
const emits = defineEmits<{
|
|
const emits = defineEmits<{
|
|
(e: 'right-click', command: string): void
|
|
(e: 'right-click', command: string): void
|
|
@@ -72,34 +73,30 @@
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<script lang="ts">
|
|
|
|
- export default {
|
|
|
|
- name: 'MNavBar',
|
|
|
|
- }
|
|
|
|
-</script>
|
|
|
|
-
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
- .right-box {
|
|
|
|
- @apply relative w-full z-1;
|
|
|
|
- .overlay {
|
|
|
|
- @apply fixed inset-0px opacity-100;
|
|
|
|
- background: rgba(0, 0, 0, 0);
|
|
|
|
- }
|
|
|
|
- .menu-box {
|
|
|
|
- @apply absolute right-0px z-10 flex flex-col gap-6px w-auto whitespace-nowrap rounded-6px bg-white;
|
|
|
|
- box-shadow: 0px 0px 10px rgba(0, 0, 0, 20%);
|
|
|
|
- .menu-item {
|
|
|
|
- @apply flex items-center gap-8px h-full flex-1 px-16px py-8px text-left;
|
|
|
|
- .menu-item-icon {
|
|
|
|
- @apply wh-30px;
|
|
|
|
|
|
+ .m-navbar {
|
|
|
|
+ .right-box {
|
|
|
|
+ @apply relative w-full z-1;
|
|
|
|
+ .overlay {
|
|
|
|
+ @apply fixed inset-0px opacity-100;
|
|
|
|
+ background: rgba(0, 0, 0, 0);
|
|
|
|
+ }
|
|
|
|
+ .menu-box {
|
|
|
|
+ @apply absolute right-0px z-10 flex flex-col gap-6px w-auto whitespace-nowrap rounded-6px bg-white;
|
|
|
|
+ box-shadow: 0px 0px 10px rgba(0, 0, 0, 20%);
|
|
|
|
+ .menu-item {
|
|
|
|
+ @apply flex items-center gap-8px h-full flex-1 px-16px py-8px text-left;
|
|
|
|
+ .menu-item-icon {
|
|
|
|
+ @apply wh-30px;
|
|
|
|
+ }
|
|
|
|
+ .menu-item-text {
|
|
|
|
+ @apply w-full text-left;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- .menu-item-text {
|
|
|
|
- @apply w-full text-left;
|
|
|
|
|
|
+ .menu-item-hover {
|
|
|
|
+ @apply bg-gray-100;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .menu-item-hover {
|
|
|
|
- @apply bg-gray-100;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|