label($value)->title($title); } /** * Radio 的 value * @param $label * @return $this */ public function label($label) { $this->label = $label; return $this; } /** * 是否禁用 * @param bool $disabled * @return $this */ public function disabled(bool $disabled) { $this->disabled = $disabled; return $this; } /** * 是否显示边框 * @param bool $border * @return $this */ public function border(bool $border = true) { $this->border = $border; return $this; } /** * Radio 的尺寸,仅在 border 为真时有效 * @param string $size * @return $this */ public function size(string $size) { $this->size = $size; return $this; } /** * 原生 name 属性 * @param string $name * @return $this */ public function name(string $name) { $this->name = $name; return $this; } public function title(string $title) { $this->title = $title; return $this; } }