placement = $placement; return $this; } /** * 是否可清空 * @param bool $clearable * @return $this */ public function clearable(bool $clearable = true) { $this->clearable = $clearable; return $this; } /** * 是否用户可输入 * @param bool $userInput * @return $this */ public function userInput(bool $userInput = true) { $this->userInput = $userInput; return $this; } /** * 选择后关闭 * @param bool $autoClose * @return $this */ public function autoClose(bool $autoClose = true) { $this->autoClose = $autoClose; return $this; } /** * 占位符 * @param string $placeholder * @return $this */ public function placeholder(string $placeholder = '') { $this->placeholder = $placeholder; return $this; } /** * 是否禁用 * @param bool $disabled * @return $this */ public function disabled(bool $disabled = true) { $this->disabled = $disabled; return $this; } }