<template>

</template>
<script>
export default {
    name: "spcp-proto",
    props:{
        dataConstructor: {type: Object,default: () => {return {}}}, // 组件结构信息
        spcpFormData: {type: Object,default: () => {return {}}}, // 组件结构信息
        editable: {type: String,default: ""}, // 是否可编辑
        fieldId: {type: String,default: ""}, // 组件绑定的字段ID或自定义ID
        colCss: {type: String,default: ""},
        width: {type: String,default: ""}, // 宽度
        isView: {type: Boolean,default: false}, // 宽度
    },
    data(){
        return {
            bindProps: {}
        }
    },
    watch:{
        bindProperties:{
            deep: true,
            handler: function(){
                this.bindProps = this.bindProperties[this.fieldId];
            }
        }
    },
    inject:['bindProperties'],
    created() {
        this.bindProps = this.bindProperties[this.fieldId];
    },
}
</script>
<style scoped>

</style>