ab8aaf95
梁灏
add Dropdown comp...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<style>
body{
padding: 50px;
}
</style>
<template>
<Dropdown trigger="click" align="right" @on-click="click">
<i-button type="primary">
下拉菜单
<Icon type="arrow-down-b"></Icon>
</i-button>
<Dropdown-menu slot="list">
<Dropdown-item>张三</Dropdown-item>
<Dropdown-item disabled>李四</Dropdown-item>
<Dropdown-item>王五</Dropdown-item>
<Dropdown-item divided>周六</Dropdown-item>
</Dropdown-menu>
</Dropdown>
</template>
<script>
export default {
props: {},
data () {
return {}
},
computed: {},
methods: {
click (key) {
console.log(key)
}
}
}
</script>
|