mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
27 lines
672 B
Vue
27 lines
672 B
Vue
|
<template>
|
||
|
<el-dropdown>
|
||
|
<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>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>
|
||
|
|
||
|
<style>
|
||
|
.el-dropdown-link {
|
||
|
cursor: pointer;
|
||
|
color: #409eff;
|
||
|
}
|
||
|
.el-icon-arrow-down {
|
||
|
font-size: 12px;
|
||
|
}
|
||
|
</style>
|