---
url: /docs/forms/components/cascader.md
---
# Cascader 组件

对应 ElementPlus [Cascader 级联组件](https://element-plus.org/zh-CN/component/cascader.html)
级联组件目前主要在后台用于父级组件，例如权限菜单选择等功能上，下面的功能演示主要使用 `permissions` 权限菜单表作为数据源演示

好的，以下是去掉方法说明后面参数类型的中文文档：

# 方法

### 配置选项

```php
$this->props(['key' => 'value']);
```

配置选项，具体见下表。

***

### 设置选项分隔符

```php
$this->separator(',');
```

选项分隔符。

***

### 自定义浮层类名

```php
$this->popperClass('custom-class');
```

自定义浮层类名。

***

### 设置输入框占位文本

```php
$this->placeholder('请输入内容');
```

输入框占位文本。

***

### 设置禁用状态

```php
$this->disabled(true);
```

是否禁用。

***

### 是否支持清空选项

```php
$this->clearable(true);
```

是否支持清空选项。

***

### 设置次级菜单的展开方式

```php
$this->expandTrigger('click');
```

次级菜单的展开方式。

***

### 是否显示选中值的完整路径

```php
$this->showAllLevels(true);
```

输入框中是否显示选中值的完整路径。

***

### 是否可搜索选项

```php
$this->filterable(true);
```

是否可搜索选项。

***

### 设置去抖延迟

```php
$this->debounce(300.0);
```

搜索关键词输入的去抖延迟，毫秒。

***

### 设置尺寸

```php
$this->size('medium');
```
