Blame view

examples/routers/select.vue 467 Bytes
e355dd49   梁灏   add Select Component
1
  <template>
f89dd9c2   梁灏   Paeg、Select add p...
2
3
4
5
6
7
      <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>
e355dd49   梁灏   add Select Component
8
  </template>
83b73885   梁灏   fixed #718
9
  
e355dd49   梁灏   add Select Component
10
  <script>
e355dd49   梁灏   add Select Component
11
      export default {
e355dd49   梁灏   add Select Component
12
13
          data () {
              return {
83b73885   梁灏   fixed #718
14
15
16
                  fields: {
                      pid: 0
                  }
e355dd49   梁灏   add Select Component
17
              }
e355dd49   梁灏   add Select Component
18
19
          }
      }
83b73885   梁灏   fixed #718
20
  </script>