fix warning

This commit is contained in:
xuyanfeng 2021-04-05 13:50:47 +08:00
parent c9898e65b9
commit e0c1f2336c

View File

@ -112,7 +112,7 @@ export default class UiProp extends Vue {
colorReverse(OldColorValue: string) { colorReverse(OldColorValue: string) {
OldColorValue = "0x" + OldColorValue.replace(/#/g, ""); OldColorValue = "0x" + OldColorValue.replace(/#/g, "");
var str = "000000" + (0xFFFFFF - OldColorValue).toString(16); var str = "000000" + (0xFFFFFF - parseInt(OldColorValue)).toString(16);
return '#' + str.substring(str.length - 6, str.length); return '#' + str.substring(str.length - 6, str.length);
} }