|
@@ -1,18 +1,24 @@
|
|
<template>
|
|
<template>
|
|
<el-container :class="'content'">
|
|
<el-container :class="'content'">
|
|
<el-header>
|
|
<el-header>
|
|
|
|
+ <el-select v-model="value" placeholder="请选择">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in options"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
<el-button type="primary" class="add-item" @click="openAddIconDialog">
|
|
<el-button type="primary" class="add-item" @click="openAddIconDialog">
|
|
新增图标
|
|
新增图标
|
|
</el-button>
|
|
</el-button>
|
|
</el-header>
|
|
</el-header>
|
|
<el-main>
|
|
<el-main>
|
|
<ul>
|
|
<ul>
|
|
- <li
|
|
|
|
- v-for="(item, index) in iconList"
|
|
|
|
- :key="index"
|
|
|
|
- :style="{ backgroundImage: 'url(' + item.url + ')' }"
|
|
|
|
- :title="item.key"
|
|
|
|
- >
|
|
|
|
|
|
+ <li v-for="(item, index) in iconList" :key="index" :title="item.key">
|
|
|
|
+ <!-- :style="{ backgroundImage: 'url(' + item.url + ')' }" -->
|
|
|
|
+ <img :src="item.url" alt="" srcset="" />
|
|
<div class="name">
|
|
<div class="name">
|
|
{{ item.key }}
|
|
{{ item.key }}
|
|
</div>
|
|
</div>
|
|
@@ -151,16 +157,21 @@ export default {
|
|
li {
|
|
li {
|
|
width: 69px;
|
|
width: 69px;
|
|
height: 71px;
|
|
height: 71px;
|
|
|
|
+ margin: 0px 10px;
|
|
float: left;
|
|
float: left;
|
|
- margin: 5px 5px;
|
|
|
|
- background-size: 100% 100%;
|
|
|
|
- margin-bottom: 50px;
|
|
|
|
|
|
+ padding: 5px 5px;
|
|
|
|
+ padding-bottom: 50px;
|
|
position: relative;
|
|
position: relative;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
|
+ img {
|
|
|
|
+ width: 69px;
|
|
|
|
+ height: 71px;
|
|
|
|
+ }
|
|
.name {
|
|
.name {
|
|
position: absolute;
|
|
position: absolute;
|
|
width: 100%;
|
|
width: 100%;
|
|
- bottom: -24px;
|
|
|
|
|
|
+ bottom: 24px;
|
|
|
|
+ left: 0px;
|
|
text-align: center;
|
|
text-align: center;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
white-space: nowrap;
|
|
@@ -168,14 +179,20 @@ export default {
|
|
}
|
|
}
|
|
.func {
|
|
.func {
|
|
position: absolute;
|
|
position: absolute;
|
|
- bottom: -44px;
|
|
|
|
- left: 16px;
|
|
|
|
|
|
+ bottom: 3px;
|
|
|
|
+ left: 21px;
|
|
|
|
+ display: none;
|
|
.el-button {
|
|
.el-button {
|
|
border: 0px;
|
|
border: 0px;
|
|
padding: 0 0;
|
|
padding: 0 0;
|
|
background: transparent;
|
|
background: transparent;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ &:hover {
|
|
|
|
+ .func {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|