core/Field.php
public function getAttributes()
    {
        $attr = array_merge($this->_attr, $this->_data);
        $attr = array_filter($attr, function ($v) {
            return $v !== null && $v !== '';
        });
        if ($this->form != null && $this->form->getType() == 'edit') {
            if ($this->offEdit) {
                $attr['disabled'] = 'disabled';
            }
        }
        if ($this->value !== null) {
            $attr['value'] = $this->value;
        }
        return $attr;
    }
public function getAttributes()
    {
        $attr = array_merge($this->_attr, $this->_data);
        $attr = array_filter($attr, function ($v) {
            return $v !== null && $v !== '';
        });
        if ($this->form != null && $this->form->getType() == 'edit') {
            if ($this->offEdit) {
                $attr['disabled'] = 'disabled';
            }
        }
        if ($this->value !== null) {
            $attr['value'] = $this->value;
        }
        return $attr;
    }
获取输入框属性