|
@@ -69,6 +69,8 @@ export class SColor {
|
|
|
/** 浅灰色 */
|
|
|
static readonly LightGray = new SColor("#C0C0C0");
|
|
|
|
|
|
+ static readonly pp = new SColor(113, 168, 28, 255);
|
|
|
+
|
|
|
/**
|
|
|
* 根据 rgb 分量生成颜色
|
|
|
*
|
|
@@ -273,6 +275,7 @@ export class SColor {
|
|
|
* @return 6 位 16 进制颜色
|
|
|
*/
|
|
|
toVal(): string {
|
|
|
- return "#" + SStringUtil.num2Hex(this._value, 6);
|
|
|
+ const v = this.value;
|
|
|
+ return v.substring(0, v.length - 2);
|
|
|
}
|
|
|
}
|