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