Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (48 sloc) 928 Bytes
<slot name="selected">some content {{ value }}</slot>
<ul slot="content" class="content" slot-scope="{ setIsOpen }">
v-for="(option, index) of options"
@click="update(option, setIsOpen)"
<slot name="option" :option="option">{{ option }}</slot>
import AppDropdown from './AppDropdown'
export default {
components: {
props: {
options: {
type: Array
value: {
type: [String, Object]
methods: {
update (option, cb) {
this.$emit('input', option)
<style lang="stylus" scoped>
list-style: none
padding: 0
margin: -10px
border-bottom: 1px solid #f0f0f0
padding: 8px 14px
cursor: pointer
background: #f0f0f0
You can’t perform that action at this time.