## 图标选择器
<br />
自定义图标库、class图标及element图标库多种图标供以选择使用，可结合颜色选取器编辑图片颜色

### 基本用法

:::demo `receiveIcon`方法获取图标
```html

<template>
    {{icon.path}}
    <ve-icon :model="icon.path" :size="30"></ve-icon>
    <el-button size="medium" @click="openIconSelect">
        选择
    </el-button>
    <ve-icon-select :visible.sync="visible" @receiveIcon="receiveIcon" />
</template>

<script>
    export default {
        data() {
            return {
                visible : false,
                icon : {}
            }
        },
        methods: {
            openIconSelect() {
                this.visible = true;
            },
            receiveIcon(icon) {
                this.icon = icon;
            },
        }
    }
</script>
```
:::

### 设置图标颜色
可与颜色选择器联动，自定义设置图标颜色

:::demo 
```html

<template>
    <ve-icon :model="icon.path" :size="30"></ve-icon>
    <el-button size="mini" @click="openIconSelect">
        选择
    </el-button>
    <el-color-picker v-if="this.icon.path" style="position:relative;top:11px;"
                     @change="colorChange" v-model="color" :predefine="predefineColors">
    </el-color-picker>
    <ve-icon-select :visible.sync="visible" @receiveIcon="receiveIcon" />
</template>

<script>
    export default {
        data() {
            return {
                color : "#F05654",
                predefineColors : [ "#F05654", "#FFB61E", "#89C3EB", "#FFB3A7", "#1BD1A5", "#FFF143",
                    "#9ED900", "#4B5CC4", "#FF4777", "#758A99", "#44CEF6", "#FF461F" ],
                visible : false,
                icon : {}
            }
        },
        methods: {
            openIconSelect() {
                this.visible = true;
            },
            receiveIcon(icon) {
                this.icon = icon;
            },
            colorChange(color) {
                if (this.icon.path) {
                    var arr = this.icon.path.split(":");
                    if (arr.length > 1) {
                        this.icon.path = arr[0] + ':' + arr[1] + ':' + color;
                    }
                }
            }
        }
    }
</script>
```
:::


### Attributes

| 参数      | 说明          | 类型      | 可选值                                    | 默认值  |
|---------- |-------------- |---------- |--------------------------------------- |-------- |
| visible | 是否展示图标库弹窗 | boolean | — | false |

### Events

| 事件名称 | 说明 | 回调参数 |
|---------- |-------- |---------- |
| receiveIcon | 获取选中图标回调 | 选中的icon对象，包含icon的name、path、check |
