|
@@ -17,7 +17,15 @@
|
|
|
/>
|
|
|
<div class="ctrls">
|
|
|
<div class="photoNum">{{item.photoNum}} 张</div>
|
|
|
- <el-dropdown class="dropdown" @command="command => handleCommand(command, item)">
|
|
|
+ <div class="dropdown">
|
|
|
+ <el-tooltip effect="dark" content="重命名" placement="top" :open-delay=".5">
|
|
|
+ <i class="el-icon-edit" @click="openForm(item)"></i>
|
|
|
+ </el-tooltip>
|
|
|
+ <el-tooltip effect="dark" content="删除" placement="top" :open-delay=".5">
|
|
|
+ <i style="color: #f56c6c" class="el-icon-delete" @click="removeItem(item)"></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
+ <!-- <el-dropdown class="dropdown" @command="command => handleCommand(command, item)">
|
|
|
<span class="el-dropdown-link">
|
|
|
更多操作 <i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
</span>
|
|
@@ -25,7 +33,7 @@
|
|
|
<el-dropdown-item command="realName">重命名</el-dropdown-item>
|
|
|
<el-dropdown-item command="remove" style="color: red;">删除</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
+ </el-dropdown> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<empty v-if="list.length == 0"/>
|
|
@@ -130,6 +138,7 @@ export default {
|
|
|
position: relative;
|
|
|
display: inline-block;
|
|
|
margin-top: 20px;
|
|
|
+ margin-right: 20px;
|
|
|
.ctrls{
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
@@ -143,6 +152,7 @@ export default {
|
|
|
text-align: right;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
+ cursor: pointer;
|
|
|
.photoNum{
|
|
|
margin: auto;
|
|
|
text-align: center;
|
|
@@ -154,6 +164,15 @@ export default {
|
|
|
position: absolute;
|
|
|
top: 10px;
|
|
|
right: 0;
|
|
|
+ color: #fff;
|
|
|
+ i{
|
|
|
+ margin-right: 5px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ padding-right: 10px;
|
|
|
+ border-bottom: 1px solid #fff;
|
|
|
+ width: 100%;
|
|
|
+ padding-bottom: 10px;
|
|
|
}
|
|
|
.el-dropdown-link{
|
|
|
color: #fff;
|