颜色选择器
https://ext.dcloud.net.cn/plugin?id=403
import pickerColor from '@/components/helang-pickerColor/helang-pickerColor.vue';
<!-- 拾色器 -->
<picker-color :isShow="showPickerColor" :bottom="0" @callback="getPickerColor" />
showPickerColorPop(type) {
this.showPickerColor = true;
this.type = type;
},
getPickerColor(color) {
this.showPickerColor = false;
if (color) {
if (this.type === 1) {
this.foregroundColor = color;
this.make({ backgroundColor: this.backgroundColor, foregroundColor: this.foregroundColor, text: this.generateText });
} else {
this.backgroundColor = color;
this.make({ backgroundColor: this.backgroundColor, foregroundColor: this.foregroundColor, text: this.generateText });
}
}
},