wangting
2024-12-30 306a9c4fde94c54d91aee5a69d59b993c7c707a1
Source/plt-web/plt-web-ui/src/page/index/sidebar/sidebarItem.vue
@@ -14,14 +14,12 @@
                  :key="item[labelKey]"
                  :index="item[pathKey]">
        <template slot="title">
        <div style="display: flex">
          <icon-show v-if="item[iconKey]" :name="item[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
         <div  v-else>
           <i class="el-icon-setting" :font-size="iconSize"></i>
         </div>
          <span slot="title"
                :class="{'el-menu--display':collapse && first}">{{ generateTitle(item) }}</span>
        </div>
          <div style="display: flex">
            <icon-show v-if="item[iconKey]" :name="item[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
            <i v-else class="el-icon-setting" :font-size="iconSize"></i>
            <span slot="title"
                  :class="{'el-menu--display':collapse && first}">{{ generateTitle(item) }}</span>
          </div>
        </template>
        <template v-for="(child,cindex) in item[childrenKey]">
          <el-menu-item v-if="validatenull(child[childrenKey])"
@@ -30,7 +28,8 @@
                        :index="child[pathKey],cindex"
                        @click="open(child)">
            <div style="display: flex">
              <icon-show :name="child[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
              <icon-show v-if="child[iconKey]" :name="child[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show>
              <i v-else class="el-icon-setting" :font-size="iconSize"></i>
              <span slot="title">{{ generateTitle(child) }}</span>
            </div>
          </el-menu-item>