update ColorPicker

This commit is contained in:
梁灏 2017-08-18 12:27:35 +08:00
parent e7893a68ed
commit 0aefe4aa09
3 changed files with 88 additions and 30 deletions

View file

@ -4,11 +4,12 @@
<!--<Input placeholder="请输入..." size="large" style="width: 50px;"></Input>-->
<!--<color-picker placement="bottom-start" size="large"></color-picker>-->
<!--<Date-picker type="date" placeholder="选择日期" size="large" style="width: 200px"></Date-picker>-->
<color-picker v-model="color" alpha :recommend="true" placement="bottom" size="default"></color-picker>
<color-picker ref="xxx" v-model="color" alpha :recommend="true" placement="bottom" size="default"></color-picker>
<color-picker v-model="color" :alpha="false" :recommend="false" placement="bottom" size="default"></color-picker>
<!--<Date-picker type="date" placeholder="选择日期" style="width: 200px"></Date-picker>-->
<!--<color-picker placement="bottom-start" size="small"></color-picker>-->
<!--<Date-picker type="date" placeholder="选择日期" size="small" style="width: 200px"></Date-picker>-->
<Button @click="do2">do2</Button>
</div>
</template>
<script>
@ -16,31 +17,14 @@
props: {},
data () {
return {
color: {
hex: '#194d33',
hsl: {
h: 150,
s: 0.5,
l: 0.2,
a: 1
},
hsv: {
h: 150,
s: 0.66,
v: 0.30,
a: 1
},
rgba: {
r: 25,
g: 77,
b: 51,
a: 1
},
a: 1
}
color: '#ff4290'
};
},
computed: {},
methods: {}
methods: {
do2 () {
this.$refs.xxx.do2();
}
}
};
</script>