|
@@ -6,8 +6,6 @@ use Dcat\Admin\Admin;
|
|
|
|
|
|
class Icon extends Text
|
|
|
{
|
|
|
- protected $default = null;
|
|
|
-
|
|
|
public function render()
|
|
|
{
|
|
|
$this->script = <<<JS
|
|
@@ -15,10 +13,7 @@ setTimeout(function () {
|
|
|
$('{$this->getElementClassSelector()}').iconpicker({placement:'bottomLeft'});
|
|
|
}, 10);
|
|
|
JS;
|
|
|
- if (is_null($this->default)) {
|
|
|
- $this->default('');
|
|
|
- }
|
|
|
-
|
|
|
+
|
|
|
$this->defaultAttribute('style', 'width: 200px');
|
|
|
|
|
|
return parent::render();
|