| | |
| | | |
| | | <el-tabs v-model="activeName" @tab-click="handleClick"> |
| | | <el-tab-pane v-for="item in iconList" :label="item.lable" :name="item.lable" style="height: calc(100vh - 270px);overflow: auto "> |
| | | <div class="iconList"> |
| | | <div class="iconList" :key="key"> |
| | | <div class="iconItem" v-for="svg in item.list" |
| | | :data-value="svg.name" v-right-click="{action:checkSvg,data:svg}"> |
| | | <div class="svgContent" v-html="svg.content"></div> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | key:1, |
| | | types: [], |
| | | checkedTypes:[], |
| | | searchText:'', |
| | |
| | | if (this.iconList.length > 0) { |
| | | this.activeName = this.iconList[0].lable; |
| | | } |
| | | this.key++; |
| | | } else { |
| | | this.$message.error(res.data.msg); |
| | | } |