mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-09 04:07:33 +08:00
fix: make currency prop optional
This commit is contained in:
parent
2bf3f13959
commit
fdebe93dd4
@ -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: "",
|
||||
|
@ -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> = {
|
||||
|
Loading…
Reference in New Issue
Block a user