<template>

    <eye-renderer-group :dataProvider="dataProvider"
                        :cols="3"
                        v-model="currentValue"
                        v-bind="$props"
                        @itemChange="handlerClick">

    </eye-renderer-group>

</template>

<script type="text/babel">

  import  { Component,Field,Core }  from 'eye-core';

  export default Component({

    name: 'breed',

    mixins:[ Field ],
    props: {
      supportLevel: {  // 是否支持 province city area
          type: Number,
          default: 3
      },
      valueField:{
          type:String,
          default:'id'
      },
    },
    methods: {

        currentValueChange(val) {
            if(Core._.isObject(val)) {
                this.onCreateComplete(val);
            }
        },

        handlerClick(row) {
            this.onSelectChange(row)
        },

    }
  })


</script>

