-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
重构 BillType 枚举,使其更易于使用和理解。 - 使用字符串而不是数字来表示账单类型, - 这样更容易理解和使用。
- Loading branch information
1 parent
cc3e6f0
commit e359c88
Showing
3 changed files
with
3 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export const BillType = { | ||
"Expend": 0, // 支出 | ||
"Income": 1, // 收入 | ||
"Transfer": 2 // 转账 | ||
"Expend": "Expend", // 支出 | ||
"Income": "Income", // 收入 | ||
"Transfer": "Transfer" // 转账 | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters