fix: make currency prop optional

This commit is contained in:
Sanchit Agarwal 2024-08-31 08:04:59 +00:00
parent 2bf3f13959
commit fdebe93dd4
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ export type Context = {
rangeDialog?: RangeDialogProps; // 坐标选区鼠标选择
// 提醒弹窗
warnDialog?: string;
currency: string;
currency?: string;
dataVerification?: {
selectStatus: boolean;
selectRange: [];
@ -237,7 +237,7 @@ export function defaultContext(refs: RefValues): Context {
config: {},
// 提醒弹窗
warnDialog: undefined,
currency: "$",
currency: "¥",
rangeDialog: {
show: false,
rangeTxt: "",

View File

@ -155,7 +155,7 @@ export type Settings = {
icon?: React.ReactNode;
onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
}[];
currency: string;
currency?: string;
};
export const defaultSettings: Required<Settings> = {