mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-20 08:58:41 +00:00
fix warning
This commit is contained in:
parent
c9898e65b9
commit
e0c1f2336c
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user