新增 bind 方法

This commit is contained in:
JaguarJack 2021-04-27 18:33:34 +08:00
parent 0600fc1dbb
commit 41aa81069c

View File

@ -127,6 +127,13 @@ class Table
*/
protected $border = true;
/**
* bind table
*
* @var bool
*/
protected $bind = false;
/**
* Table constructor.
* @param string $ref
@ -340,6 +347,18 @@ class Table
return $this;
}
/**
* table 使用 v-bind
*
* @time 2021年04月27日
* @return $this
*/
public function withBind(): Table
{
$this->bind = true;
return $this;
}
/**
* 变成 tree table