<script>
import CLayout from "./layout.vue";
import slots from "./mixin/slots";
export default {
  name: 'ProDataG2Plot',
  componentName: 'ProDataG2Plot',
  mixins: [slots()],
  data(){
    this.plots = {}
    return {}
  },
  provide() {
    return {
      jdatachart: this,
    };
  },
  components: {
    CLayout,
  },
  props: {
    config: {},
  },
  methods:{
    getPlot(name){
      return this.plots[name]
    }
  },
  render() {
    const _datas = {
      props: {
        config: this.config
      }
    }
    return (
      <div class="pro-data-g2plot">
        <CLayout {..._datas}>
          {this.renderSlots()}
        </CLayout>
      </div>
    );
  },
};
</script>