<template>
  <div class="custom-ui">
    <component
      :is="data.type"
      :data="data"
      @currentItemClick="currentItemClick"
    ></component>
  </div>
</template>
<script>
import mixins from "../mixins";
export default {
  name: "CustomUi",
  props: ["data"],
  mixins: [mixins],
  data() {
    return {
      // type: "content_wrap",
      showA: true,
      routeName: "",
    };
  },
  mounted() {
    console.log(this.data, "传进来的data");
  },
  methods: {
    currentItemClick(val) {
      this.$emit("currentItemClick", val);
    },
  },
};
</script>
<style scoped lang="scss">
.custom-ui {
  width: 100%;
  height: 100%;
}
</style>
