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

class CalctextField extends AbstractField{
    constructor(container) {
        super();
        this.scope="calctextField"
        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="height: 30px;">
        <img src="images/calctextField.png"/></div>`;
        this.propValues.name="计算脚本"+window.formApp.formPanel.propValues.nameIndex;
        this.propValues.calculateonrefresh = false; //重计算
        this.propValues.valuescript = ""//计算脚本
        
    }
    getPropsDesc() {
        return {
            "base":['myselfrows','name','calculateonrefresh','valuescript'],
            

        }
    }
    
}
export default CalctextField;