32 lines
508 B
PHP
32 lines
508 B
PHP
<?php
|
|
|
|
namespace Peidikeji\Goods\Form;
|
|
|
|
use Dcat\Admin\Form\Field;
|
|
|
|
class Spec extends Field
|
|
{
|
|
protected $view = 'dcat-admin-goods::form.spec';
|
|
|
|
protected $variables = [
|
|
'headers' => [],
|
|
'type' => null,
|
|
];
|
|
|
|
public function header(array $headers)
|
|
{
|
|
$this->addVariables([
|
|
'headers' => $headers,
|
|
]);
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function type($type)
|
|
{
|
|
$this->addVariables(['type' => $type]);
|
|
|
|
return $this;
|
|
}
|
|
}
|