2020-11-04 10:30:14 +08:00
|
|
|
## Dropdown
|
2021-09-04 19:29:28 +08:00
|
|
|
|
2020-11-04 10:30:14 +08:00
|
|
|
リンクとアクションのリストを表示するためのトグルメニュー
|
|
|
|
|
|
|
|
### 基本的な使い方
|
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
dropdown メニューの上にカーソルを置くと、より多くのアクションが展開されます。
|
|
|
|
|
|
|
|
:::demo トリガ要素はデフォルトの `slot` でレンダリングされ、dropdown 部分は `dropdown` という名前の `slot` でレンダリングされます。デフォルトでは、トリガーとなる要素にカーソルを合わせたときに dropdown リストが表示され、クリックする必要はありません。
|
2020-11-04 10:30:14 +08:00
|
|
|
|
|
|
|
```html
|
|
|
|
<el-dropdown>
|
|
|
|
<span class="el-dropdown-link">
|
|
|
|
Dropdown List<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
</span>
|
2020-11-20 23:02:15 +08:00
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
|
|
|
<el-dropdown-item>Action 1</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 2</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 3</el-dropdown-item>
|
|
|
|
<el-dropdown-item disabled>Action 4</el-dropdown-item>
|
|
|
|
<el-dropdown-item divided>Action 5</el-dropdown-item>
|
2021-01-25 11:21:31 +08:00
|
|
|
</el-dropdown-menu>
|
2020-11-20 23:02:15 +08:00
|
|
|
</template>
|
2020-11-04 10:30:14 +08:00
|
|
|
</el-dropdown>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.el-dropdown-link {
|
|
|
|
cursor: pointer;
|
2021-09-04 19:29:28 +08:00
|
|
|
color: #409eff;
|
2020-11-04 10:30:14 +08:00
|
|
|
}
|
|
|
|
.el-icon-arrow-down {
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
```
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
|
|
|
### トリガー要素
|
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
dropdown リストを起動するには、ボタンを使用します。
|
|
|
|
|
|
|
|
:::demo トリガ要素をボタングループに分割するには `split-button` を使います。項目 3 と項目 4 の間に区切り線を挿入したい場合は、項目 4 にクラス `divider` を追加します。
|
2020-11-04 10:30:14 +08:00
|
|
|
|
|
|
|
```html
|
|
|
|
<el-dropdown>
|
|
|
|
<el-button type="primary">
|
|
|
|
Dropdown List<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
</el-button>
|
2020-11-20 23:02:15 +08:00
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
|
|
|
<el-dropdown-item>Action 1</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 2</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 3</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 4</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 5</el-dropdown-item>
|
2021-01-25 11:21:31 +08:00
|
|
|
</el-dropdown-menu>
|
2020-11-20 23:02:15 +08:00
|
|
|
</template>
|
2020-11-04 10:30:14 +08:00
|
|
|
</el-dropdown>
|
|
|
|
<el-dropdown split-button type="primary" @click="handleClick">
|
|
|
|
Dropdown List
|
2020-11-20 23:02:15 +08:00
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
|
|
|
<el-dropdown-item>Action 1</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 2</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 3</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 4</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 5</el-dropdown-item>
|
2021-01-25 11:21:31 +08:00
|
|
|
</el-dropdown-menu>
|
2020-11-20 23:02:15 +08:00
|
|
|
</template>
|
2020-11-04 10:30:14 +08:00
|
|
|
</el-dropdown>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.el-dropdown {
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
.el-dropdown + .el-dropdown {
|
|
|
|
margin-left: 15px;
|
|
|
|
}
|
|
|
|
.el-icon-arrow-down {
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
methods: {
|
|
|
|
handleClick() {
|
2021-09-04 19:29:28 +08:00
|
|
|
alert('button click')
|
|
|
|
},
|
|
|
|
},
|
2020-11-04 10:30:14 +08:00
|
|
|
}
|
|
|
|
</script>
|
2021-06-10 00:23:34 +08:00
|
|
|
<!--
|
|
|
|
<setup>
|
|
|
|
|
|
|
|
import { defineComponent } from 'vue';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
setup() {
|
|
|
|
const handleClick = () => {
|
|
|
|
alert('button click');
|
|
|
|
};
|
|
|
|
return {
|
|
|
|
handleClick,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
</setup>
|
|
|
|
-->
|
2020-11-04 10:30:14 +08:00
|
|
|
```
|
2021-09-04 19:29:28 +08:00
|
|
|
|
2020-11-04 10:30:14 +08:00
|
|
|
:::
|
|
|
|
|
|
|
|
### トリガーのかけ方
|
|
|
|
|
|
|
|
トリガー要素をクリックするか、その上にカーソルを置きます。
|
|
|
|
|
|
|
|
:::demo アトリビュート `trigger` を用いる。デフォルトでは `hover` である。
|
|
|
|
|
|
|
|
```html
|
|
|
|
<el-row class="block-col-2">
|
2021-01-25 11:21:31 +08:00
|
|
|
<el-col :span="8">
|
2020-11-04 10:30:14 +08:00
|
|
|
<span class="demonstration">hover to trigger</span>
|
|
|
|
<el-dropdown>
|
|
|
|
<span class="el-dropdown-link">
|
|
|
|
Dropdown List<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
</span>
|
2020-11-20 23:02:15 +08:00
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
|
|
|
<el-dropdown-item icon="el-icon-plus">Action 1</el-dropdown-item>
|
2021-09-04 19:29:28 +08:00
|
|
|
<el-dropdown-item icon="el-icon-circle-plus"
|
|
|
|
>Action 2</el-dropdown-item
|
|
|
|
>
|
|
|
|
<el-dropdown-item icon="el-icon-circle-plus-outline"
|
|
|
|
>Action 3</el-dropdown-item
|
|
|
|
>
|
2020-11-20 23:02:15 +08:00
|
|
|
<el-dropdown-item icon="el-icon-check">Action 4</el-dropdown-item>
|
2021-09-04 19:29:28 +08:00
|
|
|
<el-dropdown-item icon="el-icon-circle-check"
|
|
|
|
>Action 5</el-dropdown-item
|
|
|
|
>
|
2020-11-20 23:02:15 +08:00
|
|
|
</el-dropdown-menu>
|
2021-01-25 11:21:31 +08:00
|
|
|
</template>
|
2020-11-04 10:30:14 +08:00
|
|
|
</el-dropdown>
|
|
|
|
</el-col>
|
2021-01-25 11:21:31 +08:00
|
|
|
<el-col :span="8">
|
2020-11-04 10:30:14 +08:00
|
|
|
<span class="demonstration">click to trigger</span>
|
|
|
|
<el-dropdown trigger="click">
|
|
|
|
<span class="el-dropdown-link">
|
|
|
|
Dropdown List<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
</span>
|
2020-11-20 23:02:15 +08:00
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
|
|
|
<el-dropdown-item icon="el-icon-plus">Action 1</el-dropdown-item>
|
2021-09-04 19:29:28 +08:00
|
|
|
<el-dropdown-item icon="el-icon-circle-plus"
|
|
|
|
>Action 2</el-dropdown-item
|
|
|
|
>
|
|
|
|
<el-dropdown-item icon="el-icon-circle-plus-outline"
|
|
|
|
>Action 3</el-dropdown-item
|
|
|
|
>
|
2020-11-20 23:02:15 +08:00
|
|
|
<el-dropdown-item icon="el-icon-check">Action 4</el-dropdown-item>
|
2021-09-04 19:29:28 +08:00
|
|
|
<el-dropdown-item icon="el-icon-circle-check"
|
|
|
|
>Action 5</el-dropdown-item
|
|
|
|
>
|
2021-01-25 11:21:31 +08:00
|
|
|
</el-dropdown-menu>
|
|
|
|
</template>
|
|
|
|
</el-dropdown>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<span class="demonstration">right click to trigger</span>
|
|
|
|
<el-dropdown trigger="contextmenu">
|
|
|
|
<span class="el-dropdown-link">
|
|
|
|
Dropdown List<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
</span>
|
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
|
|
|
<el-dropdown-item icon="el-icon-plus">Action 1</el-dropdown-item>
|
2021-09-04 19:29:28 +08:00
|
|
|
<el-dropdown-item icon="el-icon-circle-plus"
|
|
|
|
>Action 2</el-dropdown-item
|
|
|
|
>
|
|
|
|
<el-dropdown-item icon="el-icon-circle-plus-outline"
|
|
|
|
>Action 3</el-dropdown-item
|
|
|
|
>
|
2021-01-25 11:21:31 +08:00
|
|
|
<el-dropdown-item icon="el-icon-check">Action 4</el-dropdown-item>
|
2021-09-04 19:29:28 +08:00
|
|
|
<el-dropdown-item icon="el-icon-circle-check"
|
|
|
|
>Action 5</el-dropdown-item
|
|
|
|
>
|
2020-11-20 23:02:15 +08:00
|
|
|
</el-dropdown-menu>
|
2021-01-25 11:21:31 +08:00
|
|
|
</template>
|
2020-11-04 10:30:14 +08:00
|
|
|
</el-dropdown>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.el-dropdown-link {
|
|
|
|
cursor: pointer;
|
2021-09-04 19:29:28 +08:00
|
|
|
color: #409eff;
|
2020-11-04 10:30:14 +08:00
|
|
|
}
|
|
|
|
.el-icon-arrow-down {
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
.demonstration {
|
|
|
|
display: block;
|
2021-08-26 09:57:56 +08:00
|
|
|
color: var(--el-text-color-secondary);
|
2020-11-04 10:30:14 +08:00
|
|
|
font-size: 14px;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
```
|
2021-09-04 19:29:28 +08:00
|
|
|
|
2020-11-04 10:30:14 +08:00
|
|
|
:::
|
|
|
|
|
|
|
|
### メニューを非表示にする動作
|
|
|
|
|
|
|
|
クリックしたときにメニューが閉じるかどうかを定義するには `hide-on-click` を用いる。
|
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
:::demo デフォルトではメニュー項目をクリックするとメニューが閉じますが、hide-on-click を false にすることでオフにできます。
|
|
|
|
|
2020-11-04 10:30:14 +08:00
|
|
|
```html
|
|
|
|
<el-dropdown :hide-on-click="false">
|
|
|
|
<span class="el-dropdown-link">
|
|
|
|
Dropdown List<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
</span>
|
2020-11-20 23:02:15 +08:00
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
|
|
|
<el-dropdown-item>Action 1</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 2</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 3</el-dropdown-item>
|
|
|
|
<el-dropdown-item disabled>Action 4</el-dropdown-item>
|
2021-01-25 11:21:31 +08:00
|
|
|
<el-dropdown-item divided>Action 5</el-dropdown-item>
|
2020-11-20 23:02:15 +08:00
|
|
|
</el-dropdown-menu>
|
|
|
|
</template>
|
2020-11-04 10:30:14 +08:00
|
|
|
</el-dropdown>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.el-dropdown-link {
|
|
|
|
cursor: pointer;
|
2021-09-04 19:29:28 +08:00
|
|
|
color: #409eff;
|
2020-11-04 10:30:14 +08:00
|
|
|
}
|
|
|
|
.el-icon-arrow-down {
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
```
|
2021-09-04 19:29:28 +08:00
|
|
|
|
2020-11-04 10:30:14 +08:00
|
|
|
:::
|
|
|
|
|
|
|
|
### コマンドイベント
|
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
各 dropdown 項目をクリックすると、各項目に割り当てられたパラメータを持つイベントが発生します。
|
2020-11-04 10:30:14 +08:00
|
|
|
|
|
|
|
:::demo
|
2021-09-04 19:29:28 +08:00
|
|
|
|
2020-11-04 10:30:14 +08:00
|
|
|
```html
|
|
|
|
<el-dropdown @command="handleCommand">
|
|
|
|
<span class="el-dropdown-link">
|
|
|
|
Dropdown List<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
</span>
|
2020-11-20 23:02:15 +08:00
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
|
|
|
<el-dropdown-item command="a">Action 1</el-dropdown-item>
|
|
|
|
<el-dropdown-item command="b">Action 2</el-dropdown-item>
|
|
|
|
<el-dropdown-item command="c">Action 3</el-dropdown-item>
|
|
|
|
<el-dropdown-item command="d" disabled>Action 4</el-dropdown-item>
|
2021-01-25 11:21:31 +08:00
|
|
|
<el-dropdown-item command="e" divided>Action 5</el-dropdown-item>
|
2020-11-20 23:02:15 +08:00
|
|
|
</el-dropdown-menu>
|
|
|
|
</template>
|
2020-11-04 10:30:14 +08:00
|
|
|
</el-dropdown>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.el-dropdown-link {
|
|
|
|
cursor: pointer;
|
2021-09-04 19:29:28 +08:00
|
|
|
color: #409eff;
|
2020-11-04 10:30:14 +08:00
|
|
|
}
|
|
|
|
.el-icon-arrow-down {
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
methods: {
|
|
|
|
handleCommand(command) {
|
2021-09-04 19:29:28 +08:00
|
|
|
this.$message('click on item ' + command)
|
|
|
|
},
|
|
|
|
},
|
2020-11-04 10:30:14 +08:00
|
|
|
}
|
|
|
|
</script>
|
2021-06-10 00:23:34 +08:00
|
|
|
<!--
|
|
|
|
<setup>
|
|
|
|
|
|
|
|
import { defineComponent } from 'vue';
|
|
|
|
import { ElMessage } from 'element-plus';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
setup() {
|
2021-06-18 17:32:05 +08:00
|
|
|
|
2021-06-10 00:23:34 +08:00
|
|
|
const handleCommand = (command) => {
|
|
|
|
ElMessage(`click on item ${command}`);
|
|
|
|
};
|
|
|
|
return {
|
|
|
|
handleCommand,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
</setup>
|
|
|
|
-->
|
2020-11-04 10:30:14 +08:00
|
|
|
```
|
2021-09-04 19:29:28 +08:00
|
|
|
|
2020-11-04 10:30:14 +08:00
|
|
|
:::
|
|
|
|
|
|
|
|
### サイズ
|
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
デフォルトのサイズの他に、dropdown コンポーネントには 3 つの追加サイズが用意されており、異なるシナリオから選択することができます。
|
2020-11-04 10:30:14 +08:00
|
|
|
|
|
|
|
:::demo 追加のサイズを `medium`, `small`, `mini` で設定するには `size` 属性を使います。
|
|
|
|
|
|
|
|
```html
|
|
|
|
<el-dropdown split-button type="primary">
|
|
|
|
Default
|
2020-11-20 23:02:15 +08:00
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
|
|
|
<el-dropdown-item>Action 1</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 2</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 3</el-dropdown-item>
|
2021-01-25 11:21:31 +08:00
|
|
|
<el-dropdown-item>Action 4</el-dropdown-item>
|
2020-11-20 23:02:15 +08:00
|
|
|
</el-dropdown-menu>
|
|
|
|
</template>
|
2020-11-04 10:30:14 +08:00
|
|
|
</el-dropdown>
|
|
|
|
|
|
|
|
<el-dropdown size="medium" split-button type="primary">
|
|
|
|
Medium
|
2020-11-20 23:02:15 +08:00
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
|
|
|
<el-dropdown-item>Action 1</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 2</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 3</el-dropdown-item>
|
2021-01-25 11:21:31 +08:00
|
|
|
<el-dropdown-item>Action 4</el-dropdown-item>
|
2020-11-20 23:02:15 +08:00
|
|
|
</el-dropdown-menu>
|
|
|
|
</template>
|
2020-11-04 10:30:14 +08:00
|
|
|
</el-dropdown>
|
|
|
|
|
|
|
|
<el-dropdown size="small" split-button type="primary">
|
|
|
|
Small
|
2020-11-20 23:02:15 +08:00
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
|
|
|
<el-dropdown-item>Action 1</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 2</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 3</el-dropdown-item>
|
2021-01-25 11:21:31 +08:00
|
|
|
<el-dropdown-item>Action 4</el-dropdown-item>
|
2020-11-20 23:02:15 +08:00
|
|
|
</el-dropdown-menu>
|
|
|
|
</template>
|
2020-11-04 10:30:14 +08:00
|
|
|
</el-dropdown>
|
|
|
|
|
|
|
|
<el-dropdown size="mini" split-button type="primary">
|
|
|
|
Mini
|
2020-11-20 23:02:15 +08:00
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
|
|
|
<el-dropdown-item>Action 1</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 2</el-dropdown-item>
|
|
|
|
<el-dropdown-item>Action 3</el-dropdown-item>
|
2021-01-25 11:21:31 +08:00
|
|
|
<el-dropdown-item>Action 4</el-dropdown-item>
|
2020-11-20 23:02:15 +08:00
|
|
|
</el-dropdown-menu>
|
|
|
|
</template>
|
2020-11-04 10:30:14 +08:00
|
|
|
</el-dropdown>
|
|
|
|
```
|
2021-09-04 19:29:28 +08:00
|
|
|
|
2020-11-04 10:30:14 +08:00
|
|
|
:::
|
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
### dropdown 属性
|
|
|
|
|
|
|
|
| Attribute | Description | Type | Accepted Values | Default |
|
|
|
|
| ------------- | --------------------------------------------------------------------------------------------------- | --------------- | ---------------------------------------------------- | ------- |
|
|
|
|
| type | `split-button` が `true`のとき、メニューボタンのタイプは `Button` コンポーネントを参照する。 | string | — | — |
|
|
|
|
| size | メニューのサイズ(分割ボタンでも動作) | string | medium / small / mini | — |
|
|
|
|
| max-height | the max height of menu | string / number | — | — |
|
|
|
|
| split-button | ボタングループの表示の有無 | boolean | — | false |
|
|
|
|
| disabled | 無効にするかどうか | boolean | — | false |
|
|
|
|
| placement | ポップメニューの配置 | string | top/top-start/top-end/bottom/bottom-start/bottom-end | bottom |
|
|
|
|
| trigger | トリガーのきっかけ | string | hover/click/contextmenu | hover |
|
|
|
|
| hide-on-click | メニューアイテムをクリックした後にメニューを非表示にするかどうか | boolean | — | true |
|
|
|
|
| show-timeout | dropdown を表示するまでの遅延時間 (トリガーが `hover` の場合のみ動作) | number | — | 250 |
|
|
|
|
| hide-timeout | dropdown を非表示にするまでの遅延時間 (トリガーが `hover` の場合のみ動作) | number | — | 150 |
|
|
|
|
| tabindex | dropdown の[tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) | number | — | 0 |
|
|
|
|
|
|
|
|
### dropdown スロット
|
|
|
|
|
|
|
|
| Name | Description |
|
|
|
|
| -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
| — | dropdown の内容 Notice: トリガーリスナーをアタッチするには、有効な html dom 要素 (例: `<span>, <button> etc.`) または `el-component` でなければなりません。 |
|
|
|
|
| dropdown | dropdown メニューの内容、通常は `<el-dropdown-menu>` 要素 |
|
|
|
|
|
|
|
|
### dropdown イベント
|
|
|
|
|
|
|
|
| Event Name | Description | Parameters |
|
|
|
|
| -------------- | ------------------------------------------------------------------------------- | --------------------------------------------- |
|
|
|
|
| click | `split-button` が `true` の場合、左ボタンがクリックされたときにトリガされます。 | — |
|
|
|
|
| command | dropdown 項目がクリックされたときにトリガーする | the command dispatched from the dropdown item |
|
|
|
|
| visible-change | dropdown が表示/非表示になったときにトリガされます。 | true when it appears, and false otherwise |
|
|
|
|
|
|
|
|
### dropdown メニュー項目の属性
|
|
|
|
|
|
|
|
| Attribute | Description | Type | Accepted Values | Default |
|
|
|
|
| --------- | -------------------------------------------------------------------------- | -------------------- | --------------- | ------- |
|
|
|
|
| command | dropdown の `command` コールバックにディスパッチするコマンドを指定します。 | string/number/object | — | — |
|
|
|
|
| disabled | 項目が無効化されているかどうか | boolean | — | false |
|
|
|
|
| divided | 仕切り表示の有無 | boolean | — | false |
|
|
|
|
| icon | アイコンクラス名 | string | — | — |
|