order_id = $orderId; $this->currentPage = $currentPage; parent::__construct($title); } public function render() { // 实例化表单类并传递自定义参数 $form = RefundNote::make(['order_id'=>$this->order_id,'current_page'=>$this->currentPage]); return Modal::make() ->lg() ->title('拒绝理由') ->body($form) ->button($this->title); } }