2021-09-17 00:18:50 +08:00
|
|
|
<template>
|
|
|
|
<el-row class="block-col-2">
|
|
|
|
<el-col :span="8">
|
|
|
|
<span class="demonstration">hover to trigger</span>
|
|
|
|
<el-dropdown>
|
|
|
|
<span class="el-dropdown-link">
|
2021-10-28 06:18:09 +08:00
|
|
|
Dropdown List<el-icon class="el-icon--right"><arrow-down /></el-icon>
|
2021-09-17 00:18:50 +08:00
|
|
|
</span>
|
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
2021-10-28 06:18:09 +08:00
|
|
|
<el-dropdown-item :icon="Plus">Action 1</el-dropdown-item>
|
|
|
|
<el-dropdown-item :icon="CirclePlusFilled">
|
|
|
|
Action 2
|
|
|
|
</el-dropdown-item>
|
|
|
|
<el-dropdown-item :icon="CirclePlus">Action 3</el-dropdown-item>
|
|
|
|
<el-dropdown-item :icon="Check">Action 4</el-dropdown-item>
|
|
|
|
<el-dropdown-item :icon="CircleCheck">Action 5</el-dropdown-item>
|
2021-09-17 00:18:50 +08:00
|
|
|
</el-dropdown-menu>
|
|
|
|
</template>
|
|
|
|
</el-dropdown>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<span class="demonstration">click to trigger</span>
|
|
|
|
<el-dropdown trigger="click">
|
|
|
|
<span class="el-dropdown-link">
|
2021-10-28 06:18:09 +08:00
|
|
|
Dropdown List<el-icon class="el-icon--right"><arrow-down /></el-icon>
|
2021-09-17 00:18:50 +08:00
|
|
|
</span>
|
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
2021-10-28 06:18:09 +08:00
|
|
|
<el-dropdown-item :icon="Plus">Action 1</el-dropdown-item>
|
|
|
|
<el-dropdown-item :icon="CirclePlusFilled">
|
|
|
|
Action 2
|
|
|
|
</el-dropdown-item>
|
|
|
|
<el-dropdown-item :icon="CirclePlus">Action 3</el-dropdown-item>
|
|
|
|
<el-dropdown-item :icon="Check">Action 4</el-dropdown-item>
|
|
|
|
<el-dropdown-item :icon="CircleCheck">Action 5</el-dropdown-item>
|
2021-09-17 00:18:50 +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">
|
2021-10-28 06:18:09 +08:00
|
|
|
Dropdown List<el-icon class="el-icon--right"><arrow-down /></el-icon>
|
2021-09-17 00:18:50 +08:00
|
|
|
</span>
|
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
2021-10-28 06:18:09 +08:00
|
|
|
<el-dropdown-item :icon="Plus">Action 1</el-dropdown-item>
|
|
|
|
<el-dropdown-item :icon="CirclePlusFilled">
|
|
|
|
Action 2
|
|
|
|
</el-dropdown-item>
|
|
|
|
<el-dropdown-item :icon="CirclePlus">Action 3</el-dropdown-item>
|
|
|
|
<el-dropdown-item :icon="Check">Action 4</el-dropdown-item>
|
|
|
|
<el-dropdown-item :icon="CircleCheck">Action 5</el-dropdown-item>
|
2021-09-17 00:18:50 +08:00
|
|
|
</el-dropdown-menu>
|
|
|
|
</template>
|
|
|
|
</el-dropdown>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</template>
|
|
|
|
|
2021-10-28 06:18:09 +08:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import {
|
|
|
|
ArrowDown,
|
|
|
|
CircleCheck,
|
|
|
|
Check,
|
|
|
|
CirclePlus,
|
|
|
|
CirclePlusFilled,
|
|
|
|
Plus,
|
2021-12-04 11:20:06 +08:00
|
|
|
} from '@element-plus/icons-vue'
|
2021-10-28 06:18:09 +08:00
|
|
|
</script>
|