[backend] fix: 修复异常处理和类型转换问题

This commit is contained in:
xsl
2026-01-26 11:53:40 +08:00
parent 7ccc2a6ac6
commit 83e05bf85f
28639 changed files with 2506458 additions and 93 deletions
+36
View File
@@ -0,0 +1,36 @@
import * as React from 'react';
import type { DirectionType } from '../config-provider';
import type { PercentPositionType, ProgressGradient, ProgressProps, StringGradients } from './progress';
interface LineProps extends ProgressProps {
prefixCls: string;
direction?: DirectionType;
strokeColor?: string | ProgressGradient;
percentPosition: PercentPositionType;
}
/**
* @example
* {
* "0%": "#afc163",
* "75%": "#009900",
* "50%": "green", // ====> '#afc163 0%, #66FF00 25%, #00CC00 50%, #009900 75%, #ffffff 100%'
* "25%": "#66FF00",
* "100%": "#ffffff"
* }
*/
export declare const sortGradient: (gradients: StringGradients) => string;
/**
* Then this man came to realize the truth: Besides six pence, there is the moon. Besides bread and
* butter, there is the bug. And... Besides women, there is the code.
*
* @example
* {
* "0%": "#afc163",
* "25%": "#66FF00",
* "50%": "#00CC00", // ====> linear-gradient(to right, #afc163 0%, #66FF00 25%,
* "75%": "#009900", // #00CC00 50%, #009900 75%, #ffffff 100%)
* "100%": "#ffffff"
* }
*/
export declare const handleGradient: (strokeColor: ProgressGradient, directionConfig?: DirectionType) => React.CSSProperties;
declare const Line: React.FC<LineProps>;
export default Line;