import Container from "./Container";

class FormPanel extends Container{
    constructor(panel) {
        super(panel);
        this.style.height="100%";
        this.style={
            height:"100%",
            "border":"none",
            "border-color":"none",
            "border-style":"none",
            padding:"20px 20px 40px",
            'overflow':'hidden',
            "margin":"0 auto",

        };
        this.propValues.nameIndex=0;
        this.scope='formPanel';//formpanel单独一个scope
        this.propValues.containerwidth=500;//容器宽度，仅给formpanel用
    }
    /**
     * 获取自身的属性名集合
     */
    getPropsDesc(){
        return {
            "base":["myselfrows"]
        }
    }
    //单独对formpanel自身属性解析
    parseSelfProp(root){
        this.setallAttribute(this,root);
        this.renderHtml(this.style,'style');
        this.renderHtml(this.propValues,'prop');
    }
    

}
export default FormPanel;