32 lines
599 B
PHP
32 lines
599 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace Builder\View\Actions;
|
|
use Builder\View\Components\Attrs\Button;
|
|
class BaseRowAction extends BaseAction
|
|
{
|
|
use Button;
|
|
protected $order = 1;
|
|
protected $vif;
|
|
/**
|
|
* 设置排序越大越靠前
|
|
* @param int $order
|
|
* @return $this
|
|
*/
|
|
public function order(int $order)
|
|
{
|
|
$this->order = $order;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* 设置操作vif属性算法
|
|
* @param array $vif
|
|
* @return $this
|
|
*/
|
|
public function vif($vif)
|
|
{
|
|
$this->vif = $vif;
|
|
return $this;
|
|
}
|
|
}
|