Browse Source

feat 首页图标图片比例调整 增加关闭按钮

wangqin
qingzhengli 1 year ago
parent
commit
41773f664d
  1. 37
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFrame/index.vue

37
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFrame/index.vue

@ -1,22 +1,17 @@
<template> <template>
<div class="HomeFrame"> <div class="HomeFrame">
<ElPopover <ElPopover trigger="manual" :value="activeIcon === 'Frame'" :visibleArrow="false" placement="left"
trigger="manual" popper-class="global-input-search-popover">
:value="activeIcon === 'Frame'"
:visibleArrow="false" <Button :class="['btn', { 'btn-active': activeIcon }]" slot="reference" @click.native="handleClick('Frame')">
placement="left"
popper-class="global-input-search-popover"
>
<Button
:class="['btn', { 'btn-active': activeIcon }]"
slot="reference"
@click.native="handleClick('Frame')"
>
<img src="@screen/images/home-Frame/Frame.svg" /> <img src="@screen/images/home-Frame/Frame.svg" />
</Button> </Button>
<div class="body"> <div class="body">
<div class="title">图标含义</div> <div class="title">图标含义</div>
<span class="close" @click="() => { this.activeIcon = null; }">
<i class="el-icon-close" />
</span>
<!-- <Form labelWidth="90px" column="1" class="form" ref="FormConfigRef" :formList="formList" /> --> <!-- <Form labelWidth="90px" column="1" class="form" ref="FormConfigRef" :formList="formList" /> -->
<img class="image" src="@screen/images/home-Frame/logoMean.png" /> <img class="image" src="@screen/images/home-Frame/logoMean.png" />
<!-- <div class="footer"> <!-- <div class="footer">
@ -67,23 +62,31 @@ div.el-popper.global-input-search-popover {
.body { .body {
.title { .title {
background: linear-gradient( background: linear-gradient(90deg,
90deg,
#237e9b 0%, #237e9b 0%,
rgba(23, 145, 184, 0) 100% rgba(23, 145, 184, 0) 100%);
);
padding: 3px 9px; padding: 3px 9px;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
} }
.close {
padding: 3px 9px;
cursor: pointer;
position: absolute;
top: 0;
right: 0;
width: fit-content;
}
} }
} }
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
.image { .image {
width: 60vw; width: 50vw;
height: 65vh; height: 65vh;
} }

Loading…
Cancel
Save