Blame view

examples/routers/color-picker.vue 1.23 KB
c6faec44   梁灏   init ColorPicker
1
  <template>
b6bda1dc   梁灏   update ColorPicker
2
      <div style="margin: 100px;">
e7893a68   梁灏   update ColorPicker
3
          {{ color.rgba }}
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>-->
0aefe4aa   梁灏   update ColorPicker
7
          <color-picker ref="xxx" v-model="color" alpha :recommend="true" placement="bottom" size="default"></color-picker>
e7893a68   梁灏   update ColorPicker
8
          <color-picker v-model="color" :alpha="false" :recommend="false" placement="bottom" size="default"></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>-->
0aefe4aa   梁灏   update ColorPicker
12
          <Button @click="do2">do2</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 {
0aefe4aa   梁灏   update ColorPicker
20
                  color: '#ff4290'
e7893a68   梁灏   update ColorPicker
21
              };
c6faec44   梁灏   init ColorPicker
22
23
          },
          computed: {},
0aefe4aa   梁灏   update ColorPicker
24
25
26
27
28
          methods: {
              do2 () {
                  this.$refs.xxx.do2();
              }
          }
c6faec44   梁灏   init ColorPicker
29
30
      };
  </script>