多级联动组件

@param        $field
@param        $title
@param array  $value
@param string $type
@return Cascader
551898
public static function cascader($field, $title, array $value = [], $type = Cascader::TYPE_OTHER)
    {
        $cascader = new Cascader($field, $title, $value);
        $cascader->type($type);
        return $cascader;
    }
753650
public static function frameInputOne($field, $title, $src, $value = '')
    {
        return self::frame($field, $title, $src, (string)$value);
    }
266991
public function withHeader(string $field, string $value): self {
        $field = \trim($field);
        $lower = \strtolower($field);

        $clone = clone $this;

        $clone->headers[$lower] = [\trim($value)];
        $clone->headerCaseMap[$lower] = $field;

        return $clone;
    }
739748
public static function month($field, $title, $value = '')
    {
        return self::datePicker($field, $title, (string)$value, DatePicker::TYPE_MONTH);
    }
825068
public static function treeSelected($field, $title, $value = [])
    {
        return self::tree($field, $title, $value, Tree::TYPE_SELECTED);
    }
694606
public static function year($field, $title, $value = '')
    {
        return self::datePicker($field, $title, (string)$value, DatePicker::TYPE_YEAR);
    }
1273814
private function addRelationQuery($type, $value)
    {
        $this->prepareRelationFilter($type);
        $this->filters[$type][] = $value;
        return $this;
    }
559459
public function addChange(
        string $field,
        $value,
        int $type = self::TYPE_VALUE
    ): self {
        $this->changes[] = [
            'field' => $field,
            'type' => $type,
            'value' => $value,
        ];

        return $this;
    }
460622
public function addChoose($type , $name , $title ='' ,$value = '' , $extra = [] , $required = false , $msg = '', $group = '' ,$readonly = false){

        $data = [

            'type' => $type,
            'name' => $name,
            'title' => $title,
            'id'  => $this->formName . '-' . $name ,
            'extra' => $extra,
            'value' => $value,
            'msg'  => $msg,
            'group' => $group
        ];

        if ($required == true){
            $data['required'] = $required;
        }
        if ($readonly == true){
            $data['readonly'] = $readonly;
        }

        $this->addElement($data);

        return $this;
    }
661594
public static function frameFileOne($field, $title, $src, $value = '')
    {
        return self::frame($field, $title, $src, (string)$value, Frame::TYPE_FILE);
    }
255184
public static function typeUrl($value, array $params, array $field)
    {
        return self::typeText($value, $params, $field) && filter_var($value, FILTER_VALIDATE_URL);
    }
1256465
public function addElementInList(
        string $field,
        $value,
        int $type
    ): self {
        $this->changes[] = [
            'field' => $field,
            'type' => $type | self::TYPE_ARRAY_ELEMENT_ADD,
            'value' => $value,
        ];

        return $this;
    }
268148
public function stringLike($field, $value, $type = FilterOperands::STRING_CONTAINS)
    {
        $value = $this->convertTypeToMask($value, $type);

        return $this->expr()->like(
            $this->forceCaseInsensitivity ? $this->expr()->lower($field) : $field,
            $this->expr()->literal($value)
        );
    }
160389
public static function url($field, $title, $value = '')
    {
        return self::input($field, $title, $value, Input::TYPE_URL);
    }
505392
public static function uploadImages($field, $title, $action, array $value = [])
    {
        $upload = self::upload($field, $title, $action, $value, Upload::TYPE_IMAGE);
        $upload->format(['jpg', 'jpeg', 'png', 'gif'])->accept('image/*');
        return $upload;

    }
188355
public static function upload($field, $title, $action, $value = '', $type = Upload::TYPE_FILE)
    {
        $upload = new Upload($field, $title, $value);
        $upload->uploadType($type)->action($action);
        return $upload;
    }
265883
public static function create($title = '', $data = null, $type = ButtonType::WEB_URL)
    {
        return new static($title, $data, $type);
    }