Closed mbdmt closed 3 months ago
例如先选 产品 取得id 传到Modal::make的payload中 我看好像页面载入时就已经把Modal按钮网址参数设死 参数如在按钮上还能复写 但只能设在php参数不知道有变通方式吗 谢谢
$table->select('product_id')->options($option);
$po_modal = Modal::make() ->lg() ->title('Options') ->body(ProductOptions::make()->payload(['id' => '123'])) // 传递自定义参数 ->button('Options');
$table->display('optionss')->with(function() use ($po_modal){ return $po_modal.Session('orderOptionModel'); });
亲,这个是可以的哟。
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description:
例如先选 产品 取得id 传到Modal::make的payload中 我看好像页面载入时就已经把Modal按钮网址参数设死 参数如在按钮上还能复写 但只能设在php参数不知道有变通方式吗 谢谢
Steps To Reproduce:
$table->select('product_id')->options($option);
$po_modal = Modal::make() ->lg() ->title('Options') ->body(ProductOptions::make()->payload(['id' => '123'])) // 传递自定义参数 ->button('Options');
$table->display('optionss')->with(function() use ($po_modal){ return $po_modal.Session('orderOptionModel'); });