<template>
  <div class="component-editor">input</div>
</template>

<script>
import basic from "../basic";
export default {
  extends: basic,
  name: "maliangeditor",
  props: {
    // 编辑器会传递给编辑面板组件的属性值，编辑器可以修改这些值来达到控制组件数据的作用
    componentInfo: {
      // 固定字段，收集所有属性值
      type: [Object],
      default() {
        return {};
      },
    },
  },
  data: function () {
    return {
      usedatasource: false,
    };
  },
  computed: {},
  mounted: function () {
  },
  methods: {},
  watch: {
    componentInfo: {
      handler(v) {
        console.log(v);
      },
      deep: true,
    },
  },
};
</script>

<style lang="stylus" rel="stylesheet/stylus" type="text/stylus" scoped>
.component-editor {
}
</style>
