<?php

namespace app\entity\gateway\script;

use AllowDynamicProperties;

/**
 * Element Plus notification 组件
 * @doc https://element-plus.org/zh-CN/component/notification.html
 */
#[AllowDynamicProperties] class ElNotification extends BaseScript
{
    public function __construct(
        array  $_bind = [],
        string $title = '',
        string $message = '',
        bool   $dangerouslyUseHTMLString = false,
        string $type = '',
        string $icon = null,
        int    $duration = 4500,
        string $position = 'top-right',
    )
    {
        $this->title = $title;
        $this->message = $message;
        $this->dangerouslyUseHTMLString = $dangerouslyUseHTMLString;
        $this->type = $type;
        $this->icon = $icon;
        $this->duration = $duration;
        $this->position = $position;
        parent::__construct($_bind);
    }
}