mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
32 lines
820 B
Vue
32 lines
820 B
Vue
|
<template>
|
||
|
<el-dropdown>
|
||
|
<span
|
||
|
class="el-dropdown-link"
|
||
|
style="
|
||
|
cursor: pointer;
|
||
|
color: var(--el-color-primary);
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
"
|
||
|
>
|
||
|
Dropdown List
|
||
|
<el-icon class="el-icon--right">
|
||
|
<arrow-down />
|
||
|
</el-icon>
|
||
|
</span>
|
||
|
<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>
|
||
|
</el-dropdown-menu>
|
||
|
</template>
|
||
|
</el-dropdown>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts" setup>
|
||
|
import { ArrowDown } from '@element-plus/icons-vue'
|
||
|
</script>
|