yangyin
2024-11-03 a6d6eb116a63e9b53244699fd6f9fe919c304e91
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<template>
    <vue-file-toolbar-menu  :content="content"/>
</template>
 
<script setup lang="ts">
import {  definePropType } from 'element-plus/es/utils/vue/props/runtime';
import VueFileToolbarMenu from 'vue-file-toolbar-menu';
import type { ButtonComponentProps } from './types';
const props = defineProps({
    content: {
        type: definePropType<ButtonComponentProps[]>(Array),
    
    },
});
</script>
<style scoped lang="scss">
 
:deep(.bar-button) {
    cursor: pointer;
    .bar-menu {
        cursor: default;
    }
    .bar-menu-item {
        cursor: pointer;
    }
 
    &:hover {
        color: initial !important;
        background-color: #eaecee !important;
    }
 
    &.active{
        color: initial !important;
        background-color: #dfe2e5 !important;
    }
}
</style>