Blame view

examples/routers/input.vue 1.32 KB
7d5431d8   梁灏   update some style
1
  <template>
a73ae72b   梁灏   fixed #2884
2
      <div>
54c988f2   梁灏   fixed input cls w...
3
4
5
6
          <Input v-model="value11" size="small">
              <span slot="prepend">http://</span>
              <span slot="append">.com</span>
          </Input>
a73ae72b   梁灏   fixed #2884
7
          <br>
54c988f2   梁灏   fixed input cls w...
8
9
10
11
12
13
14
15
16
17
18
          <Input v-model="value12" size="small">
              <Select v-model="select1" slot="prepend" style="width: 80px">
                  <Option value="http">http://</Option>
                  <Option value="https">https://</Option>
              </Select>
              <Select v-model="select2" slot="append" style="width: 70px">
                  <Option value="com">.com</Option>
                  <Option value="org">.org</Option>
                  <Option value="io">.io</Option>
              </Select>
          </Input>
a73ae72b   梁灏   fixed #2884
19
          <br>
54c988f2   梁灏   fixed input cls w...
20
21
22
23
24
25
26
          <Input v-model="value13" size="small">
              <Select v-model="select3" slot="prepend" style="width: 80px">
                  <Option value="day">Day</Option>
                  <Option value="month">Month</Option>
              </Select>
              <Button slot="append" icon="ios-search"></Button>
          </Input>
0f822c9b   梁灏   add Input component
27
      </div>
7d5431d8   梁灏   update some style
28
29
  </template>
  <script>
7d5431d8   梁灏   update some style
30
      export default {
7d5431d8   梁灏   update some style
31
32
          data () {
              return {
54c988f2   梁灏   fixed input cls w...
33
34
35
36
37
38
                  value11: '',
                  value12: '',
                  value13: '',
                  select1: 'http',
                  select2: 'com',
                  select3: 'day'
0f822c9b   梁灏   add Input component
39
              }
7d5431d8   梁灏   update some style
40
41
          }
      }
fc7ef072   梁灏   support Input
42
  </script>