优化选择图标组件

master
刘元博 2 years ago
parent cfce89be7d
commit 4eea8cdbb0
  1. 2
      ruoyi-ui/src/components/IconSelect/index.vue
  2. 3
      ruoyi-ui/src/views/system/menu/index.vue

@ -1,7 +1,7 @@
<!-- @author zhengjie -->
<template>
<div class="icon-body">
<el-input v-model="name" style="position: relative;" clearable placeholder="请输入图标名称" @clear="filterIcons" @input.native="filterIcons">
<el-input v-model="name" style="position: relative;" clearable placeholder="请输入图标名称" @clear="filterIcons" @input="filterIcons">
<i slot="suffix" class="el-icon-search el-input__icon" />
</el-input>
<div class="icon-list">

@ -140,8 +140,7 @@
v-if="form.icon"
slot="prefix"
:icon-class="form.icon"
class="el-input__icon"
style="height: 32px;width: 16px;"
style="width: 25px;"
/>
<i v-else slot="prefix" class="el-icon-search el-input__icon" />
</el-input>

Loading…
Cancel
Save