mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 优化颜色选择器页面
This commit is contained in:
@@ -91,6 +91,11 @@ export function darken(color: string, concentration: number) {
|
||||
* @param hsl
|
||||
* @returns
|
||||
*/
|
||||
export function hslToHexa(hslString: string): string {
|
||||
const color = Color(hslString);
|
||||
return color.hexa()
|
||||
}
|
||||
|
||||
export function hslToHex(hslString: string): string {
|
||||
const color = Color(hslString);
|
||||
return color.hex()
|
||||
|
||||
Reference in New Issue
Block a user