riku
2024-05-06 1534aee0339dee8000cdd26c21797cf3ad391f7a
src/components/map/MapToolbox.vue
@@ -1,6 +1,6 @@
<template>
  <el-dropdown
    class="fy-container dropdown-wrap"
    class="p-events-auto dropdown-wrap"
    trigger="click"
    size="small"
    @command="handleCommand"
@@ -12,8 +12,16 @@
    </el-button>
    <template #dropdown>
      <el-dropdown-menu>
        <el-dropdown-item v-for="(item, index) in toolItem" :key="index" :command="index">
          <el-button :type="item.value ? 'primary' : 'info'" plain size="default">
        <el-dropdown-item
          v-for="(item, index) in toolItem"
          :key="index"
          :command="index"
        >
          <el-button
            :type="item.value ? 'primary' : 'info'"
            plain
            size="default"
          >
            <font-awesome-icon :icon="item.icon" class="m-r-4" />
            {{ item.label + ': ' + (item.value ? '开' : '关') }}
          </el-button>
@@ -99,18 +107,6 @@
  position: absolute;
  top: 10px;
  left: 2px;
}
.el-button-custom {
  --el-button-bg-color: var(--bg-color);
  --el-button-hover-text-color: var(--select_color);
  --el-button-hover-bg-color: var(--bg-color);
  --el-button-border-color: var(--font-color);
  --el-button-active-border-color: transparent;
}
.el-button-custom:focus-visible {
  outline: 0px solid var(--el-button-outline-color);
}
.el-button {