mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
838 B
838 B
Placement
Use different placement.
<n-dropdown @select="handleSelect" placement="bottom-start" :options="options">
<n-button :keyboard="false">Money Force Us to Work Rather Than Sleep</n-button>
</n-dropdown>
export default {
data () {
return {
options: [
{
label: 'Marina Bay Sands',
value: 'Marina Bay Sands'
},
{
label: 'Brown\'s Hotel, London',
value: 'Brown\'s Hotel, London'
},
{
label: 'Atlantis Bahamas, Nassau',
value: 'Atlantis Bahamas, Nassau'
},
{
label: 'The Beverly Hills Hotel, Los Angeles',
value: 'The Beverly Hills Hotel, Los Angeles'
}
]
}
},
methods: {
handleSelect (name) {
this.$NMessage.info(name)
}
}
}