6
0
Fork 0
jiqu-library-server/app/Admin/Extensions/Form/WangEditor.php

29 lines
452 B
PHP

<?php
namespace App\Admin\Extensions\Form;
use Dcat\Admin\Form\Field;
class WangEditor extends Field
{
protected $view = 'admin.form.wang-editor';
protected $height = '200px';
public function height($height)
{
$this->height = $height;
return $this;
}
public function render()
{
$this->addVariables([
'height' => $this->height,
]);
return parent::render();
}
}