Commit 029d17cf by 匡雅琴

悬浮样式调整

1 parent 04e9b836
......@@ -18,14 +18,14 @@
<div class="group-name">{{ item.materialGroupName }}</div>
</div>
<div>
<el-popover placement="right" trigger="hover">
<el-popover placement="right" trigger="click">
<div>
<GLButton class="group-btn" :size="size" type="text" fn="置顶" @click="handleStick(item)">{{ item.orderTime ? '取消置顶' : '置顶' }}</GLButton>
<!-- <GLButton class="group-btn" :size="size" type="text" fn="置顶" @click="handleStick(item)">{{ item.orderTime ? '取消置顶' : '置顶' }}</GLButton>
<GLButton class="group-btn" :size="size" type="text" fn="修改" @click="handleAddGroup(2, item)">修改</GLButton>
<GLButton class="group-btn" :size="size" type="text" fn="删除" v-if="item.isDefault == -1" @click="handleDeleteGroup(item.id)">删除</GLButton>
<!-- <el-button class="group-btn" :size="size" type="text" fn="置顶" @click="handleStick(item)">{{ item.orderTime ? '取消置顶' : '置顶' }}</el-button>
<GLButton class="group-btn" :size="size" type="text" fn="删除" v-if="item.isDefault == -1" @click="handleDeleteGroup(item.id)">删除</GLButton> -->
<el-button class="group-btn" :size="size" type="text" fn="置顶" @click="handleStick(item)">{{ item.orderTime ? '取消置顶' : '置顶' }}</el-button>
<el-button class="group-btn" :size="size" type="text" fn="修改" @click="handleAddGroup(2, item)">修改</el-button>
<el-button class="group-btn" :size="size" type="text" fn="删除" v-if="item.isDefault == -1" @click="handleDeleteGroup(item.id)">删除</el-button> -->
<el-button class="group-btn" :size="size" type="text" fn="删除" v-if="item.isDefault == -1" @click="handleDeleteGroup(item.id)">删除</el-button>
</div>
<div slot="reference">
<img class="more-icon" src="@/assets/material/more.png" alt="" />
......@@ -181,14 +181,13 @@ export default {
.status-words {
margin-left: 5px;
}
.el-popover {
min-width: 50px;
max-width: 150px;
&:hover {
cursor: pointer;
}
}
.material-group {
/deep/.el-popover {
min-width: 50px;
&:hover {
cursor: pointer;
}
}
.all-group {
font-size: 16px;
height: 44px;
......@@ -212,6 +211,7 @@ export default {
cursor: pointer;
text-align: left;
padding: 8px 8px 8px 18px;
margin: 0 10px;
display: flex;
justify-content: space-between;
&.active {
......@@ -221,25 +221,9 @@ export default {
vertical-align: middle;
padding-top: 3px;
}
}
}
}
ul {
padding: 0;
text-align: center;
margin-block-start: 0;
margin-block-end: 0;
li {
list-style: none;
position: relative;
vertical-align: middle;
margin: 0 10px;
&:nth-child(-n + 2) {
padding-bottom: 10px;
}
&:hover {
// color: #5850ff;
background-color: #ebeaff;
&:hover {
background-color: #ebeaff;
}
}
}
}
......@@ -253,9 +237,10 @@ ul {
margin-left: 8px;
}
.group-btn {
color: #333333;
display: block;
padding: 8px 10px;
text-align: center;
padding: 8px 0px;
text-align: left;
width: 100%;
&:hover {
background-color: #ebeaff;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!