iview/examples/routers/select.vue

20 lines
467 B
Vue
Raw Normal View History

<template>
2017-04-27 17:35:47 +08:00
<div style="width: 200px;margin: 100px;">
<Select v-model="fields.pid" filterable placement="top">
<Option :value="0" label="一级菜单"></Option>
<Option :value="1" label="二级菜单"></Option>
</Select>
</div>
</template>
2017-04-22 14:00:10 +08:00
<script>
export default {
data () {
return {
2017-04-22 14:00:10 +08:00
fields: {
pid: 0
}
}
}
}
2017-04-22 14:00:10 +08:00
</script>