<template>
  <el-form-item :label="i18nt('designer.setting.iconClass')">
    <el-select v-model="optionModel.iconClass">
      <el-option label="统计块" value="el-icon-coin">
         <span><i class="el-icon-coin"></i> 统计块</span>
      </el-option>
      <el-option label="列表" value="el-icon-tickets">
        <span><i class="el-icon-tickets"></i> 列表</span>
      </el-option>
      <el-option label="图表" value="el-icon-data-line">
        <span><i class="el-icon-data-line"></i> 图表</span>
      </el-option>
      <el-option label="通用" value="el-icon-reading">
        <span><i class="el-icon-reading"></i> 通用</span>
      </el-option>
    </el-select>
    <!-- <el-input type="text" v-model="optionModel.iconClass"></el-input> -->
  </el-form-item>
</template>

<script>
  import i18n from "../../../../../components/xform/utils/i18n";
  import {deepClone} from "../../../../../components/xform/utils/util";

  export default {
    name: "iconClass-editor",
    componentName: 'PropertyEditor',
    mixins: [i18n],
    props: {
      designer: Object,
      selectedWidget: Object,
      optionModel: Object,
    },
    data() {
      return {
      }
    },
    created() {
      this.cssClassList = deepClone(this.designer.getCssClassList())
      //监听表单css代码改动事件并重新加载！
      this.designer.handleEvent('form-css-updated', (cssClassList) => {
        this.cssClassList = cssClassList
      })
    }
  }
</script>

<style scoped>

</style>
