package org.example.Entity.Control.Fields;


import java.util.Map;
import java.util.Objects;


// 假设存在一个工具类用于类型转换
import org.example.Utils.NativeExtensionUtils;

public class ImageFiled extends Field {
    public boolean uFolder = true;

    public ImageFiled(Map<String, Object> row) {
        super(row);
        this.defaultXtype = "field.imgupload";
    }

    public int getFNums() {
        Object limitMaxValue = getLimitMaxValue();
        String limitMaxValueStr = Objects.toString(limitMaxValue, "1");
        return NativeExtensionUtils.parseInt(limitMaxValueStr);
    }
}