fix: impoer external components

This commit is contained in:
jialin
2026-04-24 14:28:30 +08:00
committed by jialin
parent 597a86562a
commit 6fccee3711
52 changed files with 68 additions and 1263 deletions
-20
View File
@@ -1,5 +1,4 @@
import _ from 'lodash';
import tinycolor from 'tinycolor2';
export const isNotEmptyValue = (value: any) => {
if (Array.isArray(value)) {
@@ -245,25 +244,6 @@ export const isOnline = () => {
return window.navigator.onLine;
};
export const genColors = ({
color,
alpha1,
alpha2
}: {
color: string;
alpha1?: number;
alpha2?: number;
}) => {
const base = tinycolor(color);
const alpha_start = alpha1 || base.getAlpha();
const alpha_end = alpha2 || base.getAlpha();
return [
base.setAlpha(alpha_start).toRgbString(),
base.setAlpha(alpha_end).toRgbString()
];
};
/**
* Parse a command-line parameter string into an array format.
* @param paramsString - The parameter string to parse (supports multiline).