• 图标选择器
    • 普通用法

    图标选择器

    1. 引入阿里巴巴的图表库后,直接使用图标名即可,记得加前缀
    2. <link rel="stylesheet" href="https://at.alicdn.com/t/font_567566_pwc3oottzol.css">

    普通用法

    图标选择器 - 图1

    配置typeicon-select,图标集合参考例子配置iconList属性

    1. <avue-form :option="option" v-model="form" > </avue-form>
    2. <script>
    3. export default{
    4. data() {
    5. return {
    6. form: {
    7. icon:'el-icon-error'
    8. },
    9. option: {
    10. labelWidth: 120,
    11. column: [
    12. {
    13. label: '图标选择器',
    14. prop: 'icon',
    15. type: 'icon-select',
    16. iconList: [{
    17. label: '基本图标',
    18. list: ['el-icon-info', 'el-icon-error', 'el-icon-error', 'el-icon-success', 'el-icon-warning', 'el-icon-question']
    19. },{
    20. label: '方向图标',
    21. list: ['el-icon-info', 'el-icon-back', 'el-icon-arrow-left', 'el-icon-arrow-down', 'el-icon-arrow-right', 'el-icon-arrow-up']
    22. }, {
    23. label: '符号图标',
    24. list: ['el-icon-plus', 'el-icon-minus', 'el-icon-close', 'el-icon-check']
    25. },{
    26. label: '阿里云图标',
    27. list: ['iconfont icon-zhongyingwen', 'iconfont icon-rizhi1', 'iconfont icon-bug', 'iconfont icon-qq1', 'iconfont icon-weixin1']
    28. },]
    29. }
    30. ]
    31. }
    32. }
    33. },
    34. methods: {
    35. submit() {
    36. this.$message.success('当前数据' + JSON.stringify(this.form))
    37. }
    38. }
    39. }
    40. </script>