diff --git a/src/views/color/ColorPicker.vue b/src/views/color/ColorPicker.vue index 526683e..78720da 100644 --- a/src/views/color/ColorPicker.vue +++ b/src/views/color/ColorPicker.vue @@ -5,7 +5,7 @@ + :disableHistory="true" @pureColorChange="change" format="hex8"/>
range(10).map(_ => '')) } @@ -49,8 +49,8 @@ export default class MyColorPicker extends Vue */ change(color: string): void { - this.colorInput = color.substr(1) - const c = new Color(this.colorModel) + this.colorInput = color.substr(1, 6) + const c = new Color(this.colorModel.substr(0, 7)) this.$emit('update:color', c) this.$emit('updateColor', c) } @@ -216,7 +216,6 @@ export default class MyColorPicker extends Vue .row width: 100% - background-color: red display: flex .color:first-child