Blame view

examples/routers/color-picker.vue 1.19 KB
c6faec44   梁灏   init ColorPicker
1
  <template>
b6bda1dc   梁灏   update ColorPicker
2
      <div style="margin: 100px;">
c0fa72ca   梁灏   update ColorPicker
3
          {{ color }}
b6bda1dc   梁灏   update ColorPicker
4
          <!--<Input placeholder="请输入..." size="large" style="width: 50px;"></Input>-->
9af2f01c   梁灏   update ColorPicker
5
          <!--<color-picker placement="bottom-start" size="large"></color-picker>-->
b6bda1dc   梁灏   update ColorPicker
6
          <!--<Date-picker type="date" placeholder="选择日期" size="large" style="width: 200px"></Date-picker>-->
1f61a559   梁灏   update ColorPicker
7
          <color-picker ref="xxx" v-model="color" :recommend="true"></color-picker>
c0fa72ca   梁灏   update ColorPicker
8
          <color-picker v-model="color2" :alpha="false" :recommend="false"></color-picker>
b6bda1dc   梁灏   update ColorPicker
9
          <!--<Date-picker type="date" placeholder="选择日期" style="width: 200px"></Date-picker>-->
9af2f01c   梁灏   update ColorPicker
10
          <!--<color-picker placement="bottom-start" size="small"></color-picker>-->
b6bda1dc   梁灏   update ColorPicker
11
          <!--<Date-picker type="date" placeholder="选择日期" size="small" style="width: 200px"></Date-picker>-->
1f61a559   梁灏   update ColorPicker
12
          <Button @click="setColor">set color</Button>
b6bda1dc   梁灏   update ColorPicker
13
      </div>
c6faec44   梁灏   init ColorPicker
14
15
16
17
18
  </template>
  <script>
      export default {
          props: {},
          data () {
e7893a68   梁灏   update ColorPicker
19
              return {
1f61a559   梁灏   update ColorPicker
20
                  color: '',
c0fa72ca   梁灏   update ColorPicker
21
                  color2: ''
e7893a68   梁灏   update ColorPicker
22
              };
c6faec44   梁灏   init ColorPicker
23
24
          },
          computed: {},
0aefe4aa   梁灏   update ColorPicker
25
          methods: {
1f61a559   梁灏   update ColorPicker
26
27
              setColor () {
                  this.color = '#26bc77';
0aefe4aa   梁灏   update ColorPicker
28
29
              }
          }
c6faec44   梁灏   init ColorPicker
30
31
      };
  </script>