core/Form.php
public function getFields(string $tabIndex = null)
    {
        $tabIndex = empty($tabIndex) ? $this->tabIndex : $tabIndex;
        if (empty($tabIndex)) {
            return $this->fields;
        }
        if (isset($this->tabFields[$tabIndex])) {
            return $this->tabFields[$tabIndex];
        }
        $temp = [];
        foreach ($this->fields as $name => $field) {
            if (!empty($field->tabIndex) && $field->tabIndex == $tabIndex) {
                $temp[$name] = $field;
            }
        }
        $this->tabFields[$tabIndex] = $temp;
        return $temp;
    }
public function getFields(string $tabIndex = null)
    {
        $tabIndex = empty($tabIndex) ? $this->tabIndex : $tabIndex;
        if (empty($tabIndex)) {
            return $this->fields;
        }
        if (isset($this->tabFields[$tabIndex])) {
            return $this->tabFields[$tabIndex];
        }
        $temp = [];
        foreach ($this->fields as $name => $field) {
            if (!empty($field->tabIndex) && $field->tabIndex == $tabIndex) {
                $temp[$name] = $field;
            }
        }
        $this->tabFields[$tabIndex] = $temp;
        return $temp;
    }
获取当前tab 下的字段
@param string|null $tabIndex
@return Field[]