import AbstractField from "./AbstractField";
import { Sequence } from "../../utility";

class LabelField extends AbstractField{
    constructor(container) {
        super();
        this.scope="labelField"
        this.container = container;
        this.htmlDOM=null;
        this.className="baseField";
        this.propValues.id = Sequence.createUuid();
        this.html=`<div style="padding: 5px 0;line-height: 20px;color: #3d464d;font-weight: 600;">
        <span  class="baseLabel-title" style="font-size: 14px;color: #3d464d;">标题</span>
        </div><div class="baseCon fieldId"  fieldid='${this.propValues.id}' style="">
        <button class="baseCon-btn">${this.propValues.name}</button>
        <input type="text"  class="base-field " readonly></div>`;

        
        this.propValues.name="标题33333333333333333"+window.formApp.formPanel.propValues.nameIndex;
        this.propValues.height = ""; // 高度
        this.propValues.titleScript =""; // 标题

        this.propValues.hiddenscript = ""; //隐藏条件脚本
        this.propValues.hiddenvalue = ""; //隐藏时显示值

    }
    
    getPropsDesc() {
        return {
            "base":['myselfrows','name', 'height', 'titleScript' ],
            "hidden":['hiddenscript','hiddenvalue'],
        }
    }
    
}
export default LabelField;